diff options
Diffstat (limited to 'static')
| -rwxr-xr-x | static/drgn.png | bin | 22312 -> 17913 bytes | |||
| -rw-r--r-- | static/script.js | 31 | 
2 files changed, 6 insertions, 25 deletions
diff --git a/static/drgn.png b/static/drgn.png index b8cde00..6836383 100755 --- a/static/drgn.png +++ b/static/drgn.png  | |||
| Binary files differ | |||
diff --git a/static/script.js b/static/script.js index 00962e5..846c842 100644 --- a/static/script.js +++ b/static/script.js  | |||
| @@ -1,28 +1,9 @@ | |||
| 1 | 'use strict'; | 1 | "use strict"; | 
| 2 | 2 | ||
| 3 | // | 3 | // | 
| 4 | 4 | ||
| 5 | document.addEventListener('DOMContentLoaded', () => { | 5 | document.addEventListener("DOMContentLoaded", () => { | 
| 6 | document.querySelectorAll('.is-indeterminate').forEach(el => el.indeterminate = true); | 6 | document | 
| 7 | }) | 7 | .querySelectorAll(".is-indeterminate") | 
| 8 | 8 | .forEach((el) => (el.indeterminate = true)); | |
| 9 | // | 9 | }); | 
| 10 | |||
| 11 | const enableFocusIndicator = e => { | ||
| 12 | if (e.key !== 'Tab') { | ||
| 13 | return; | ||
| 14 | } | ||
| 15 | |||
| 16 | document.body.classList.add('t-keyboard'); | ||
| 17 | document.removeEventListener('keydown', enableFocusIndicator); | ||
| 18 | document.addEventListener('mousedown', disableFocusIndicator); | ||
| 19 | } | ||
| 20 | |||
| 21 | const disableFocusIndicator = () => { | ||
| 22 | document.body.classList.remove('t-keyboard'); | ||
| 23 | |||
| 24 | document.removeEventListener('mousedown', disableFocusIndicator); | ||
| 25 | document.addEventListener('keydown', enableFocusIndicator); | ||
| 26 | } | ||
| 27 | |||
| 28 | document.addEventListener('keydown', enableFocusIndicator); | ||
