This repository was archived by the owner on Jun 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
277 lines (263 loc) · 9.96 KB
/
Copy pathindex.html
File metadata and controls
277 lines (263 loc) · 9.96 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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Turret Damage Simulator</title>
<!-- Halfmoon CSS -->
<link
href="https://cdn.jsdelivr.net/npm/halfmoon@2.0.2/css/halfmoon.min.css"
rel="stylesheet"
integrity="sha256-RjeFzczeuZHCyS+Gvz+kleETzBF/o84ZRHukze/yv6o="
crossorigin="anonymous"
/>
<!-- Halfmoon modern core theme -->
<link
href="https://cdn.jsdelivr.net/npm/halfmoon@2.0.2/css/cores/halfmoon.modern.css"
rel="stylesheet"
integrity="sha256-DD6elX+jPmbFYPsGvzodUv2+9FHkxHlVtQi0/RJVULs="
crossorigin="anonymous"
/>
<!-- Topcoat CSS -->
<link
id="topcoat"
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/topcoat/0.8.0/css/topcoat-desktop-dark.min.css"
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body
data-bs-theme="dark"
data-bs-core="modern"
class="container-fluid d-flex flex-column text-center text-body"
>
<header class="jumbotron p-2 bg-gradient">
<hgroup>
<h1 class="title display-1">Turret Damage Simulator</h1>
</hgroup>
</header>
<main class="container px-1">
<figure class="container">
<button
type="button"
class="btn btn-primary bg-gradient position-relative specific-h-50 specific-w-50"
data-bs-toggle="offcanvas"
data-bs-target="#input-panel"
>
Input
</button>
<button
type="button"
class="btn btn-primary bg-gradient position-relative specific-h-50 specific-w-50"
data-bs-toggle="offcanvas"
data-bs-target="#table-panel"
>
Table
</button>
</figure>
<canvas id="damage-chart" class="border bg-body text-white rounded shadow"></canvas>
<!-- Input Form -->
<aside
class="offcanvas offcanvas-end card bg-primary w-lg-25 w-md-50 w-sm-75 rounded-0 rounded-start-5 shadow p-1 pe-0"
data-bs-scroll="true"
data-bs-backdrop="false"
tabindex="-1"
id="input-panel"
aria-labelledby="input-panel-title"
>
<header class="offcanvas-header bg-body-secondary rounded-5 rounded-bottom-0 roundd-end-0 ">
<hgroup>
<h5 id="input-panel-title" class="offcanvas-title">Input</h5>
</hgroup>
<button
type="button"
class="btn-close"
data-bs-dismiss="offcanvas"
aria-label="Close"
></button>
</header>
<article class="offcanvas-body bg-primary-subtle rounded-5 rounded-top-0 rounded-end-0 ">
<form
class="form bg-gradient rounded p-1"
>
<fieldset
class="form-control border-0 bg-body-tertiary bg-opacity-50 bg-gradient px-3"
>
<legend class="p-2 rounded-pill bg-body-emphasis">
<h5 class="text-start">Attacker</h5>
</legend>
<div class="input-group rounded p-1 my-2">
<div class="form-floating">
<input
id="optimal"
type="number"
step="250"
class="form-control topcoat-text-input"
value="1500"
placeholder="Optimal Range"
/>
<label for="optimal" class="">Optimal Range</label>
</div>
<span class="input-group-text">m</span>
</div>
<div class="input-group rounded p-1 my-2">
<div class="form-floating">
<input
id="falloff"
type="number"
step="250"
class="form-control topcoat-text-input"
value="3500"
placeholder="Falloff Range"
/>
<label for="falloff" class="">Falloff</label>
</div>
<span class="input-group-text">m</span>
</div>
<div class="input-group rounded p-1 my-2">
<div class="form-floating">
<input
id="damage"
type="number"
class="form-control topcoat-text-input"
value="400"
placeholder="Damage Per Second"
/>
<label for="damage" class="">DPS</label>
</div>
<span class="input-group-text">/s</span>
</div>
<div class="input-group rounded p-1 my-2">
<div class="form-floating">
<input
id="tracking"
type="number"
class="form-control topcoat-text-input"
value="51"
placeholder="Tracking"
/>
<label for="tracking" class="">Tracking</label>
</div>
</div>
<div class="input-group rounded p-1 my-2">
<div class="form-floating">
<input
id="turret-sig"
type="number"
class="form-control topcoat-text-input"
value="40"
placeholder="Turret Signature Radius"
/>
<label for="turret-sig" class="">Turret Signature:</label>
</div>
<span class="input-group-text">m</span>
</div>
</fieldset>
<fieldset>
<legend>Target</legend>
<div class="input-group rounded p-1 my-2">
<div class="form-floating">
<input
id="target-sig"
type="number"
class="form-control topcoat-text-input"
value="75"
placeholder="Target Signature Radius"
/>
<label for="target-sig" class="">Target Signature:</label>
</div>
<span class="input-group-text">m</span>
</div>
<div class="input-group rounded p-1 my-2">
<div class="form-floating">
<input
id="target-angle"
type="number"
class="form-control topcoat-text-input"
value="0"
max="180"
min="0"
placeholder="Target Angle"
/>
<label for="target-angle" class="">Target Angle:</label>
</div>
<span class="input-group-text">°</span>
</div>
<div class="input-group rounded p-1 my-2">
<div class="form-floating">
<input
id="target-velocity"
type="number"
class="form-control topcoat-text-input"
value="0"
placeholder="0"
/>
<label for="target-velocity" class="">Target Velocity:</label>
</div>
<span class="input-group-text">m/s</span>
</div>
</fieldset>
</form>
</article>
</aside>
<!-- Damage Table -->
<aside
class="offcanvas offcanvas-bottom h-50 bg-primary rounded-top-5 shadow p-1 pb-0"
data-bs-scroll="true"
data-bs-backdrop="false"
tabindex="-1"
id="table-panel"
aria-labelledby="table-panel-title"
>
<header class="offcanvas-header bg-body-secondary rounded-top-5">
<h5 id="table-panel-title" class="offcanvas-title">
Turret Damage Simulator
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="offcanvas"
aria-label="Close"
></button>
</header>
<article class="offcanvas-body bg-body-secondary shadow">
<table id="damage-table" class="table table-hover table-bordered">
<caption>
Description of the table
</caption>
<thead>
<tr>
<th class="bg-body-tertiary">Range</th>
<th class="bg-body-tertiary">Transversal</th>
<th class="bg-body-tertiary">Tracking EQ</th>
<th class="bg-body-tertiary">Range EQ</th>
<th class="bg-body-tertiary">% Chance To Hit</th>
<th class="bg-body-tertiary">Multiplier</th>
<th class="bg-body-tertiary">Adjusted DPS</th>
</tr>
</thead>
<tbody></tbody>
</table>
</article>
</aside>
</main>
<footer class="jumbotron p-2 bg-gradient mt-auto">
<p class="text-sm-center">©️ 2023 Phobiacide</p>
</footer>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
integrity="sha256-whL0tQWoY1Ku1iskqPFvmZ+CHsvmRWx/PIoEvIeWh4I="
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js"
integrity="sha256-3gQJhtmj7YnV1fmtbVcnAV6eI4ws0Tr48bVZCThtCGQ="
crossorigin="anonymous"
></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-annotation@1.4.0/dist/chartjs-plugin-annotation.min.js"></script>
<script src="./src/js/index.js"></script>
</body>
</html>