1(function ($) { 2 3 "use strict"; 4 5 6 document.addEventListener('iubenda_consent_given', function () { 7 if (typeof gtag === 'function') { 8 gtag('consent', 'update', { 9 ad_storage: 'granted', 10 analytics_storage: 'granted', 11 ad_user_data: 'granted', 12 ad_personalization: 'granted' 13 }); 14 } 15 }); 16 function scrollAction(){ 17 var sticky = $('#page.zak-site'); 18 var scroll = $(window).scrollTop(); 19 if (scroll >= 120) sticky.addClass('fixed'); 20 else sticky.removeClass('fixed'); 21 } 22 23 24 function accordionDesktopOpen() { 25 26 var w = $(window).width(); 27 var items = $('.elementor-widget-n-accordion details'); 28 29 if (w > 767) { 30 items.attr('open', true); 31 } else { 32 items.removeAttr('open'); 33 } 34 35 } 36 37 38 // MANIPOLO CLASSI EVENTO SINGOLO 39 function fixEventClasses() { 40 var container = document.querySelector('.em.pixelbones.em-item.em-item-single'); 41 if (!container) return; 42 43 container.classList.remove('pixelbones'); 44 45 var header = container.querySelector('.em-item-header'); 46 if (header) { 47 header.classList.add('em', 'pixelbones'); 48 } 49 } 50 51 document.addEventListener('DOMContentLoaded', fixEventClasses); 52 53 function cleanButtonBreaks() { 54 $('.elementor-button br').remove(); 55 } 56 57 $(document).ready(cleanButtonBreaks); 58 $(window).on('load', cleanButtonBreaks); 59 60 // fallback per render tardivi 61 setTimeout(cleanButtonBreaks, 500); 62 setTimeout(cleanButtonBreaks, 1500); 63 64 65 $(document).ready(function() { 66 67 // Rimuove la classe 'pixelbones' dagli elementi con le classi specificate 68 $('.em.pixelbones.em-list.em-events-list').removeClass('pixelbones'); 69 70 var $headheight = $('#zak-masthead').outerHeight(true) + 'px'; 71 72 $(":root")[0].style.setProperty("--headheight", $headheight); 73 var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); 74 if (isSafari) { 75 $('body').addClass('safari') 76 } 77 78 scrollAction(); 79 80 $(window).scroll(function(){ 81 scrollAction(); 82 }); 83 84 // ** INTERCETTA PER MOBILE I LINK HOTSPOT DELLA MAPPA 85 function isMobile() { 86 return window.matchMedia("(max-width: 768px)").matches; 87 } 88 var $links = $(".ihotspot_tooltop_html > a"); 89 var activeLink = null; 90 91 $links.on("click", function(e){ 92 if (!isMobile()) return; 93 var $this = $(this); 94 if (!$this.hasClass("tap-active")) { 95 e.preventDefault(); 96 $links.removeClass("tap-active").blur(); 97 $this.addClass("tap-active").focus(); 98 activeLink = $this; 99 } else { 100 // Secondo tap â lascia navigare 101 $this.removeClass("tap-active"); 102 activeLink = null; 103 } 104 }); 105 // Click fuori dagli hotspot â reset 106 $(document).on("click touchstart", function(e){ 107 if (!isMobile()) return; 108 if (!$(e.target).closest(".ihotspot_tooltop_html > a").length) { 109 $links.removeClass("tap-active").blur(); 110 activeLink = null; 111 } 112 }); 113 //** FINE HOTSPOT 114 115 accordionDesktopOpen(); 116 117 }); 118 119 120 $(window).on('resize', function(){ 121 122 if (!$('#page.zak-site').hasClass("fixed")) { 123 124 var $headheight = $('#zak-masthead').outerHeight(true) + 'px'; 125 126 $(":root")[0].style.setProperty("--headheight", $headheight); 127 128 } 129 130 accordionDesktopOpen(); 131 132 }); 133 134 document.addEventListener('DOMContentLoaded', function() { 135 136 if (!window.location.href.includes('order-received')) return; 137 138 let titles = { 139 it: "Grazie per il tuo ordine!", 140 en: "Thank you for your order!", 141 fr: "Merci pour votre commande!", 142 de: "Vielen Dank für Ihre Bestellung!" 143 }; 144 145 let lang = document.documentElement.lang.substring(0,2); 146 let text = titles[lang] || titles['it']; 147 148 let h1 = document.querySelector('body > h1'); 149 150 if (h1) { 151 h1.textContent = text; 152 } 153 154 }); 155 156})(jQuery);
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.