-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbounce.html
401 lines (371 loc) · 16 KB
/
bounce.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
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<html lang="en"><head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Graru1's Checker</title>
<!-- base:css -->
<link rel="stylesheet" href="vendors/mdi/css/materialdesignicons.min.css">
<link rel="stylesheet" href="vendors/base/vendor.bundle.base.css">
<!-- endinject -->
<!-- plugin js for this page -->
<script type="text/javascript" src="js/bouncetoolsCore.js" ></script>
<script type="text/javascript" src="js/bouncetoolsDisplay.js" ></script>
<!-- End plugin js for this page -->
<!-- Get Bounce Calcs from api-->
<script>
var xhr = new XMLHttpRequest();
xhr.onload = function() {
document.getElementById("calcCount").innerHTML = this.response.value + " Bounce calculations";
}
xhr.open("GET", "https://api.countapi.xyz/get/graru1.github.io/calcCount");
xhr.responseType = "json";
xhr.send();
</script>
<!-- plugin css for this page -->
<style>
.clip-inset {
clip-path: inset(0px 80px 0px 0px);
}
.invert-active {
filter: invert(100%);
}
</style>
<style>
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
</style>
<!-- End plugin css for this page -->
<!-- injectjustgage.js:23 * justgage: No element with id : productorder-gage found:css -->
<link rel="stylesheet" href="css/style.css">
<!-- endinject -->
<link rel="shortcut icon" href="https://wiki.teamfortress.com/w/images/thumb/b/be/TF2_crosshair_orange.png/60px-TF2_crosshair_orange.png">
<style type="text/css">/* Chart.js */@keyframes chartjs-render-animation{from{opacity:.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 1ms}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}</style></head>
<body>
<div class="container-scroller">
<!-- partial:partials/_horizontal-navbar.html -->
<div class="horizontal-menu">
<div class="navbar-menu-wrapper d-flex align-items-center justify-content-between">
<button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="horizontal-menu-toggle">
<span class="mdi mdi-menu"></span>
</button>
</div>
<nav class="bottom-navbar">
<div class="container">
<ul class="nav page-navigation">
<li id="navItem_bounce" class="nav-item active">
<a onclick="pageNavi('navLink_bounce')" id="navLink_bounce" class="nav-link active pl-2 pr-2" href="#">
<i class="mdi mdi-file-document-box menu-icon"></i>
<span class="menu-title">Bounce Checker</span>
</a>
</li>
<li class="nav-item">
<div class="text-center navbar-brand-wrapper d-flex align-items-center justify-content-center" style="padding-top: 16px;">
<a class="navbar-brand brand-logo" href="#">
<img onclick="set_launcher('rad_stock')" id="rad_stock" class="" src="https://wiki.teamfortress.com/w/images/8/8c/Killicon_rocket_launcher.png" alt="Rocket Launcher" title="Rocket Launcher">
</a>
<a class="navbar-brand brand-logo" href="#">
<img onclick="set_launcher('rad_original')" id="rad_original" class="invert-active" src="https://wiki.teamfortress.com/w/images/e/e0/Killicon_original.png" alt="Original" title="Original">
</a>
<a style="width: 50px" class="navbar-brand brand-logo" href="#">
<img onclick="set_launcher('rad_cowmangler')" id="rad_cowmangler" class="invert-active clip-inset" style="rect(0px,60px,200px,0px)" src="https://wiki.teamfortress.com/w/images/9/94/Killicon_cow_mangler_5000.png" alt="Cow Mangler 5000" title="Cow Mangler 5000">
</a>
<a class="navbar-brand brand-logo" href="#">
<img onclick="set_launcher('rad_cowmanglercharged')" id="rad_cowmanglercharged" class="invert-active" src="https://wiki.teamfortress.com/w/images/9/94/Killicon_cow_mangler_5000.png" alt="Cow Mangler 5000" title="Cow Mangler 5000 Charged">
</a>
</div>
</li>
<li id="navItem_jumpbug" class="nav-item">
<a onclick="pageNavi('navLink_jumpbug')" id="navLink_jumpbug" class="nav-link" href="#">
<i class="mdi mdi-cube-outline menu-icon"></i>
<span class="menu-title">Jumpbug Checker</span>
<i class="menu-arrow"></i>
</a>
</li>
</ul>
</div>
</nav>
</div>
<!-- partial -->
<div class="container-fluid page-body-wrapper">
<div class="main-panel">
<div class="content-wrapper">
<div class="col-lg-12 grid-margin stretch-card">
<div class="card">
<div class="card-body" style="padding-top: 24px;padding-bottom: 0px;">
<h4 class="card-title text-center">
<form class="form-inline">
<input data-toggle="tooltip" data-placement="top" title="Distance to the platform to bounce on from the ground" id="txt_height" type="number" min="1" maxlength="6" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);" class="form-control mb-2 mr-sm-2" placeholder="Enter height...">
<input data-toggle="tooltip" data-placement="top" title="Distance to the platform to bounce on from the ceiling" id="txt_height_ceiling" type="number" min="63" maxlength="6" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);" class="form-control mb-2 mr-sm-2" placeholder="Enter ceiling gap...">
<div class="input-group mb-2 mr-sm-2">
<div class="input-group-prepend">
<div class="input-group-text" style="color: #c9c8c8;">∠</div>
</div>
<input data-toggle="tooltip" data-placement="top" title="Angle to start searching from" id="txt_nearestAngle" type="number" min="45" max="89" class="form-control" placeholder="60.00">
</div>
<div class="btn-group" role="group" aria-label="Basic example">
<button class="dropdown-toggle show-dropdown-arrow btn btn-inverse-primary mb-2" id="nreportDropdown" href="#" data-toggle="dropdown" aria-expanded="false">Settings</button>
<button type="button" class="btn btn-primary mb-2" onclick='m()'>Calculate</button>
<script>
function calcs() {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
document.getElementById("calcCount").innerHTML = this.response.value + " Bounce calculations";
}
xhr.open("GET", "https://api.countapi.xyz/hit/graru1.github.io/calcCount");
xhr.responseType = "json";
xhr.send();
}
</script>
<div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list" aria-labelledby="nreportDropdown">
<!-- <p class="mb-0 font-weight-medium float-left dropdown-header">Settings</p> //-->
<a class="dropdown-item">
<div class="form-check form-check-success">
<label class="form-check-label">
<input id="chk_bouncesCheck" type="checkbox" class="form-check-input" checked="">Check Bounces<i class="input-helper"></i></label>
</div>
</a>
<a class="dropdown-item">
<div class="form-check form-check-success">
<label class="form-check-label">
<input id="chk_specialCheck" type="checkbox" class="form-check-input" checked="">Check Special<i class="input-helper"></i></label>
</div>
</a>
<a class="dropdown-item">
<div class="form-check form-check-success">
<label class="form-check-label">
<input id="chk_angleCheck" type="checkbox" class="form-check-input" checked="">Check Angles<i class="input-helper"></i></label>
</div>
</a>
</div>
</div>
<div class="input-group-prepend">
<div id="calcCount" class="input-group-text" style="margin-left: 10px; background: #0ad7f7"></div>
</div>
<div class="input-group-prepend">
<div id="bounceInfo" class="input-group-text" style="margin-left: 10px; background: #ee5b5b; display: none"></div>
<div id="ceilingInfo" class="input-group-text" style="margin-left: 10px; background: #ee5b5b; display: none"></div>
<div id="angleInfo" class="input-group-text" style="margin-left: 10px; background: #ee5b5b; display: none"></div>
</div>
</form>
</h4>
</div>
</div>
</div>
<div class="row">
<div id="bounceResults" class="col-lg-12 grid-margin stretch-card" style="display: none;">
<div class="card">
<div class="card-body" style="padding-top: 24px;padding-bottom: 0px;">
<h4 id="bounceResults_txt" class="card-title text-center">This height can be bounced with</h4>
</div>
</div>
</div>
<div id="bounceResultsU" class="col-lg-6 grid-margin stretch-card" style="display: none;">
<div class="card">
<div class="card-body"">
<h4 id="cardTitle1U" class="card-title text-center">Land Uncrouched</h4>
<p class="card-description">
<!--
Add class <code> -> </code>
//-->
</p>
<div class="table-responsive">
<table class="table table-hover table-condensed">
<thead>
<tr>
<th class="text-right">Start Type</th>
<th> -> </th>
<th class="text-left">Landing Type</th>
</tr>
</thead>
<tbody id="bounceTipsU">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="bounceResultsC" class="col-lg-6 grid-margin stretch-card" style="display: none;">
<div class="card">
<div class="card-body"">
<h4 id="cardTitle1C" class="card-title text-center">Land Crouched</h4>
<p class="card-description">
<!--
Add class <code> -> </code>
//-->
</p>
<div class="table-responsive">
<table class="table table-hover table-condensed">
<thead>
<tr>
<th class="text-right">Start Type</th>
<th> -> </th>
<th class="text-left">Landing Type</th>
</tr>
</thead>
<tbody id="bounceTipsC">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div id="divID_specialTitle" class="col-lg-12 grid-margin stretch-card" style="display: none;">
<div class="card">
<div class="card-body" style="padding-top: 24px;padding-bottom: 0px;">
<h4 id="divID_specialTitle_txt" class="card-title text-center">Special Start</h4>
</div>
</div>
</div>
<div id="specialResultsU" class="col-lg-6 grid-margin stretch-card" style="display: none;">
<div class="card">
<div class="card-body"">
<h4 id="cardTitle3U" class="card-title text-center">Land Uncrouched</h4>
<p class="card-description">
<!--
Add class <code> -> </code>
//-->
</p>
<div class="table-responsive">
<table class="table table-hover table-condensed">
<thead>
<tr>
<th class="text-right">Start Type</th>
<th> -> </th>
<th class="text-left">Landing Type</th>
</tr>
</thead>
<tbody id="bounceTipsSpecialU">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="specialResultsC" class="col-lg-6 grid-margin stretch-card" style="display: none;">
<div class="card">
<div class="card-body"">
<h4 id="cardTitle3C" class="card-title text-center">Land Crouched</h4>
<p class="card-description">
<!--
Add class <code> -> </code>
//-->
</p>
<div class="table-responsive">
<table class="table table-hover table-condensed">
<thead>
<tr>
<th class="text-right">Start Type</th>
<th> -> </th>
<th class="text-left">Landing Type</th>
</tr>
</thead>
<tbody id="bounceTipsSpecialC">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="divID_DiffTitle" class="col-lg-12 grid-margin stretch-card" style="display: none;">
<div class="card">
<div class="card-body" style="padding-top: 24px;padding-bottom: 0px;">
<h4 id="divID_DiffTitle_txt" class="card-title text-center">Angled Bounces</h4>
</div>
</div>
</div>
<div id="divID_Diff_cA_Un" class="col-lg-6 grid-margin stretch-card" style="display: none;">
<div class="card">
<div class="card-body"">
<h4 id="cardTitle2U" class="card-title text-center">Land Uncrouched</h4>
<p class="card-description">
<!--
Add class <code> -> </code>
//-->
</p>
<div class="table-responsive">
<table class="table table-hover table-condensed">
<thead>
<tr>
<th class="text-right">Type</th>
<th class="text-center" > Min Angle </th>
<th class="text-left">Max Angle</th>
</tr>
</thead>
<tbody id="divID_DiffTitleDescUn">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="divID_Diff_cA_C" class="col-lg-6 grid-margin stretch-card" style="display: none;">
<div class="card">
<div class="card-body"">
<h4 id="cardTitle2C" class="card-title text-center">Land Crouched</h4>
<p class="card-description">
<!--
Add class <code> -> </code>
//-->
</p>
<div class="table-responsive">
<table class="table table-hover table-condensed">
<thead>
<tr>
<th class="text-right">Type</th>
<th class="text-center"> Min Angle </th>
<th class="text-left">Max Angle</th>
</tr>
</thead>
<tbody id="divID_DiffTitleDescC">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- content-wrapper ends -->
<!-- partial:partials/_footer.html -->
<footer class="footer">
<div class="footer-wrap">
<ul>
<div class="w-100 clearfix">
<span class="d-block text-center text-sm-left d-sm-inline-block">Copyright © Graru1 2020 <a href="https://github.com/Graru1/Graru1.github.io" target="_blank">View the source code</a>. All rights reserved.</span>
<span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center">Version 1.0.0 by Graru1</span>
</div>
</ul>
</div>
</footer>
<!-- partial -->
</div>
<!-- main-panel ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->
<!-- base:js -->
<script src="vendors/base/vendor.bundle.base.js"></script>
<!-- endinject -->
<!-- Plugin js for this page-->
<!-- End plugin js for this page-->
<!-- inject:js -->
<script src="js/template.js"></script>
<!-- endinject -->
<!-- plugin js for this page -->
<!-- End plugin js for this page -->
<script src="vendors/chart.js/Chart.min.js"></script>
<script src="vendors/progressbar.js/progressbar.min.js"></script>
<script src="vendors/chartjs-plugin-datalabels/chartjs-plugin-datalabels.js"></script>
<script src="vendors/justgage/raphael-2.1.4.min.js"></script>
<!-- <script src="vendors/justgage/justgage.js"></script>-->
<!-- Custom js for this page-->
<script src="js/dashboard.js"></script>
<!-- End custom js for this page-->
</body>
</html>