PageSourceSearch

https://lighteracorporation.com/wp-content/plugins/woostify-pro/modules/mega-menu/js/script.min.js?ver=1.7.0

js lighteracorporation.com collected 2026-10-08 19:48:41 UTC 2,774 bytes, 1 lines download raw bytes

1"use strict";var woostifyToggleVerticalMenu=function(){var e=document.querySelectorAll(".toggle-vertical-menu-button");e.length&&e.forEach(function(e){var i=1;e.onclick=function(){var n=this,o=n.closest(".vertical-menu-wrapper");o.querySelector(".site-vertical-menu");o.classList.add("active"),i=1==i?2:1,document.addEventListener("click",function(e){var t=e.target.closest(".site-vertical-menu");n===e.target&&1==i?o.classList.remove("active"):n==e.target||t||(o.classList.remove("active"),i=1)})}})},woostifyMegaMenuContentWidth=function(){var e=document.querySelectorAll(".has-mega-menu-content-width"),i=window.innerWidth;e.length&&e.forEach(function(e){var t=e.querySelector(".mega-menu-wrapper"),n=t?t.offsetWidth:0,o=(!t||t.getBoundingClientRect(),e.offsetWidth),e=e.getBoundingClientRect(),e=i-e.right-o/2-n/2;if(t)return i<woostify_header_menu_breakpoint?(t.style.left="0px",void(t.style.right="")):void(0<e?(t.style.left=-(n/2-o/2)+"px",t.style.right="auto"):(t.style.left="auto",t.style.right="0px"))})},woostifyMegaMenuContainerWidth=function(){var e=document.querySelectorAll(".has-mega-menu-container-width");e.length&&e.forEach(function(e){if(!e.closest(".sidebar-menu")){var t=e.closest(".site-header-inner")||e.closest(".elementor-section"),n=!!t&&t.querySelector(".woostify-container"),t=(n=n||!!t&&t.querySelector(".elementor-container"))?parseInt(window.getComputedStyle(n).paddingLeft):0,o=n?parseInt(window.getComputedStyle(n).paddingRight):0,e=(n&&n.offsetWidth,e.querySelector(".mega-menu-wrapper")),i=window.innerWidth;if(e){if(i<woostify_header_menu_breakpoint)return e.style.left="",void(e.style.right="");i=n.offsetWidth-t-o;e.style.width=i+"px",e.style.left=t+"px"}}})},woostifyMegaMenuFullWidth=function(){var e=document.querySelectorAll(".has-mega-menu-full-width");e.length&&e.forEach(function(e){if(!e.closest(".sidebar-menu")){var t=e.closest(".site-header-inner")||e.closest(".elementor-section"),n=(n=!!t&&t.querySelector(".woostify-container"))||!!t&&t.querySelector(".elementor-container"),t=(e.closest(".woostify-container")||e.closest(".elementor-widget-container")).getBoundingClientRect(),o=window.innerWidth,n=(n&&n.offsetWidth,e.querySelector(".mega-menu-wrapper")),e=(n.getBoundingClientRect(),t.left),t=t.right;if(o<woostify_header_menu_breakpoint)return n.style.left="",void(n.style.right="");n.style.left=e<=0?"0px":-e+"px",n.style.right=o<=t?"0px":-(o-t)+"px"}})};document.addEventListener("DOMContentLoaded",function(){woostifyToggleVerticalMenu(),window.addEventListener("load",function(){woostifyMegaMenuContentWidth(),woostifyMegaMenuContainerWidth(),woostifyMegaMenuFullWidth()}),window.addEventListener("resize",function(){woostifyMegaMenuContentWidth(),woostifyMegaMenuContainerWidth(),woostifyMegaMenuFullWidth()})});

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.