PageSourceSearch

https://volxmusik.de/js/off_canvas_menu.js

js volxmusik.de collected 2026-10-02 20:27:29 UTC 1,866 bytes, 1 lines download raw bytes

1!function(){"use strict";function e(){var e,t=document.getElementById("off_canvas_menu_dialog"),n=document.getElementById("off_canvas_menu_open"),a=document.getElementById("off_canvas_menu_close");if(t&&n&&a){n.addEventListener("click",function(){!t.hasAttribute("open")&&("function"==typeof t.showModal?t.showModal():t.setAttribute("open","open"),document.documentElement.classList.add("off_canvas_menu_open"),document.body.classList.add("off_canvas_menu_open"),n.setAttribute("aria-expanded","true"))}),a.addEventListener("click",function(){r()}),t.addEventListener("close",function(){n.setAttribute("aria-expanded","false")});var o=t.querySelector(".off_canvas_menu_overlay");o&&o.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),r()});var i=t.querySelectorAll(".off_canvas_submenu_toggle");for(e=0;e<i.length;e++)i[e].addEventListener("click",function(){var e=this.getAttribute("aria-controls"),t=document.getElementById(e);if(t){if("true"===this.getAttribute("aria-expanded")){this.setAttribute("aria-expanded","false"),t.setAttribute("hidden","hidden");return}d(this),this.setAttribute("aria-expanded","true"),t.removeAttribute("hidden")}})}function r(){"function"==typeof t.close?t.close():(t.removeAttribute("open"),n.setAttribute("aria-expanded","false")),document.documentElement.classList.remove("off_canvas_menu_open"),document.body.classList.remove("off_canvas_menu_open")}function d(e){var t=e.parentNode.parentNode;for(a=0,n=t.querySelectorAll(".off_canvas_submenu_toggle");a<n.length;a++){var n,a,o,i,r,d=n[a];d!==e&&(o=d.parentNode).parentNode===t&&"true"===d.getAttribute("aria-expanded")&&(i=d.getAttribute("aria-controls"),r=document.getElementById(i),d.setAttribute("aria-expanded","false"),r&&r.setAttribute("hidden","hidden"))}}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}();

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.