diff options
Diffstat (limited to 'html/template.html')
-rw-r--r-- | html/template.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/html/template.html b/html/template.html new file mode 100644 index 0000000..8416587 --- /dev/null +++ b/html/template.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> + +<!-- + vim: shiftwidth=4 tabstop=4 noexpandtab +--> + +<html> + + <head> + + <title>libweb</title> + + <meta charset="utf-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="stylesheet" href="../css/xengineering.css" type="text/css"> + + </head> + + <body> + + <nav> + <button onclick=toggleMenu()>MENU</button> + <a href="https://xengineering.eu">xengineering.eu</a> + </nav> + + <main> + <h1>libweb</h1> + <p>A repository with reusable components for web development.</p> + <a href="https://example.com">example link</a> + </main> + + <script> + function toggleMenu() { + var items = document.getElementsByTagName("a"); + for(var i=0; i<items.length; i++) { + if (items[i].parentNode.tagName == "NAV") { + if (items[i].style.display == "block") { + items[i].style.display = "none"; + } else { + items[i].style.display = "block"; + } + } + } + } + </script> + + </body> + +</html> |