1const telegramSticky = document.querySelector('[data-telegram-sticky]'); 2 3if (telegramSticky) { 4 const toggleTelegramSticky = function () { 5 const isMobile = window.innerWidth <= 768; 6 const passedScroll = window.scrollY > 160; 7 8 if (isMobile && passedScroll) { 9 telegramSticky.hidden = false; 10 telegramSticky.classList.add('is-visible'); 11 document.body.classList.add('has-tg-sticky-mobile'); 12 return; 13 } 14 15 telegramSticky.classList.remove('is-visible'); 16 telegramSticky.hidden = true; 17 document.body.classList.remove('has-tg-sticky-mobile'); 18 }; 19 20 toggleTelegramSticky(); 21 window.addEventListener('scroll', toggleTelegramSticky, { passive: true }); 22 window.addEventListener('resize', toggleTelegramSticky); 23}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.