PageSourceSearch

https://katowicegzm2027.eu/wp-content/themes/hello-elementor/assets/js/menus.js

js katowicegzm2027.eu collected 2026-10-08 07:25:10 UTC 836 bytes, 41 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2
3    function initMenu() {
4
5        document.querySelectorAll(".site-navigation-dropdown .menu-item-has-children").forEach(function(item){
6
7            if(item.querySelector(".submenu-toggle"))
8                return;
9
10            let arrow=document.createElement("span");
11            arrow.className="submenu-toggle";
12
13            item.appendChild(arrow);
14
15            arrow.addEventListener("click",function(e){
16
17                e.preventDefault();
18                e.stopPropagation();
19
20                item.classList.toggle("submenu-open");
21
22            });
23
24        });
25
26    }
27
28    initMenu();
29
30    const observer=new MutationObserver(function(){
31
32        initMenu();
33
34    });
35
36    observer.observe(document.body,{
37        childList:true,
38        subtree:true
39    });
40
41});

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.