diff options
author | Deniz Akşimşek <deniz@denizaksimsek.com> | 2023-01-10 18:26:33 +0300 |
---|---|---|
committer | Deniz Akşimşek <deniz@denizaksimsek.com> | 2023-01-10 18:26:33 +0300 |
commit | 571b3b9fd1c0eda8d44b4f0b73cc48f9c5802c6f (patch) | |
tree | 606eed4ce0f4bb46f4f74b9431d61338d22a1d66 /releases/_artifacts/v1.0.6/missing-js/overflow-nav.js | |
parent | 08f56c09674ddf0befdf845b25338ce18dc55293 (diff) | |
download | missing-571b3b9fd1c0eda8d44b4f0b73cc48f9c5802c6f.tar.gz missing-571b3b9fd1c0eda8d44b4f0b73cc48f9c5802c6f.zip |
1.0.6 artifacts
Diffstat (limited to 'releases/_artifacts/v1.0.6/missing-js/overflow-nav.js')
-rw-r--r-- | releases/_artifacts/v1.0.6/missing-js/overflow-nav.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/releases/_artifacts/v1.0.6/missing-js/overflow-nav.js b/releases/_artifacts/v1.0.6/missing-js/overflow-nav.js new file mode 100644 index 0000000..8ede3f4 --- /dev/null +++ b/releases/_artifacts/v1.0.6/missing-js/overflow-nav.js @@ -0,0 +1,3 @@ +import{$ as f,asHtml as g,attr as d,behavior as p,makelogger as m,on as l}from"./19.js";const w=m("overflow-nav"),a=p("[data-overflow-nav]",(t,{options:{expandedClass:o="expanded"}})=>{const e=g(f(t,"[data-nav-expander]"));if(e===null)return w("Expand toggle missing from navbar ",t);const c=()=>t.scrollWidth>t.clientWidth,r=()=>t.classList.contains(o),n=(s=!r())=>{s?(t.classList.add(o),d(e,"aria-pressed",!0),e.textContent="\xD7"):(t.classList.remove(o),d(e,"aria-pressed",!1),e.textContent="\u2630")},i=()=>{const s=e.hidden;e.hidden=!c(),s!=e.hidden&&n(!1)};l(e,"click",()=>n()),i(),l(window,"resize",()=>i(),{addedBy:t})});var h=a;a(document);export{h as default}; + +/*# sourceMappingURL=./overflow-nav.js.map */
\ No newline at end of file |