Merge pull request #8004 from Jerryby/wordpress

Wordpress
This commit is contained in:
bivis
2023-03-16 15:37:36 +03:00
committed by GitHub

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')) {