From 6b0fcac695aa7a5517f6f53cec50da493acc4582 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 22 Jun 2024 19:30:00 +0200 Subject: Update --- static/drgn.png | Bin 22312 -> 17913 bytes static/script.js | 31 ++++++------------------------- 2 files changed, 6 insertions(+), 25 deletions(-) (limited to 'static') diff --git a/static/drgn.png b/static/drgn.png index b8cde00..6836383 100755 Binary files a/static/drgn.png and b/static/drgn.png 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 @@ -'use strict'; +"use strict"; // -document.addEventListener('DOMContentLoaded', () => { - document.querySelectorAll('.is-indeterminate').forEach(el => el.indeterminate = true); -}) - -// - -const enableFocusIndicator = e => { - if (e.key !== 'Tab') { - return; - } - - document.body.classList.add('t-keyboard'); - document.removeEventListener('keydown', enableFocusIndicator); - document.addEventListener('mousedown', disableFocusIndicator); -} - -const disableFocusIndicator = () => { - document.body.classList.remove('t-keyboard'); - - document.removeEventListener('mousedown', disableFocusIndicator); - document.addEventListener('keydown', enableFocusIndicator); -} - -document.addEventListener('keydown', enableFocusIndicator); +document.addEventListener("DOMContentLoaded", () => { + document + .querySelectorAll(".is-indeterminate") + .forEach((el) => (el.indeterminate = true)); +}); -- cgit v1.2.3-70-g09d2