1const handleTopNavClickEvents = () => { 2 document.querySelectorAll("#naas-headless-navigation-ssr a").forEach((e) => { 3 e.addEventListener("click", (t) => { 4 t.preventDefault(); 5 const n = e.closest("[id]"); 6 if (n) { 7 const e = n.getAttribute("id"); 8 if (e) { 9 window.dxNavLastClickedSelector = `#${e}`; 10 window.dxNavSsrCanCleanUp = true; 11 } 12 } 13 }); 14 }); 15}; 16 17const handleBreadcrumbsClickEvents = () => { 18 document 19 .querySelectorAll("#naas-headless-navigation-ssr a.dxnav__breadcrumb-link") 20 .forEach((e, index) => { 21 e.addEventListener("click", (t) => { 22 t.preventDefault(); 23 window.dxNavLastClickedSelector = index; 24 window.dxNavSsrCanCleanUp = true; 25 }); 26 }); 27}; 28 29if (["complete", "interactive"].includes(document.readyState)) { 30 handleTopNavClickEvents(); 31 handleBreadcrumbsClickEvents(); 32} 33 34const handleLabelVisibility = () => { 35 const rightMenu = document.querySelector("#right-xf-menu"); 36 const width = rightMenu.scrollWidth; 37 const availableWidth = rightMenu.parentElement.clientWidth; 38 if (width > availableWidth) { 39 const items = rightMenu.querySelectorAll("li"); 40 items.forEach((i) => { 41 const span = i.querySelector("span"); 42 if (i.querySelector("svg") && span) { 43 span.style.display = "none"; 44 span.hidden = true; 45 } 46 }); 47 } 48 rightMenu.style.visibility = "visible"; 49 rightMenu.style.maxWidth = "unset"; 50}; 51 52const initialise = () => { 53 handleTopNavClickEvents(); 54 handleBreadcrumbsClickEvents(); 55 handleLabelVisibility(); 56}; 57 58document.addEventListener("DOMContentLoaded", initialise);
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.