17
17
< link data-trunk rel ="icon " href ="assets/favicon.ico ">
18
18
19
19
20
- < link data-trunk rel ="copy-file " href ="assets/sw.js " />
21
- < link data-trunk rel ="copy-file " href ="assets/manifest.json " />
22
- < link data-trunk rel ="copy-file " href ="assets/icon-1024.png " />
23
- < link data-trunk rel ="copy-file " href ="assets/icon-256.png " />
24
- < link data-trunk rel ="copy-file " href ="assets/icon_ios_touch_192.png " />
25
- < link data-trunk rel ="copy-file " href ="assets/maskable_icon_x512.png " />
20
+ < link data-trunk rel ="copy-file " href ="assets/sw.js "/>
21
+ < link data-trunk rel ="copy-file " href ="assets/manifest.json "/>
22
+ < link data-trunk rel ="copy-file " href ="assets/icon-1024.png " data-target-path =" assets " />
23
+ < link data-trunk rel ="copy-file " href ="assets/icon-256.png " data-target-path =" assets " />
24
+ < link data-trunk rel ="copy-file " href ="assets/icon_ios_touch_192.png " data-target-path =" assets " />
25
+ < link data-trunk rel ="copy-file " href ="assets/maskable_icon_x512.png " data-target-path =" assets " />
26
26
27
27
28
28
< link rel ="manifest " href ="manifest.json ">
29
- < link rel ="apple-touch-icon " href ="icon_ios_touch_192.png ">
29
+ < link rel ="apple-touch-icon " href ="assets/ icon_ios_touch_192.png ">
30
30
< meta name ="theme-color " media ="(prefers-color-scheme: light) " content ="white ">
31
31
< meta name ="theme-color " media ="(prefers-color-scheme: dark) " content ="#404040 ">
32
32
60
60
width : 100% ;
61
61
}
62
62
63
- /* Position canvas in center-top : */
63
+ /* Make canvas fill entire document : */
64
64
canvas {
65
65
margin-right : auto;
66
66
margin-left : auto;
67
67
display : block;
68
68
position : absolute;
69
- top : 0% ;
70
- left : 50% ;
71
- transform : translate (-50% , 0% );
69
+ top : 0 ;
70
+ left : 0 ;
71
+ width : 100% ;
72
+ height : 100% ;
72
73
}
73
74
74
75
.centered {
122
123
<!-- the id is hardcoded in main.rs . so, make sure both match. -->
123
124
< canvas id ="the_canvas_id "> </ canvas >
124
125
126
+ <!-- the loading spinner will be removed in main.rs -->
127
+ < div class ="centered " id ="loading_text ">
128
+ < p style ="font-size:16px ">
129
+ Loading…
130
+ </ p >
131
+ < div class ="lds-dual-ring "> </ div >
132
+ </ div >
133
+
125
134
<!--Register Service Worker. this will cache the wasm / js scripts for offline use (for PWA functionality). -->
126
135
<!-- Force refresh (Ctrl + F5) to load the latest files instead of cached files -->
127
136
< script >
136
145
137
146
</ html >
138
147
139
- <!-- Powered by egui: https://github.com/emilk/egui/ -->
148
+ <!-- Powered by egui: https://github.com/emilk/egui/ -->
0 commit comments