Last active
July 6, 2021 06:29
-
-
Save yuriy-yarvinen/0671afd7e591cbf17d4d2160f225c43d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function() { | |
let phoneBlockCounter = 0,phoneBlock; | |
let phoneBlockInterval = setInterval(() => { | |
phoneBlock = document.querySelector('a[href="tel:+79250076377"].t-menu__link-item'); | |
if (phoneBlock) { | |
phoneBlock.classList.add('everystraus_phone_change'); | |
clearInterval(phoneBlockInterval); | |
} | |
if(phoneBlockCounter > 20){ | |
clearInterval(phoneBlockInterval); | |
} | |
phoneBlockCounter++; | |
}, 100); | |
let phoneBlockCounter2 = 0,phoneBlock2; | |
let phoneBlockInterval2 = setInterval(() => { | |
phoneBlock2 = document.querySelector('.t396__elem a[href="tel:+79250076377"].tn-atom'); | |
if (phoneBlock2) { | |
phoneBlock2.classList.add('everystraus_phone_change'); | |
clearInterval(phoneBlockInterval2); | |
} | |
if(phoneBlockCounter2 > 20){ | |
clearInterval(phoneBlockInterval2); | |
} | |
phoneBlockCounter2++; | |
}, 100); | |
let phoneBlockCounter3 = 0,phoneBlock3; | |
let phoneBlockInterval3 = setInterval(() => { | |
phoneBlock3 = document.querySelector('.t-text a[href="tel:+79250076377"] strong'); | |
if (phoneBlock3) { | |
phoneBlock3.classList.add('everystraus_phone_change'); | |
clearInterval(phoneBlockInterval3); | |
} | |
if(phoneBlockCounter3 > 20){ | |
clearInterval(phoneBlockInterval3); | |
} | |
phoneBlockCounter3++; | |
}, 100); | |
let phoneBlockCounter4 = 0,phoneBlock4; | |
let phoneBlockInterval4 = setInterval(() => { | |
phoneBlock4 = document.querySelector('.tn-elem__3094700504439387118532 .tn-atom'); | |
if (phoneBlock4) { | |
phoneBlock4.classList.add('everystraus_phone_change'); | |
clearInterval(phoneBlockInterval4); | |
} | |
if(phoneBlockCounter4 > 20){ | |
clearInterval(phoneBlockInterval4); | |
} | |
phoneBlockCounter4++; | |
}, 100); | |
setTimeout(() => { | |
(function(e, v, r, y, s, t) { | |
y = e.createElement(v); | |
t = e.getElementsByTagName(v)[0]; | |
y.setAttribute("data-everystraus", "");s = Date.now(); | |
y.async=1; y.src=r+"&hash="+s; t.parentNode.insertBefore(y, t); | |
})(document, "script", "https://everystraus.ru/calltracker.js?id=9ec80d58ed3495c213848b3957cf8ea1"); | |
}, 700); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment