PageSourceSearch

https://luxxu.net/wp-content/cache/autoptimize/autoptimize_single_cc91d9995c4156e3892eef59cc4ec85d.php

js luxxu.net collected 2026-10-03 23:34:57 UTC 2,680 bytes, 6 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){const nav=document.querySelector(".bg-nav");const links=nav.querySelectorAll("a:not(.logoLink)");const highlight=document.createElement("span");highlight.classList.add("highlight");nav.appendChild(highlight);function moveHighlight(e){const linkRect=e.target.getBoundingClientRect();const navRect=nav.getBoundingClientRect();highlight.style.width=linkRect.width+"px";highlight.style.left=linkRect.left-navRect.left+"px";highlight.style.opacity="1";}
2function resetHighlight(){highlight.style.width="0";highlight.style.opacity="0";}
3links.forEach((link)=>{link.addEventListener("mouseenter",moveHighlight);link.addEventListener("mouseleave",resetHighlight);});const toggles=document.querySelectorAll(".dropdown-toggle");const regularLinks=nav.querySelectorAll("a:not(.dropdown-toggle):not(.logoLink)");let activeDropdown=null;let hoverTimeout=null;function hideAllDropdowns(){document.querySelectorAll(".dropdown").forEach((drop)=>{drop.classList.remove("show");setTimeout(()=>{if(!drop.classList.contains("show")){drop.style.display="none";}},300);});document.querySelectorAll(".dropdown-toggle").forEach((toggle)=>{toggle.classList.remove("active");});activeDropdown=null;}
4function showDropdown(dropdown,toggle){dropdown.style.display="block";toggle.classList.add("active");dropdown.offsetHeight;dropdown.classList.add("show");}
5toggles.forEach((toggle)=>{const id=toggle.dataset.dropdown;const dropdown=document.querySelector(`.dropdown[data-id="${id}"]`);if(!dropdown)return;toggle.addEventListener("click",function(e){if(toggle.getAttribute("href")!=="#"){return;}
6e.preventDefault();});toggle.addEventListener("mouseenter",function(){clearTimeout(hoverTimeout);hideAllDropdowns();showDropdown(dropdown,toggle);activeDropdown=dropdown;});dropdown.addEventListener("mouseenter",function(){clearTimeout(hoverTimeout);});dropdown.addEventListener("mouseleave",function(){hoverTimeout=setTimeout(()=>{if(window.innerWidth>1024){hideAllDropdowns();}},100);});});regularLinks.forEach((link)=>{link.addEventListener("mouseenter",function(){clearTimeout(hoverTimeout);hoverTimeout=setTimeout(()=>{hideAllDropdowns();},100);});});document.addEventListener("click",function(e){const clickedInsideNav=e.target.closest(".bg-nav");const clickedInsideDropdown=e.target.closest(".dropdown");if(!clickedInsideNav&&!clickedInsideDropdown){hideAllDropdowns();}});nav.addEventListener("mouseleave",function(){if(window.innerWidth>1024){hoverTimeout=setTimeout(()=>{hideAllDropdowns();},200);}});nav.addEventListener("mouseenter",function(){clearTimeout(hoverTimeout);});window.addEventListener("resize",function(){hideAllDropdowns();});});

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.