diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-06 10:28:10 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-06 10:28:10 +0100 |
| commit | ea8b0bc19219f6f931e3be757c25743c2c828b2e (patch) | |
| tree | 056af48e13f84e76cb9a26b8b76d28a4fe48d404 /static | |
| parent | Added radio (diff) | |
| download | iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.tar.gz iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.tar.bz2 iro-design-ea8b0bc19219f6f931e3be757c25743c2c828b2e.zip | |
Added checkbox and switch
Diffstat (limited to 'static')
| -rw-r--r-- | static/script.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/static/script.js b/static/script.js index ece93e8..00962e5 100644 --- a/static/script.js +++ b/static/script.js | |||
| @@ -2,7 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | // | 3 | // |
| 4 | 4 | ||
| 5 | document.querySelectorAll('.is-indeterminate').forEach(el => el.indeterminate = true); | 5 | document.addEventListener('DOMContentLoaded', () => { |
| 6 | document.querySelectorAll('.is-indeterminate').forEach(el => el.indeterminate = true); | ||
| 7 | }) | ||
| 6 | 8 | ||
| 7 | // | 9 | // |
| 8 | 10 | ||
| @@ -16,7 +18,7 @@ const enableFocusIndicator = e => { | |||
| 16 | document.addEventListener('mousedown', disableFocusIndicator); | 18 | document.addEventListener('mousedown', disableFocusIndicator); |
| 17 | } | 19 | } |
| 18 | 20 | ||
| 19 | const disableFocusIndicator = e => { | 21 | const disableFocusIndicator = () => { |
| 20 | document.body.classList.remove('t-keyboard'); | 22 | document.body.classList.remove('t-keyboard'); |
| 21 | 23 | ||
| 22 | document.removeEventListener('mousedown', disableFocusIndicator); | 24 | document.removeEventListener('mousedown', disableFocusIndicator); |
