-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
176 lines (162 loc) · 7.16 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="output.css">
<link rel="stylesheet" href="noUiSlider.css">
<style>
@font-face {
font-family: 'Marart Sans Bold';
src: url('./marat-sans/Marat Sans Bold.otf') format("opentype");
}
.MarartSansBoldFont{
font-family: 'Marart Sans Bold', sans-serif;
}
#update{
opacity: 1;
transition: opacity 0.3s;
}
#update:disabled {
opacity: 0.1;
}
#plane-selector > button:disabled{
border-color: rgb(74 222 128)
}
</style>
</head>
<body>
<div class="w-full flex flex-col items-center">
<div style="width: 700px;" class="pt-4 flex flex-col h-screen">
<p class="MarartSansBoldFont text-6xl pb-4">Flight Simulator</p>
<canvas style="height: 394px;" id="canvas"></canvas>
<button id="fullscreen" class="place-self-center bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 mt-4 border border-blue-700 rounded">
Fullscreen
</button>
</div>
<div style="width: 700px;" class=" flex flex-col min-h-screen ">
<div class="h-1/2 flex flex-col">
<p class="MarartSansBoldFont text-4xl pt-4">Terrain Parameter</p>
<div>
<div class="w-full mt-4 pl-4 items-center">
<span class=" flex">
<p>Active Wave Numbers</p>
<p id="active-wave-numbers-values"></p>
</span>
<div id="active-wave-numbers-input-container" class="mt-1flex justify-around pr-2">
<input type="checkbox" checked/>
<input type="checkbox" checked/>
<input type="checkbox" checked/>
<input type="checkbox" checked/>
<input type="checkbox" checked/>
<input type="checkbox" checked/>
<input type="checkbox" checked/>
<input type="checkbox" checked/>
<input type="checkbox" checked/>
<input type="checkbox" checked/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
</div>
</div>
<div class="w-full flex mt-4 pl-4 items-center">
<span class="w-2/5 flex">
<p>Rotation Angle</p>
<p id="rotation-angle-value"></p>
</span>
<div class="w-3/5" id="rotation-slider"></div>
</div>
<div class="w-full flex mt-4 pl-4 items-center">
<span class="w-2/5 flex">
<p>Output scale factor</p>
<p id="output-increase-fctr-value"></p>
</span>
<div class="w-3/5" id="output-increase-fctr-slider"></div>
</div>
<div class="w-full flex mt-4 pl-4 items-center">
<span class="w-2/5 flex">
<p>Input shrink factor</p>
<p id="input-shrink-fctr-value"></p>
</span>
<div class="w-3/5" id="input-shrink-fctr-slider"></div>
</div>
<div class="w-full flex mt-4 pl-4 items-center">
<span class="w-2/5 flex">
<p>Lacunarity</p>
<p id="lacunarity-value"></p>
</span>
<div class="w-3/5" id="lacunarity-slider"></div>
</div>
<div class="w-full flex mt-4 pl-4 items-center">
<span class="w-2/5 flex">
<p>Persistance</p>
<p id="persistance-value"></p>
</span>
<div class="w-3/5" id="persistance-slider"></div>
</div>
</div>
<button
id="update"
class="place-self-center bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 mt-4 border border-blue-700 rounded"
disabled
>
Update
</button>
</div>
<div class="h-1/2 flex flex-col">
<p class="MarartSansBoldFont text-4xl pt-4">Plane</p>
<div class="flex justify-around mt-4" id="plane-selector">
<button class="h-32 w-32 border-2 border-slate-800 rounded-lg flex items-center justify-center text-5xl" disabled>1</button>
<button class="h-32 w-32 border-2 border-slate-800 rounded-lg flex items-center justify-center text-5xl" >2</button>
<button class="h-32 w-32 border-2 border-slate-800 rounded-lg flex items-center justify-center text-5xl" >3</button>
</div>
</div>
<a class="place-self-center mt-16" style="color: #0000EE;">Source Code</a>
</div>
</div>
<div>
</div>
<script defer type="text/javascript">
var canvas = document.getElementById("canvas");
var Module = {
canvas
};
document.getElementById("fullscreen").addEventListener(
"click",
function () {
if (canvas.requestFullscreen) {
canvas.requestFullscreen();
} else if (canvas.webkitRequestFullscreen) {
/* Safari */
canvas.webkitRequestFullscreen();
} else if (canvas.msRequestFullscreen) {
/* IE11 */
canvas.msRequestFullscreen();
}
},
false
);
</script>
<script defer src="index.js"></script>
<script defer src="noUiSlider.js"></script>
<script defer src="custom.js" ></script>
</body>
</html>