aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/www/releases/_artifacts/v1.0.8/missing-js/overflow-nav.js
diff options
context:
space:
mode:
authorDeniz Akşimşek <deniz@denizaksimsek.com>2023-09-02 16:15:13 +0300
committerDeniz Akşimşek <deniz@denizaksimsek.com>2023-09-02 16:15:13 +0300
commit19c5287dd15b8ecce0f4faa14922c921d3a17671 (patch)
tree3f29b7f77752b882afd70da9fd7fc56c5f9b7df8 /www/releases/_artifacts/v1.0.8/missing-js/overflow-nav.js
parent45f2b01aa4c8cdcf1979b93cda97d0d96f4d3b9c (diff)
downloadmissing-19c5287dd15b8ecce0f4faa14922c921d3a17671.tar.gz
missing-19c5287dd15b8ecce0f4faa14922c921d3a17671.zip
simplify build and project structure -- big refactor
Diffstat (limited to 'www/releases/_artifacts/v1.0.8/missing-js/overflow-nav.js')
-rw-r--r--www/releases/_artifacts/v1.0.8/missing-js/overflow-nav.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/releases/_artifacts/v1.0.8/missing-js/overflow-nav.js b/www/releases/_artifacts/v1.0.8/missing-js/overflow-nav.js
new file mode 100644
index 0000000..8ede3f4
--- /dev/null
+++ b/www/releases/_artifacts/v1.0.8/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