hotjar main page fix

This commit is contained in:
Jerry
2023-03-16 13:34:10 +01:00
parent 382f25867f
commit a10afc30c3

View File

@@ -44,24 +44,6 @@ window.addEventListener('DOMContentLoaded', function(){
setTimeout(function(){
addNext();
}, 1000);
function promoTopNext(){
if (document.querySelectorAll('.promo-backs').length){
setTimeout(function(){
let currents = document.querySelectorAll('.promo-bg.current');
currents.forEach(item => {
item.classList.remove('current');
if (item.nextElementSibling){
item.nextElementSibling.classList.add('current');
} else {
item.closest('.promo-backs').find('.promo-bg:first-child').classList.add('current');
}
});
promoTopNext();
}, 5000);
}
}
promoTopNext();
}
if (this.document.querySelector('.promo-top')) {