PageSourceSearch

https://flcs.k12.in.us/dist/assets/MobileMenuAccessibility-Cmbgt7V5.js

js flcs.k12.in.us collected 2026-09-24 10:05:41 UTC 1,965 bytes, 2 lines download raw bytes

1import{$ as r}from"./jquery-UIAagU1C.js";import"./_commonjsHelpers-CE1G-McA.js";const l="ss-header-mobile-menu",c="a.ss-mobile-menu-link, button.ss-mobile-menu-disclosure-button",f=new Set(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Home","End","Escape"]),i=e=>r(e).find(c).filter(function(){return r(this).closest(".ss-mobile-menu-group")[0]===e}),d=e=>r(e).find(c).filter(function(){return r(this).closest(".ss-mobile-menu-group").length===0}),a=(e,n)=>{const t=r(e).closest(".ss-mobile-menu-group");return t.length?i(t[0]):d(n)},m=e=>{if(!e.is(".ss-mobile-menu-disclosure-button")||e.attr("aria-expanded")!=="true")return!1;const n=e.attr("aria-controls");if(!n)return!1;const t=document.getElementById(n);if(!t)return!1;const o=i(t);return o.length?(o[0].focus(),!0):!1},p=(e,n)=>{const t=r(e);if(m(t))return;const o=a(e,n),s=o.index(e);s>=0&&s<o.length-1&&o[s+1].focus()},g=(e,n)=>{const t=a(e,n),o=t.index(e);o>0&&t[o-1].focus()},h=(e,n)=>{const t=a(e,n);t.length&&t[0].focus()},b=(e,n)=>{const t=a(e,n);t.length&&t[t.length-1].focus()},w=(e,n)=>{const t=r(e).closest(".ss-mobile-menu-group");if(!t.length)return!1;const o=t.attr("id"),s=r(n).find(`.ss-mobile-menu-disclosure-button[aria-controls="${o}"]`);return s.length?(s.removeClass("ss-active").attr("aria-expanded","false"),s.focus(),t.slideUp(function(){const u=s.closest(".modal");u.length&&window.ssMobileMenuUpdateFocusLoop?.(u[0])}),!0):!1},E=()=>{const e=document.getElementById(l);e&&e.addEventListener("keydown",n=>{if(!f.has(n.key))return;const t=n.target,o=t.tagName.toLowerCase();if(!(o!=="a"&&o!=="button"))switch(n.key){case"ArrowDown":case"ArrowRight":n.preventDefault(),p(t,e);break;case"ArrowUp":case"ArrowLeft":n.preventDefault(),g(t,e);break;case"Home":n.preventDefault(),h(t,e);break;case"End":n.preventDefault(),b(t,e);break;case"Escape":{w(t,e)&&(n.preventDefault(),n.stopPropagation());break}}},!0)};r(()=>{E()});
2//# sourceMappingURL=MobileMenuAccessibility-Cmbgt7V5.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.