switch js

This commit is contained in:
Marc Beninca 2023-06-30 20:27:57 +02:00
parent 2e7c76578d
commit 3177ee4d50

View file

@ -49,18 +49,11 @@ def main():
<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="index.css" /> <link rel="stylesheet" href="index.css" />
<script src="index.js"></script>
<title>Marc Beninca</title> <title>Marc Beninca</title>
<!-----------------------------------------------------------------------------> <!----------------------------------------------------------------------------->
</head><script> </head><body onload="main()"><header>
<!----------------------------------------------------------------------------->
function main() {{
if (! window.location.href.includes('#')) {{
window.location.href += '#main';
}}
}}
<!----------------------------------------------------------------------------->
</script><body onload="main();"><header>
<!-----------------------------------------------------------------------------> <!----------------------------------------------------------------------------->
<h1><a href="#home">Marc Beninca</a></h1> <h1><a href="#home">Marc Beninca</a></h1>