Files

35 lines
823 B
HTML
Raw Permalink Normal View History

2018-09-14 18:02:51 +02:00
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2019-03-07 18:14:27 +01:00
<link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,700" rel="stylesheet">
<title>{{ .Title }} | Pion</title>
<style>
body {
font-family: "Quicksand", sans-serif;
font-weight: 400;
margin: 4em 10%;
}
</style>
2018-09-14 18:02:51 +02:00
<link rel="stylesheet" type="text/css" href="demo.css">
2019-03-07 18:14:27 +01:00
{{ if .JS }}
2018-09-14 18:02:51 +02:00
<script src="demo.js"></script>
2019-03-07 18:14:27 +01:00
{{ else }}
<script src="/wasm_exec.js"></script>
<script>
const go = new Go();
WebAssembly.instantiateStreaming(fetch("demo.wasm"), go.importObject).then((result) => {
go.run(result.instance);
});
</script>
{{ end }}
2018-09-14 18:02:51 +02:00
</head>
<body>
2019-03-07 18:14:27 +01:00
<h1>{{ .Title }}</h1>
<p><a href="/">< Home</a></p>
2018-09-14 18:02:51 +02:00
<div>
{{ template "demo.html" }}
</div>
</body>
</html>