diff options
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); |