PageSourceSearch

https://cserepmadar.hu/media/mod_vpprime_mega_menu/js/menu.min.js?v1.3

js cserepmadar.hu collected 2026-10-02 13:36:29 UTC 3,750 bytes, 8 lines download raw bytes

1"use strict";
2/*!
3 * @package     VP Prime Framework
4 * @author      Abhishek Das <[email protected]>
5 * @link        https://www.virtueplanet.com
6 * @copyright   Copyright (C) 2023-2025 Virtueplanet Services LLP. All Rights Reserved.
7 * @license     GNU General Public License version 2 or later; see LICENSE.txt
8 */var MegaMenuModule=window.MegaMenuModule||{};!function(l,a,d){l.topSelector=".mod-megamenu",l.itemSelector=".mod-megamenu--item",l.submenuSelector=".mod-megamenu--sub",l.itemAnchorSelector=".mod-megamenu--item-anchor",l.itemTitleSelector=".mod-megamenu--item-title",l.dropdownSelector=".mod-megamenu--container",l.firstLevelClass="mod-megamenu--level-1",l.groupClass="mod-megamenu--group",l.initTimer=null,l.dropdownResizeTimer={},l._init=function(){[].slice.call(a.querySelectorAll(l.topSelector)).forEach(function(t){l.initOne(t)})},l.safeInit=function(){l.initTimer&&clearTimeout(l.initTimer),l.initTimer=setTimeout(function(){l._init()},500)},l.initOne=function(e){[].slice.call(e.querySelectorAll(l.dropdownSelector)).forEach(function(t){t.hasAttribute("data-mmm-uid")||t.setAttribute("data-mmm-uid",Math.random().toString(36).substring(2,11)),l.setDropdownWidth(e,t)})},l.setDropdownWidth=function(t,e){var i=e.getAttribute("data-mmm-drop-width"),o=e.getAttribute("data-mmm-uid");switch(i){case"auto":e.setAttribute("data-mmm-dropdown-auto-resize","start"),l.dropdownResizeTimer[o]&&clearTimeout(l.dropdownResizeTimer[o]),l.dropdownResizeTimer[o]=setTimeout(function(){l.adjustAutoWidth(t,e)},200);break;case"custom":e.style.left="",e.style.right="auto",e.classList.contains(l.firstLevelClass)&&l.setFirstLevelDropdownPosition(t,e,!1);break;case"full_width":e.style.left="",e.style.right="",e.style.width="";var n=a.body.getBoundingClientRect(),r=e.getBoundingClientRect(),s=e.currentStyle||d.getComputedStyle(e);e.classList.contains(l.firstLevelClass)?(e.style.left=n.left-r.left+parseFloat(s.marginLeft)+"px",e.style.width=a.body.clientWidth-(parseFloat(s.marginRight)+parseFloat(s.marginLeft))+"px"):e.style.width="100%"}},l.adjustAutoWidth=function(t,o){o.setAttribute("data-mmm-dropdown-auto-resize","run"),o.style.width="",o.style.left="",o.style.right="",o.parentElement.classList.contains(l.groupClass)?o.style.width="auto":"row"===o.querySelector(l.submenuSelector).style.getPropertyValue("--megamenu-item-direction")&&(o.classList.add("mod-megamenu-test-width"),o.style.width=o.offsetWidth+2+"px",[].slice.call(o.querySelectorAll(l.itemAnchorSelector)).forEach(function(t){var e=0;if("run"===o.getAttribute("data-mmm-dropdown-auto-resize"))for(;l.isOverflown(t)&&"run"===o.getAttribute("data-mmm-dropdown-auto-resize");){if(300<++e){console.warn("Mega Menu: Auto width adjustment loop exceeded 300 iterations. Breaking out to prevent infinite loop.",o);break}var i=(i=l.getOverflowAmount(t))<0?0:i,i=Math.max(Math.ceil(i/5),1);o.style.width=o.offsetWidth+i+2+"px"}}),o.classList.remove("mod-megamenu-test-width")),o.classList.contains(l.firstLevelClass)&&l.setFirstLevelDropdownPosition(t,o,!0),o.setAttribute("data-mmm-dropdown-auto-resize","done")},l.setFirstLevelDropdownPosition=function(t,e){var i,o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],t=t.getBoundingClientRect(),n=e.getBoundingClientRect();n.right>t.right&&(i=n.right-t.right,n=n.left-t.left,0<i)&&(i<n?e.style.left=-1*i+"px":0<n&&(e.style.left=-1*n+"px",o)&&(e.style.width=e.offsetWidth-(i-n)+"px"))},l.isOverflown=function(t){return t.scrollWidth>t.clientWidth},l.getOverflowAmount=function(t){return t.scrollWidth-t.clientWidth},a.addEventListener("DOMContentLoaded",function(t){l.safeInit()}),d.addEventListener("load",function(){l.safeInit()}),d.addEventListener("resize",function(){l.safeInit()})}(MegaMenuModule,document,window);

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.