-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
111 lines (96 loc) · 2.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>Ten Minute Physics in Rust | Lucas V. Schuermann</title>
<style>
html {
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
body {
margin: 0;
background-color: #000;
color: #fff;
font-family: Monospace;
font-size: 13px;
line-height: 20px;
overscroll-behavior: none;
}
a {
color: inherit;
text-decoration: none;
pointer-events: auto;
}
a:hover {
text-decoration: underline;
}
canvas {
display: block;
outline: none;
border: none;
}
#info {
position: absolute;
top: 0px;
width: 100%;
padding: 10px 255px 0px 90px;
box-sizing: border-box;
text-align: center;
user-select: none;
pointer-events: none;
z-index: 1;
}
#container {
position: relative;
width: 100%;
height: 100vh;
}
#gui {
position: absolute;
top: 0;
right: 0;
z-index: 2 !important;
}
#error {
color: red;
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
@media all and (max-width: 640px) {
#info {
padding-right: 10px;
}
#gui {
right: auto;
top: auto;
max-height: 80%;
max-width: 80%;
bottom: 0;
left: 0;
}
}
</style>
</head>
<body>
<div id="info">
<a href="https://lucasschuermann.com" target="_blank" rel="noopener">Lucas V. Schuermann</a> -
<a href="https://matthias-research.github.io/pages/tenMinutePhysics/index.html" target="_blank"
rel="noopener">Ten Minute Physics</a> (XPBD) in Rust -
<span id="title">Loading...</span>
<br>
<a href="https://github.com/lucas-schuermann/ten-minute-physics-rs">View code on GitHub</a>
</div>
<div id="container">
<canvas id="canvas">
<p id="error">Browser does not support required features</p>
</canvas>
<div id="gui"></div>
</div>
</body>
</html>