Skip to content

Commit 4338e9b

Browse files
committed
Deploying to gh-pages from @ 2c95860 🚀
0 parents  commit 4338e9b

File tree

10 files changed

+1855
-0
lines changed

10 files changed

+1855
-0
lines changed

assets/icon-1024.png

314 KB
Loading

assets/icon-256.png

131 KB
Loading

assets/icon_ios_touch_192.png

20.6 KB
Loading

assets/maskable_icon_x512.png

128 KB
Loading

favicon.ico

7.19 KB
Binary file not shown.

index.html

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4+
5+
<!-- Disable zooming: -->
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
7+
8+
<head>
9+
<!-- change this to your project name -->
10+
<title>Log Viewer</title>
11+
12+
<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
13+
14+
<script type="module" nonce="Qv5jHJe/dYEZryL4ww4OXQ==">
15+
import init, * as bindings from 'https://dev.chester.wykies.com/log-viewer/log_viewer.js';
16+
const wasm = await init({ module_or_path: 'https://dev.chester.wykies.com/log-viewer/log_viewer_bg.wasm' });
17+
18+
19+
window.wasmBindings = bindings;
20+
21+
22+
dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));
23+
24+
</script>
25+
<!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option -->
26+
<base href="https://dev.chester.wykies.com/log-viewer/" />
27+
28+
<link rel="icon" href="https://dev.chester.wykies.com/log-viewer/favicon.ico" integrity="sha384&#x2D;nyXLPrifuNDF8IR4u2NlojCdDIthdl7nryEDYMG7k9vYpB&#x2F;3o8H98OwACLez5U76"/>
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
<link rel="manifest" href="manifest.json">
40+
<link rel="apple-touch-icon" href="assets/icon_ios_touch_192.png">
41+
<meta name="theme-color" media="(prefers-color-scheme: light)" content="white">
42+
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#404040">
43+
44+
<style>
45+
html {
46+
/* Remove touch delay: */
47+
touch-action: manipulation;
48+
}
49+
50+
body {
51+
/* Light mode background color for what is not covered by the egui canvas,
52+
or where the egui canvas is translucent. */
53+
background: #909090;
54+
}
55+
56+
@media (prefers-color-scheme: dark) {
57+
body {
58+
/* Dark mode background color for what is not covered by the egui canvas,
59+
or where the egui canvas is translucent. */
60+
background: #404040;
61+
}
62+
}
63+
64+
/* Allow canvas to fill entire web page: */
65+
html,
66+
body {
67+
overflow: hidden;
68+
margin: 0 !important;
69+
padding: 0 !important;
70+
height: 100%;
71+
width: 100%;
72+
}
73+
74+
/* Make canvas fill entire document: */
75+
canvas {
76+
margin-right: auto;
77+
margin-left: auto;
78+
display: block;
79+
position: absolute;
80+
top: 0;
81+
left: 0;
82+
width: 100%;
83+
height: 100%;
84+
}
85+
86+
.centered {
87+
margin-right: auto;
88+
margin-left: auto;
89+
display: block;
90+
position: absolute;
91+
top: 50%;
92+
left: 50%;
93+
transform: translate(-50%, -50%);
94+
color: #f0f0f0;
95+
font-size: 24px;
96+
font-family: Ubuntu-Light, Helvetica, sans-serif;
97+
text-align: center;
98+
}
99+
100+
/* ---------------------------------------------- */
101+
/* Loading animation from https://loading.io/css/ */
102+
.lds-dual-ring {
103+
display: inline-block;
104+
width: 24px;
105+
height: 24px;
106+
}
107+
108+
.lds-dual-ring:after {
109+
content: " ";
110+
display: block;
111+
width: 24px;
112+
height: 24px;
113+
margin: 0px;
114+
border-radius: 50%;
115+
border: 3px solid #fff;
116+
border-color: #fff transparent #fff transparent;
117+
animation: lds-dual-ring 1.2s linear infinite;
118+
}
119+
120+
@keyframes lds-dual-ring {
121+
0% {
122+
transform: rotate(0deg);
123+
}
124+
125+
100% {
126+
transform: rotate(360deg);
127+
}
128+
}
129+
</style>
130+
<link rel="modulepreload" href="https://dev.chester.wykies.com/log-viewer/log_viewer.js" crossorigin=anonymous integrity="sha384-jE6m+K3tN2dCskI20dAz20bcmotVufbMei7cg8bavthw62WKZ+mFVZSFZSo6mP6h"><link rel="preload" href="https://dev.chester.wykies.com/log-viewer/log_viewer_bg.wasm" crossorigin=anonymous integrity="sha384-D5OS/ht7E6rXACH1flylZjq/Fr8R/n7JDQLxVLqsK4LhSuG6Ah3xb4BcYqY+d11E" as="fetch" type="application/wasm"></head>
131+
132+
<body>
133+
<!-- The WASM code will resize the canvas dynamically -->
134+
<!-- the id is hardcoded in main.rs . so, make sure both match. -->
135+
<canvas id="the_canvas_id"></canvas>
136+
137+
<!-- the loading spinner will be removed in main.rs -->
138+
<div class="centered" id="loading_text">
139+
<p style="font-size:16px">
140+
Loading…
141+
</p>
142+
<div class="lds-dual-ring"></div>
143+
</div>
144+
145+
<!--Register Service Worker. this will cache the wasm / js scripts for offline use (for PWA functionality). -->
146+
<!-- Force refresh (Ctrl + F5) to load the latest files instead of cached files -->
147+
<script>
148+
// We disable caching during development so that we always view the latest version.
149+
if ('serviceWorker' in navigator && window.location.hash !== "#dev") {
150+
window.addEventListener('load', function () {
151+
navigator.serviceWorker.register('sw.js');
152+
});
153+
}
154+
</script>
155+
</body>
156+
157+
</html>
158+
159+
<!-- Powered by egui: https://github.com/emilk/egui/ -->

0 commit comments

Comments
 (0)