dark/html,js

This commit is contained in:
Marc Beninca 2023-06-30 23:05:00 +02:00
parent b56516d0a2
commit 1be9359f25

View file

@ -68,6 +68,7 @@ def main():
</head><body onload="main()"><header>
<!----------------------------------------------------------------------------->
<input type="checkbox" onclick="swap()" />
<h1><a href="#home">Marc Beninca</a></h1>
<!----------------------------------------------------------------------------->
@ -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'))