From 2bfe019c16ad1ee187123235ab852c0a18194a5d Mon Sep 17 00:00:00 2001 From: martbost Date: Mon, 7 Sep 2026 10:13:22 -0500 Subject: [PATCH] =?UTF-8?q?Wall:=20drop=20the=20view=20countdown=20?= =?UTF-8?q?=E2=80=94=20a=20click=20marks=20the=20ad=20viewed=20and=20unloc?= =?UTF-8?q?ks=20join?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- public/assets/wall.js | 16 ++++------------ public/wall.html | 2 +- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/public/assets/wall.js b/public/assets/wall.js index 277dc94..442346c 100644 --- a/public/assets/wall.js +++ b/public/assets/wall.js @@ -64,18 +64,10 @@ const btn = document.createElement('button'); btn.className = 'btn small'; btn.textContent = 'View this ad'; btn.addEventListener('click', () => { - window.open(m.targetUrl, '_blank'); // real visit to the advertiser - let left = DWELL; - btn.disabled = true; - act.innerHTML = 'Viewing… ' + left + 's'; - const t = setInterval(() => { - left--; - if (left > 0) { act.querySelector('.wc-timer').textContent = 'Viewing… ' + left + 's'; return; } - clearInterval(t); - viewed[i] = 1; - try { localStorage.setItem(VKEY, JSON.stringify(viewed)); } catch (e) {} - done(); updateGate(); - }, 1000); + window.open(m.targetUrl, '_blank'); // real visit to the advertiser (no countdown) + viewed[i] = 1; + try { localStorage.setItem(VKEY, JSON.stringify(viewed)); } catch (e) {} + done(); updateGate(); }); act.appendChild(btn); } diff --git a/public/wall.html b/public/wall.html index 5371f45..b0931eb 100644 --- a/public/wall.html +++ b/public/wall.html @@ -40,6 +40,6 @@ - +