dark/html,js
This commit is contained in:
parent
b56516d0a2
commit
1be9359f25
1 changed files with 7 additions and 1 deletions
8
build.py
8
build.py
|
@ -68,6 +68,7 @@ def main():
|
||||||
</head><body onload="main()"><header>
|
</head><body onload="main()"><header>
|
||||||
<!----------------------------------------------------------------------------->
|
<!----------------------------------------------------------------------------->
|
||||||
|
|
||||||
|
<input type="checkbox" onclick="swap()" />
|
||||||
<h1><a href="#home">Marc Beninca</a></h1>
|
<h1><a href="#home">Marc Beninca</a></h1>
|
||||||
|
|
||||||
<!----------------------------------------------------------------------------->
|
<!----------------------------------------------------------------------------->
|
||||||
|
@ -325,7 +326,12 @@ function main() {{
|
||||||
check(tab)
|
check(tab)
|
||||||
push(tab)
|
push(tab)
|
||||||
}}
|
}}
|
||||||
}}'''
|
}}
|
||||||
|
|
||||||
|
function swap() {{
|
||||||
|
document.body.classList.toggle('dark')
|
||||||
|
}}
|
||||||
|
'''
|
||||||
# {link_text}
|
# {link_text}
|
||||||
with open(page_file, 'bw') as f:
|
with open(page_file, 'bw') as f:
|
||||||
f.write(page_text.encode('u8'))
|
f.write(page_text.encode('u8'))
|
||||||
|
|
Loading…
Reference in a new issue