diff options
author | 2024-01-05 09:16:47 +0800 | |
---|---|---|
committer | 2024-01-05 09:21:08 +0800 | |
commit | 058b562304a96055a57f8daee80db07c596684ec (patch) | |
tree | 10e3aedc7395a487819f8dc93a393ce44ea222cf /postgres | |
parent | Shouldn't a white wave be white? (diff) |
Dark: Refactor toggle handling JS
- Use localstorage. Advantages:
- One key=value for the entire site, without needing to specify
`path=/`
- No need for string splitting to parse the `key=value; ...` data
- Suggested more widely in tutorials
Pretty good support: https://caniuse.com/?search=localstorage
- Remove the need for JQuery, use IDs for switch and knob elements.
- This also makes the code more robust if the page has other switch &
knob classes!
Diffstat (limited to 'postgres')
0 files changed, 0 insertions, 0 deletions