summaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-06-22 19:30:00 +0200
committerVolpeon <git@volpeon.ink>2024-06-22 19:30:00 +0200
commit6b0fcac695aa7a5517f6f53cec50da493acc4582 (patch)
tree05b1ec4bfd484c75f1ee82f06f674aba69ad1408 /static
parentWIP: Refactoring (diff)
downloadiro-design-6b0fcac695aa7a5517f6f53cec50da493acc4582.tar.gz
iro-design-6b0fcac695aa7a5517f6f53cec50da493acc4582.tar.bz2
iro-design-6b0fcac695aa7a5517f6f53cec50da493acc4582.zip
Update
Diffstat (limited to 'static')
-rwxr-xr-xstatic/drgn.pngbin22312 -> 17913 bytes
-rw-r--r--static/script.js31
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
5document.addEventListener('DOMContentLoaded', () => { 5document.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
11const 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
21const disableFocusIndicator = () => {
22 document.body.classList.remove('t-keyboard');
23
24 document.removeEventListener('mousedown', disableFocusIndicator);
25 document.addEventListener('keydown', enableFocusIndicator);
26}
27
28document.addEventListener('keydown', enableFocusIndicator);