summaryrefslogtreecommitdiff
path: root/html/template.html
blob: 9c1b5a843016f460ba2f7788832f7bc19963ad5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!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>
			<p>This is a link to <a href="https://example.com">example.com</a>.</p>
			<pre><code>#!/usr/bin/python3

print("This is just some example code!")
</code></pre>
		</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>