summaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-06 10:28:10 +0100
committerVolpeon <git@volpeon.ink>2022-02-06 10:28:10 +0100
commitea8b0bc19219f6f931e3be757c25743c2c828b2e (patch)
tree056af48e13f84e76cb9a26b8b76d28a4fe48d404 /static
parentAdded radio (diff)
downloadiro-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.js6
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
5document.querySelectorAll('.is-indeterminate').forEach(el => el.indeterminate = true); 5document.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
19const disableFocusIndicator = e => { 21const 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);