summaryrefslogtreecommitdiffhomepage
path: root/view.tmpl
blob: b545b1de477d7a00cc99c802599f46ae2e57a7d3 (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
{{define "view"}}
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" type="text/css" href="/style.css">
<link rel="stylesheet" type="text/css" href="/page.css">
<title>{{.Name}} - Derelict</title>
<body>
<div id="container"></div>
<div class="toolbar-wrap">
	<button onclick="this.parentNode.classList.toggle('enabled')">Sidebar</button>
	<div id="toolbar">
		<h1>Derelict</h1>
		<p>LMB and drag in space to rotate camera.<br>RMB and drag in space to move camera.
		<p>LMB wreck to open killmail.<br>RMB wreck to focus camera.
		<p>Scroll to zoom in/out.
		<h2>Grid</h2>
		<select id="grid"></select>
	</div>
</div>
<script type="module">
import { init } from '/derelict.js'
init({id: "{{.Id}}", container: document.getElementById('container'), toolbar: document.getElementById('toolbar')})
</script>
{{end}}