-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (83 loc) · 2.16 KB
/
index.html
File metadata and controls
92 lines (83 loc) · 2.16 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
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>See-Through Lab Dev Pages</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
overflow: hidden;
background: #000;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#canvas {
display: block;
width: 100%;
height: 100%;
touch-action: none;
}
#loading {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: #000;
color: #fff;
font-size: 16px;
z-index: 1000;
transition: opacity 0.5s;
}
#loading.hidden {
opacity: 0;
pointer-events: none;
}
#error {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(255, 0, 0, 0.1);
border: 1px solid rgba(255, 0, 0, 0.5);
color: #ff6b6b;
padding: 20px;
border-radius: 8px;
max-width: 80%;
display: none;
text-align: center;
}
#error.visible {
display: block;
}
#fallback-svg {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 80%;
max-height: 80%;
display: none;
}
#fallback-svg.visible {
display: block;
}
</style>
</head>
<body>
<div id="loading">Loading...</div>
<div id="error"></div>
<div id="fallback-svg"></div>
<canvas id="canvas"></canvas>
<script type="module" src="home/js/main.js"></script>
</body>
</html>