PageSourceSearch

https://tamagotchi-official.com/mx/js/official/common.js?20250317212344

js tamagotchi-official.com collected 2026-10-02 03:41:43 UTC 1,880 bytes, 1 lines download raw bytes

1function throttle(n,o){let c,i;return function(){var t=this,e=arguments;i?(clearTimeout(c),c=setTimeout(function(){Date.now()-i>=o&&(n.apply(t,e),i=Date.now())},o-(Date.now()-i))):(n.apply(t,e),i=Date.now())}}function handleIntersection(t){t.forEach(t=>{t.isIntersecting&&t.target.classList.add("-active")})}window.addEventListener("load",function(){const t=document.querySelectorAll(".js-menu"),e=document.querySelectorAll(".c-nav__item");t&&t.forEach(t=>{t.addEventListener("click",()=>{const t=document.querySelectorAll("a:not(.p-official-menu .c-nav__item-link)"),e=document.querySelectorAll("input"),n=document.querySelectorAll("button:not(.p-official-menu__close)"),o=document.querySelectorAll(".p-official-menu__close");"active"==document.body.getAttribute("data-menu")?(document.body.setAttribute("data-menu",""),t.forEach(function(t){t.removeAttribute("tabindex")}),e.forEach(function(t){t.removeAttribute("tabindex")}),n.forEach(function(t){t.removeAttribute("tabindex")}),o.forEach(function(t){t.setAttribute("tabindex",-1)})):(document.body.setAttribute("data-menu","active"),t.forEach(function(t){t.setAttribute("tabindex",-1)}),e.forEach(function(t){t.setAttribute("tabindex",-1)}),n.forEach(function(t){t.setAttribute("tabindex",-1)}),o.forEach(function(t){t.removeAttribute("tabindex")}))})}),e&&e.forEach(t=>{t.addEventListener("click",()=>{document.body.setAttribute("data-menu","")})})});const handleIntersectionOptions={threshold:.4},throttledScroll=throttle(function(){const t=document.querySelectorAll(".js-animate"),e=document.querySelector(".js-header-menu");t&&t.forEach(t=>{const e=new IntersectionObserver(handleIntersection,handleIntersectionOptions);e.observe(t)}),e&&(800<=window.scrollY?e.classList.add("-active"):e.classList.remove("-active"))},200);window.addEventListener("scroll",throttledScroll),window.addEventListener("load",throttledScroll);

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.