PageSourceSearch

https://onepiece.store/wp-content/cache/min/1/wp-content/themes/sh…/assets/js/main.min.js?ver=1791368573

js onepiece.store collected 2026-10-07 14:01:39 UTC 5,053 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;if(!t.closest(".filters.close-drawer"))return t.classList.contains("mobile-overlay")&&document.querySelector("body").classList.contains("filter-open")?(e.preventDefault(),e.stopPropagation(),void document.querySelector("body").classList.remove("filter-open")):void 0;document.querySelector("body").classList.remove("filter-open")}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");if(!n||!n.classList.contains("menu-item-has-children"))return!0;t=n}var i=document.querySelectorAll(".menu-item-has-children.tapped");return i&&i.forEach((function(e){e!==t&&e.classList.remove("tapped")})),!!t.classList.contains("tapped")||(t.classList.add("tapped"),e.preventDefault(),!1)}),!0))}function handleFirstTab(e){9===e.keyCode&&(document.body.classList.add("keyboard-active"),window.removeEventListener("keydown",handleFirstTab))}function updateMenuAriaExpanded(){var e=document.querySelectorAll("#menu-primary-menu li > .sub-menu-wrapper");e&&e.forEach((function(e){var t=e.closest("li.menu-item-has-children");t&&("hidden"!==window.getComputedStyle(e).visibility?t.hasAttribute("aria-expanded")&&t.setAttribute("aria-expanded","true"):t.hasAttribute("aria-expanded")&&t.setAttribute("aria-expanded","false"))}))}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(".shoptimizer-mobile-filter");if(t.classList.contains("shoptimizer-mobile-toggle")||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.querySelectorAll("body .main-navigation ul.menu li.menu-item-has-children .caret");n&&n.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 o=document.querySelector(".logo-mark a");o&&o.addEventListener("click",(function(e){e.target,e.preventDefault(),window.scroll({behavior:"smooth",left:0,top:0})}));var r=document.querySelectorAll("a.variable-grouped-sticky");r&&r.forEach((function(e){"#"!==e.getAttribute("href")&&e.addEventListener("click",(function(t){var n=document.querySelector(e.getAttribute("href"));n&&(t.preventDefault(),window.scroll({behavior:"smooth",left:0,top:n.offsetTop-80}))}))}));var a=[].slice.call(document.querySelectorAll("img.lazy")),c=!1;const u=function(){!1===c&&(c=!0,setTimeout((function(){a.forEach((function(e){e.getBoundingClientRect().top<=window.innerHeight&&0<=e.getBoundingClientRect().bottom&&"none"!==getComputedStyle(e).display&&(e.src=e.dataset.src,e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.classList.remove("lazy"),0===(a=a.filter((function(t){return t!==e}))).length&&(document.removeEventListener("scroll",u),window.removeEventListener("resize",u),window.removeEventListener("orientationchange",u)))})),c=!1}),200))};document.addEventListener("scroll",u),window.addEventListener("resize",u),window.addEventListener("orientationchange",u);var d=document.querySelectorAll("#menu-primary-menu li.menu-item-has-children");d&&d.forEach((function(e){e.addEventListener("mouseenter",(function(){setTimeout((function(){updateMenuAriaExpanded()}),50)})),e.addEventListener("mouseleave",(function(){setTimeout((function(){updateMenuAriaExpanded()}),50)}))})),document.addEventListener("focusin",(function(){setTimeout((function(){updateMenuAriaExpanded()}),50)})),document.addEventListener("focusout",(function(){setTimeout((function(){updateMenuAriaExpanded()}),50)}))})),window.addEventListener("keydown",handleFirstTab)

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.