From 1be9359f25b2d955a662d811f564b22c0ebcc7a5 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 30 Jun 2023 23:05:00 +0200 Subject: [PATCH] dark/html,js --- build.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 15353e5..a23c0b6 100755 --- a/build.py +++ b/build.py @@ -68,6 +68,7 @@ def main():
+

Marc Beninca

@@ -325,7 +326,12 @@ function main() {{ check(tab) push(tab) }} -}}''' +}} + +function swap() {{ + document.body.classList.toggle('dark') +}} +''' # {link_text} with open(page_file, 'bw') as f: f.write(page_text.encode('u8'))