-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.html
More file actions
101 lines (97 loc) · 2.45 KB
/
index.html
File metadata and controls
101 lines (97 loc) · 2.45 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
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Splash</title>
<style>
body, html {
height: 100%;
width: 100%;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
overscroll-behavior: none;
overflow: hidden;
}
canvas {
width: 100%;
height: 100%;
}
#ui-container {
position: fixed;
top: 0;
left: 0;
width: 300px;
margin: 20px;
}
#number-container {
position: fixed;
top: 0;
right: 0;
margin: 20px;
margin-right: 10px;
font-size: 15px;
width: 270px;
}
#debug-info {
position: fixed;
}
#howto-container {
position: fixed;
bottom: 0;
left: 0;
width: 300px;
margin: 20px;
font-size: small;
}
#github-link {
position:fixed;
bottom: 0;
right: 0;
}
.github-icon {
position: absolute;
bottom: 10px;
right: 20px;
font-size: 40px;
color: black;
}
* {
user-select: none;
}
</style>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
</head>
<body>
<div id="ui-container">
<div style="display: flex; flex-direction: column;">
<label>
<input type="checkbox" id="particle"> Particles
</label>
</div>
<div id="slider-container">
<label for="slider">Box Width:</label>
<input type="range" id="slider" min="0" max="100" value="100" />
<span id="slider-value"></span>
</div>
</div>
<div id="howto-container">
<div> <b>Drag</b> to move camera </div>
<div> <b>Scroll</b> to zoom in and out </div>
<div> <b>Press P</b> to pause the simulation </div>
</div>
<div id="debug-info">
<span id="error-reason">loading now...(won't take longer than 10 seconds I guess)</span>
</div>
<a href="https://github.com/matsuoka-601/Splash"
class="github-icon"
target="_blank"
rel="noopener noreferrer">
<i class="fab fa-github"></i>
</a>
<canvas id="fluidCanvas"></canvas>
<script type="module" src="main.ts"></script>
</body>
</html>