1//normal initalilize 2function initScripts(){ 3 4 //console.log('initScripts!'); 5 6 /* NAVIGATION */ 7 document.querySelector('.nav-top-wrap') ? scrollDirection() : null; 8 9 document.querySelector('.nav-top-wrap') ? navTop() : null; 10 document.querySelector('.nav-left-wrap') ? navLeft() : null; 11 12 document.querySelector('.video-playing') ? videoPlayingInit() : null; 13 document.querySelector('.marquee') ? marqueeInfinite() : null; 14 15 document.querySelector('.swiper-scroll') ? swiperScroll() : null; 16 document.querySelector('.swiper-fade') ? swiperFade() : null; 17 18 document.querySelector('.horiz-scroll-wrap') ? horizontalScroll() : null; 19 document.querySelector('.stagger') ? staggerBox() : null; 20 21 document.querySelector('.text-split') ? textSplit() : null; 22 document.querySelector('.txt-reveal') ? textReveal() : null; 23 document.querySelector('.text-horizontal') ? textHorizontal() : null; 24 25 document.getElementById('selezionaNumero') ? Changeprezzi() : null; 26 27 window.addEventListener('scroll', inViewClass, true); 28 29 /* TAG MANAGER */ 30 (typeof dataLayer !== 'undefined') ? utmLayer() : null; 31 32 33 /* ADD INVIEW CLASS 34 window.addEventListener('scroll', inViewClass, true); 35 window.addEventListener('load', inViewClass, false); 36 */ 37 38 39 /* LIGHTBOX */ 40 const lightbox = GLightbox({ 41 selector: '.lightbox', 42 openEffect: 'fade', 43 closeEffect: 'fade', 44 slideEffect: 'slide', 45 preload: false, 46 }); 47 48 49 /* CF7 INVALID EVENT */ 50 cf7Invalid(); 51 function cf7Invalid() { 52 const form = document.querySelector(".wpcf7-form"); 53 if (!form) return; 54 new MutationObserver(() => { 55 if (form.classList.contains("invalid")) { 56 setTimeout(() => form.classList.remove("invalid"), 4000); 57 } 58 }).observe(form, { attributes: true, attributeFilter: ["class"] }); 59 }; 60 61 62} 63 64/* READY */ 65document.addEventListener("DOMContentLoaded", initScripts, false);
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.