diff options
Diffstat (limited to 'docs/ucode.js')
-rw-r--r-- | docs/ucode.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ucode.js b/docs/ucode.js new file mode 100644 index 0000000..35d2d23 --- /dev/null +++ b/docs/ucode.js @@ -0,0 +1,8 @@ +document.addEventListener('DOMContentLoaded', (ev) => { + const accordionState = window.localStorage.getItem('accordion-id'); + + if (accordionState == null || accordionState == '{}') + document + .querySelector('[data-isopen="false"]') + .setAttribute('data-isopen', 'true'); +}); |