-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
172 lines (144 loc) · 5.3 KB
/
index.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Disable zooming: -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<head>
<title>[FWB]</title>
<script type="module" nonce="86rKYnkWmRe1PGZqVzy01Q==">
import init, * as bindings from '/eframe_template-7131f81c89e61315.js';
const wasm = await init('/eframe_template-7131f81c89e61315_bg.wasm');
window.wasmBindings = bindings;
dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));
</script>
<base href="/" />
<link rel="icon" href="/favicon-f402c8741ce815ec.ico" integrity="sha384-jNOAE6jgE03LznIulCTVP6BH4NrTuROFjP9wj8bV1UUMJKtZAvstFpIAP3PDcFpx"/>
<link rel="manifest" href="assets/manifest.json">
<link rel="apple-touch-icon" href="assets/icon_ios_touch_192.png">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="white">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#404040">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.4.1/milligram.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html {
/* Remove touch delay: */
touch-action: manipulation;
}
html,
body {
margin: 0 !important;
padding: 0 !important;
height: 100%;
width: 100%;
color: #1F1F1F;
}
.grid_wrap {
display:grid;
grid-template-columns: auto 400px;
grid-template-rows: 100%;
}
.wrapper {
margin: 30px 0;
}
@media( max-width: 768px ) { .grid_wrap {
grid-template-columns: 100%;
} }
/* Make canvas fill entire document: */
canvas {
margin-right: auto;
margin-left: auto;
display: block;
width: 100%;
height: 100%;
min-height: 100vh;
}
.centered {
margin-right: auto;
margin-left: auto;
display: block;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #f0f0f0;
font-size: 24px;
/* font-family: Ubuntu-Light, Helvetica, sans-serif; */
text-align: center;
}
/* ---------------------------------------------- */
/* Loading animation from https://loading.io/css/ */
.lds-dual-ring {
display: inline-block;
width: 24px;
height: 24px;
}
.lds-dual-ring:after {
content: " ";
display: block;
width: 24px;
height: 24px;
margin: 0px;
border-radius: 50%;
border: 3px solid #fff;
border-color: #fff transparent #fff transparent;
animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
li {
margin-left: 20px;
}
@media( max-width:700px ) {
#eframe { display: none;}
}
</style>
<script>
function write_output( str ) {
document.getElementById("output").innerHTML = str;
window.scrollTo({top:0});
}
function set_title( str ) {
document.title = str;
}
</script>
<link rel="modulepreload" href="/eframe_template-7131f81c89e61315.js" crossorigin=anonymous integrity="sha384-tEOGIMEmzSfhQy+phWismcp4iyujXzU8xGZkbOSXTU2zkgSbZV6ypyKkxxCBj+4u"><link rel="preload" href="/eframe_template-7131f81c89e61315_bg.wasm" crossorigin=anonymous integrity="sha384-6nxHknP8kjNhQo2jWWlu90VvHY4WC2C80rbpvfo412XAHlFT1E2gOu5beLCbD6BB" as="fetch" type="application/wasm"></head>
<body>
<div class="grid_wrap">
<main class="wrapper">
<section class="container">
<div class="row">
<div class="column" id="output">
</div>
</div>
</section>
</main>
<canvas id="eframe"></canvas>
</div>
<div class="centered" id="loading_text">
<p style="font-size:16px">
Loading…
</p>
<div class="lds-dual-ring"></div>
</div>
<!--Register Service Worker. this will cache the wasm / js scripts for offline use (for PWA functionality). -->
<!-- Force refresh (Ctrl + F5) to load the latest files instead of cached files -->
<script>
// We disable caching during development so that we always view the latest version.
if ('serviceWorker' in navigator && window.location.hash !== "#dev") {
window.addEventListener('load', function () {
navigator.serviceWorker.register('sw.js');
});
}
</script>
</body>
</html>
<!-- Written by Frank Korf: https://fkorf.com -->
<!-- Powered by egui: https://github.com/emilk/egui/ -->