Fixes issue where the button will not appear if the tab is inactive
const currentFrame = Math.floor((timestamp - start) / msPerFrame);
if (currentFrame >= frames.length) {
asciiContainer.textContent = ascii;
+ asciiContainer.insertAdjacentElement('beforeend', button)
return;
}
asciiContainer.textContent = frames[currentFrame];
});
}
});
- setTimeout(() => {
- asciiContainer.insertAdjacentElement('beforeend', button);
- }, msPerFrame * totalFrames + 500);
// Inject obfuscated email. To block low-effort scraping.
const addr = document.querySelector('address > a');