diff options
| author | 2026-06-29 21:35:43 +0000 | |
|---|---|---|
| committer | 2026-06-29 21:35:43 +0000 | |
| commit | 8be9f27fd26f07bfd8872e0a71bba5c3d145089b (patch) | |
| tree | 6c194250c139fcbec061e6f252bd1f03268bdf80 /static/script.js | |
| parent | progress bar - also give color feedback (diff) | |
nojs faq expander
Diffstat (limited to 'static/script.js')
| -rw-r--r-- | static/script.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/static/script.js b/static/script.js index 8137b45..c6fd3b4 100644 --- a/static/script.js +++ b/static/script.js @@ -77,28 +77,8 @@ addEventListener("DOMContentLoaded", function () { // Iterate over all pasted files. uploadFiles(e.clipboardData.files) }); - - - - /* EXPANDER */ - document.querySelectorAll('.expander-toggle').forEach((e) => { - e.addEventListener('click', toggle_expand); - }); }); -function toggle_expand(ev) { - const cl = this.parentNode.querySelector('.expander').classList; - const icon = this.parentNode.querySelector('.expander-icon'); - if (cl.contains('expander-hidden')) { - cl.replace('expander-hidden', 'expander-shown'); - icon.innerHTML = "▼"; - } else { - cl.remove('expander-shown'); - cl.add('expander-hidden'); - icon.innerHTML = "►"; - } -} - function FileUpload(preview, file) { this.ctrl = createThrobber(preview); const xhr = new XMLHttpRequest(); |
