From 9ebdd7445711aead2c2d932e112acd8904ffb659 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 30 Jun 2023 23:21:55 +0200 Subject: [PATCH] wip/tabs --- build.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 2df9883..bbc226b 100755 --- a/build.py +++ b/build.py @@ -68,7 +68,7 @@ def main():
- +

Marc Beninca

@@ -302,9 +302,13 @@ padding: 10px; function check(tab) {{ const tabs = tab.split('/') let id = 'tab' + let element for (tab of tabs) {{ id = `${{id}}/${{tab}}` - document.getElementById(id).checked = true + element = document.getElementById(id) + if (element) {{ + element.checked = true + }} }} }} @@ -326,6 +330,10 @@ function main() {{ check(tab) push(tab) }} + const dark = document.getElementById('dark') + if (dark) {{ + dark.checked = true + }} }} function swap() {{