PageSourceSearch

https://www.roadscholar.org/Themes/RoadScholar/bundle/js/component-sidebar-menu.view-DsE1Bgcw.js

js roadscholar.org collected 2026-09-24 09:16:05 UTC 1,227 bytes, 3 lines download raw bytes

1var{listenToMedia:l,getCurrentMedia:c}=globals,o=null;function a(){o=document.querySelectorAll(".component-sidebar-menu"),o.length>0&&(l(i),i(),m())}function m(){document.querySelectorAll(".ssm-list-header-mobile").forEach(e=>{e.addEventListener("click",function(t){t.preventDefault(),o.forEach(n=>n.classList.toggle("open-mobile-menu"))})}),document.querySelectorAll(".ssm-list-item:not(.ssm-list-header-mobile)").forEach(e=>{e.addEventListener("click",function(t){document.querySelectorAll(".ssm-list-item").forEach(s=>s.classList.remove("selected"));const n=t.currentTarget;n.classList.add("selected"),c()==="mobile"&&o.forEach(s=>{s.classList.toggle("open-mobile-menu");const r=s.querySelector(".ssm-mobile-text");r&&(r.textContent=n.textContent.trim())})})})}function i(){c()==="mobile"&&(u(),d())}function d(){o.forEach(e=>{const t=e.closest(".sidebar");t&&t.querySelector(".component-button")&&e.classList.add("donate-mobile")})}function u(){const e=document.querySelector(".ssm-list-header-mobile .ssm-mobile-text"),t=document.querySelector(".ssm-list-item.selected");e&&t&&(e.textContent=t.textContent.trim())}a();export{a as initComponentSidebarMenu};
2
3//# sourceMappingURL=component-sidebar-menu.view-DsE1Bgcw.js.map

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.