clean html

This commit is contained in:
Marc Beninca 2023-07-01 12:22:27 +02:00
parent 0b1097ce35
commit 3cd2f89ea1

View file

@ -31,26 +31,29 @@ def main():
link_text = f.read().decode('u8') link_text = f.read().decode('u8')
page_file = os.path.join(web, 'index.html') page_file = os.path.join(web, 'index.html')
page_text = f'''\ page_text = f'''\
<!DOCTYPE html><html><head> <!DOCTYPE html>
<!----------------------------------------------------------------------------->
<html>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="flattr:id" content="z3d26l" /> <meta name="flattr:id" content="z3d26l" />
<meta name="viewport" content="initial-scale=1,width=device-width" /> <meta name="viewport" content="initial-scale=1,width=device-width" />
<link rel="stylesheet" href="{style}/index.css" /> <link rel="stylesheet" href="{style}/index.css" />
<script src="{script}/index.js"></script> <script src="{script}/index.js"></script>
<title>Marc Beninca</title> <title>Marc Beninca</title>
</head>
<!-----------------------------------------------------------------------------> <body onload="main()">
</head><body onload="main()"><header>
<!-----------------------------------------------------------------------------> <header>
<h1>Marc Beninca</h1> <h1>Marc Beninca</h1>
<input type="checkbox" id="dark" onclick="swap()">Dark</input> <input type="checkbox" id="dark" onclick="swap()">Dark</input>
<!-----------------------------------------------------------------------------> </header>
</header><main>
<!-----------------------------------------------------------------------------> <main>
<div class="tabs"> <div class="tabs">
<input type="radio" onclick="update(id)" <input type="radio" onclick="update(id)"
@ -109,7 +112,11 @@ def main():
</div></div> </div></div>
</div> </div>
</main></body></html> </main>
</body>
</html>
''' '''
css_file = os.path.join(css, 'index.css') css_file = os.path.join(css, 'index.css')
css_text = f'''\ css_text = f'''\