From a73115df7486e258875d9a526916caf451c4262d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 4 Jul 2023 15:45:25 +0200 Subject: [PATCH] css/debug --- build.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index aa7690c..5c4a630 100755 --- a/build.py +++ b/build.py @@ -309,9 +309,7 @@ border: none; height: 4em; }} -/* - -* {{ +.debug {{ border-color: rgb(255,0,255); border-style: solid; border-width: 1px; @@ -332,6 +330,12 @@ function check(tab) {{ }} }} +function debug() {{ + for (element of document.getElementsByTagName('*')) {{ + element.classList.toggle('debug') + }} +}} + function push(tab) {{ window.history.pushState(null, null, `?tab=${{tab}}`) }} @@ -838,7 +842,10 @@ tabs = { ''', #⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅ 'style': f'''\ -Dark + ''', #⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅ 'tasks': f'''\