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 @@ - +