-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
99 lines (87 loc) · 1.83 KB
/
index.html
File metadata and controls
99 lines (87 loc) · 1.83 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Sphere stairs</title>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
}
#slider-container {
display: flex;
flex-direction: column;
gap: 10px;
padding: 10px;
background-color: #f5f5f5;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.slider-group {
display: flex;
align-items: center;
gap: 10px;
}
.slider-group label {
width: 80px;
}
.slider-group input[type="range"] {
flex: 1;
}
.slider-group span {
width: 40px;
text-align: right;
}
#app {
flex: 1;
position: relative;
height: 100%;
}
canvas {
width: 100%;
height: 100%;
display: block;
}
.checkbox-group {
display: flex;
align-items: center;
gap: 8px;
margin-top: 5px;
}
#footer-link {
position: fixed;
bottom: 5px;
left: 10px;
font-size: 12px;
color: #444;
opacity: 0.7;
}
</style>
</head>
<body>
<div id="slider-container">
<div class="slider-group">
<label id="label-radius">Radius: 13</label>
<input type="range" id="slider-radius" min="2" max="101" value="13" />
</div>
<div class="slider-group">
<label id="label-cut">Cut: 7</label>
<input type="range" id="slider-cut" min="1" max="7" value="7" />
</div>
</div>
<div class="checkbox-group">
<input type="checkbox" id="corner-toggle" checked />
<label for="cornerToggle">Use corner stairs</label>
</div>
<div id="app">
<canvas id="canvas"></canvas>
</div>
<!-- Bottom-left footer link -->
<div id="footer-link">
<a href="https://github.com/mmilanta/cube-sphere" target="_blank">https://github.com/mmilanta/cube-sphere</a> </div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>