PageSourceSearch

https://www.sweetservices.com/wp-content/themes/shoptimizer/assets/js/main.min.js?ver=2.4.5

js sweetservices.com collected 2026-09-26 10:59:30 UTC 4,433 bytes, 1 lines download raw bytes

1var canRunClickFunc=!0;function makeTouchstartWithClick(e){if(!canRunClickFunc)return!1;setTimeout(function(){canRunClickFunc=!0},700);var t=e.target,n=t.closest(".close-drawer");if(t.classList.contains("close-drawer")||n)return document.querySelector("body").classList.remove("filter-open"),void document.querySelector("body").classList.remove("mobile-toggled");n=t.closest(".menu-toggle");if(t.classList.contains("menu-toggle")||n)return e.stopPropagation(),e.preventDefault(),void document.querySelector("body").classList.add("mobile-toggled");if(t.classList.contains("mobile-overlay"))return document.querySelector("body").classList.remove("filter-open"),void document.querySelector("body").classList.remove("mobile-toggled");n=t.closest(".mobile-search-toggle");if(t.classList.contains("mobile-search-toggle")||n)return e.stopPropagation(),e.preventDefault(),void document.querySelector("body").classList.toggle("m-search-toggled");n=t.closest(".add_to_cart_button");t.classList.contains("add_to_cart_button")&&document.querySelector("body").classList.remove("mobile-toggled")}function makeOnTouchTapped(){992<window.innerWidth&&"ontouchstart"in window&&(document.addEventListener("touchstart",function(){},!0),document.addEventListener("click",function(e){var t=e.target;if(!t.classList.contains("menu-item-has-children")){var n=t.closest(".menu-item-has-children");if(!n)return;t=n}var o=document.querySelectorAll(".menu-item-has-children.tapped");return o&&o.forEach(function(e){e!==t&&e.classList.remove("tapped")}),!!t.classList.contains("tapped")||(t.classList.add("tapped"),e.preventDefault(),!1)},!0))}document.addEventListener("DOMContentLoaded",function(){window.addEventListener("load",function(e){var t=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",t+"px"),makeOnTouchTapped()}),window.addEventListener("resize",function(e){var t=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",t+"px"),makeOnTouchTapped()}),window.addEventListener("click",function(e){var t=e.target,n=t.closest(".mobile-filter");if(t.classList.contains("mobile-filter")||n)return e.stopPropagation(),e.preventDefault(),void document.querySelector("body").classList.toggle("filter-open");makeTouchstartWithClick(e),canRunClickFunc=!1}),window.addEventListener("touchstart",function(e){makeTouchstartWithClick(e),canRunClickFunc=!1});var e=document.querySelectorAll(".button-wrapper");e&&e.forEach(function(e){e.classList.add("shoptimizer-size-guide")});var t=document.querySelectorAll("li.full-width");t&&t.forEach(function(e){e.addEventListener("mouseenter",function(e){var t=document.querySelector(".site");t&&t.classList.add("overlay")}),e.addEventListener("mouseleave",function(e){var t=document.querySelector(".site");t&&t.classList.remove("overlay")})});var n=document.querySelector(".col-full-nav");n&&(n.closest(".mobile-toggled")&&(n.addEventListener("click",function(e){document.querySelector("body").classList.remove("mobile-toggled")}),n.addEventListener("touchstart",function(e){document.querySelector("body").classList.remove("mobile-toggled")})));var o=document.querySelectorAll("body .main-navigation ul.menu li.menu-item-has-children .caret");o&&o.forEach(function(e){e.addEventListener("click",function(e){e.target.closest("li").classList.toggle("dropdown-open"),e.preventDefault()})});var i=document.querySelectorAll(".main-navigation ul.menu li.menu-item-has-children > a");i&&i.forEach(function(e){"#"===e.getAttribute("href")&&e.addEventListener("click",function(e){e.target.closest("li").classList.toggle("dropdown-open"),e.preventDefault()})});var c=document.querySelector(".logo-mark a");c&&c.addEventListener("click",function(e){e.target;e.preventDefault(),window.scroll({behavior:"smooth",left:0,top:0})});var r=[].slice.call(document.querySelectorAll("img.lazy")),s=!1;const l=function(){!1===s&&(s=!0,setTimeout(function(){r.forEach(function(e){e.getBoundingClientRect().top<=window.innerHeight&&0<=e.getBoundingClientRect().bottom&&"none"!==getComputedStyle(e).display&&(e.src=e.dataset.src,e.srcset=e.dataset.srcset,e.classList.remove("lazy"),0===(r=r.filter(function(t){return t!==e})).length&&(document.removeEventListener("scroll",l),window.removeEventListener("resize",l),window.removeEventListener("orientationchange",l)))}),s=!1},200))};document.addEventListener("scroll",l),window.addEventListener("resize",l),window.addEventListener("orientationchange",l)});

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.