File: layout.html

package info (click to toggle)
mithril 1.1.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,824 kB
  • sloc: javascript: 16,774; makefile: 5; sh: 1
file content (42 lines) | stat: -rw-r--r-- 1,449 bytes parent folder | download
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
<html>
	<head>
		<meta charset="UTF-8" />
		<title>Mithril.js</title>
		<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" />
		<link href="style.css" rel="stylesheet" />
		<link rel="icon" type="image/png" sizes="32x32" href="favicon.png" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
	</head>
	<body>
		<header>
			<section>
				<a class="hamburger" href="javascript:;">≡</a>
				<h1><img src="logo.svg"> Mithril <small>[version]</small></h1>
				<nav>
					<a href="index.html">Guide</a>
					<a href="api.html">API</a>
					<a href="https://gitter.im/MithrilJS/mithril.js">Chat</a>
					<a href="https://github.com/MithrilJS/mithril.js">GitHub</a>
				</nav>
			</section>
		</header>
		<main>
			<section>
				[body]
				<hr />
				<small>License: MIT. &copy; Leo Horie.</small>
			</section>
		</main>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/prism.min.js" defer></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/components/prism-jsx.min.js" defer></script>
		<script src="https://unpkg.com/mithril@[version]/mithril.js" async></script>
		<script>
		document.querySelector(".hamburger").onclick = function() {
			document.body.className = document.body.className === "navigating" ? "" : "navigating"
			document.querySelector("h1 + ul").onclick = function() {
				document.body.className = ''
			}
		}
		</script>
	</body>
</html>