add timeout newsletter banner delay 10s

This commit is contained in:
Merox 2024-10-24 17:44:50 +03:00
parent 28ada40502
commit 4cb3111bf2

View file

@ -109,9 +109,11 @@
} }
window.onload = function() { window.onload = function() {
if (!getCookie('bannerClosed')) { setTimeout(function() {
document.getElementById('modern-banner').style.display = 'block'; if (!getCookie('bannerClosed')) {
} document.getElementById('modern-banner').style.display = 'block';
}
}, 10000); // 15000 milliseconds = 15 seconds
} }
</script> </script>
</body> </body>