From ea8b0bc19219f6f931e3be757c25743c2c828b2e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 6 Feb 2022 10:28:10 +0100 Subject: Added checkbox and switch --- static/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'static') 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 @@ // -document.querySelectorAll('.is-indeterminate').forEach(el => el.indeterminate = true); +document.addEventListener('DOMContentLoaded', () => { + document.querySelectorAll('.is-indeterminate').forEach(el => el.indeterminate = true); +}) // @@ -16,7 +18,7 @@ const enableFocusIndicator = e => { document.addEventListener('mousedown', disableFocusIndicator); } -const disableFocusIndicator = e => { +const disableFocusIndicator = () => { document.body.classList.remove('t-keyboard'); document.removeEventListener('mousedown', disableFocusIndicator); -- cgit v1.2.3-70-g09d2