-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.html
More file actions
86 lines (77 loc) · 2.22 KB
/
Copy pathshell.html
File metadata and controls
86 lines (77 loc) · 2.22 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>websocket-example</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<style>
body {
padding: 0;
margin: 0;
width: 100vw;
height: 100vh;
}
#app-display {
padding: 0;
margin: 0;
width: 100vw;
height: 100vh;
display: grid;
align-content: center;
justify-content: center;
text-align: center;
}
#loading-display {
padding: 0;
margin: 0;
width: 100vw;
height: 100vh;
position: fixed;
background-color: transparent;
display: grid;
place-items: center;
}
#loading-square {
width: 10px;
height: 10px;
background-color: black;
animation: loading-animation 2s infinite;
}
@keyframes loading-animation {
0% {
transform: scale(1);
}
50% {
transform: scale(5);
}
100% {
transform: scale(1);
}
}
</style>
</head>
<body>
<div id="app-display">
<p>Look in the JavaScript console for the message <em>wss://echo.websocket.org/</em> sent us after sending 'Hello'.</p>
<p>Ignore the first error.</p>
</div>
<div id="loading-display">
<div id="loading-square"></div>
</div>
<script>
var Module = {
setStatus: (status) => {
if (status === "Running...") {
document.getElementById("loading-display").remove();
}
},
monitorRunDependencies: (depsLeft) => {
let loadingSquare = document.getElementById("loading-square")
loadingSquare.style.backgroundColor = "#00" + ((4 - depsLeft) * 63).toString(16) + "00"
},
}
</script>
{{{ SCRIPT }}}
</body>
</html>