-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
395 lines (383 loc) · 18.6 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
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
<!DOCTYPE html>
<html>
<head>
<title>Vindictus Damage Calculator</title>
<meta name="viewport" content="width=1000">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<script src="calc.js"></script>
<style>
select {
width: 100%;
margin: 0;
padding: 0;
}
input {
width: calc(100% - 4px);
margin: 0;
padding: 0;
}
#timecalc input {
width: calc(50% - 20px);
margin: 0;
padding: 0;
}
input#timedeal1,
input#timedeal2,
input#dpm1,
input#dpm2 {
width: calc(100% - 4px);
margin: 0;
padding: 0;
}
tr td:first-child {
padding-left: 10px;
}
.content {
max-width: 800px;
margin: auto;
background: white;
padding: 10px;
}
</style>
<body>
<div class="content">
</head>
<body>
<div class='container' style='width: fit-content;'>
<hr>
<div id='header' style='text-align: center; font-size: 30px; font-weight: bold;'>Vindictus Damage Calcuator</div>
<hr>
<hr>
<div id='calc' style='width: 800px; margin: 0; padding: 0;'>
<table style='table-layout:fixed; margin: 0 auto;'>
<col width="1px" />
<col width="0px" />
<tr>
<td nowrap>Select Boss</td>
<td>
<select id="boss"
onchange="if(this.value == 'custom') {document.querySelectorAll('.customstat').forEach(function(x){x.style.display='';});} else {document.querySelectorAll('.customstat').forEach(function(x){x.style.display='none';});}">
<option label="Level 90 Raids" value="lvl90raids"></option>
<option label="Dullahan" value="dullahan"></option>
<option label="Aes Sidhe" value="aessidhe"></option>
<option label="Arcana" value="arcana"></option>
<option label="Rupacitus" value="rupacitus"></option>
<option label="Claire" value="claire"></option>
<option label="Outraged Elchulus" value="elchulus"></option>
<option label="Macha" value="macha"></option>
<option label="Agares" value="agares"></option>
<option label="Brilliant Lugh" value="lugh"></option>
<option label="Selren" value="selren"></option>
<option label="Marject" value="marject"></option>
<option label="Aodhan" value="aodhan"></option>
<option label="Cesar" value="caesar"></option>
<option label="Specials" value="special"></option>
<option label="Neamhain" value="neamhain"></option>
<option label="Balor" value="balor" selected></option>
<option label="Brigid" value="brigit"></option>
<option label="[Hell] Redeemer" value="hell"></option>
<option label="Nyle" value="nyle"></option>
<option label="Siethe" value="siethe"></option>
<option label="Custom" value="custom"></option>
</select>
</td>
</tr>
<tr class='customstat' style='display: none;'>
<td nowrap>Boss Defense</td>
<td><input id='bossdef' value='0'></td>
</tr>
<tr class='customstat' style='display: none;'>
<td nowrap>Boss Critical Resistance</td>
<td><input id='bossres' value='0'></td>
</tr>
<tr class='customstat' style='display: none;'>
<td nowrap>Boss Counterforce Resistance</td>
<td><input id='bossdongsukres' value='0'></td>
</tr>
<tr class='customstat' style='display: none;'>
<td nowrap>Minimum Damage CF Outdated</td>
<td><input id='bossdongsukmindmg' value='100'></td>
</tr>
</table>
<hr>
<hr>
<div id='calc1' style='display: inline-block; width: 398px;'>
<div style='text-align: center;'>Player 1</div>
<div id='input'>
<table style='table-layout:fixed;'>
<col width="275px" />
<col width="120px" />
<tr>
<td nowrap>Attack</td>
<td><input id='atk' value='50000'></td>
</tr>
<tr>
<td nowrap>Additional Damage</td>
<td><input id='add' value='6000'></td>
</tr>
<tr>
<td nowrap>ATT Limit</td>
<td><input id='alr' value='3550'></td>
</tr>
<tr>
<td nowrap>Balance</td>
<td><input id='bal' value='90'></td>
</tr>
<tr>
<td nowrap>Critical</td>
<td><input id='cri' value='220'></td>
</tr>
<tr>
<td nowrap colspan="2" style="text-align: center;">
<label for='swordl1'>Sword Lann </label><input
style='width: auto; vertical-align: middle; margin-left: 3px;' type="checkbox"
id="swordl1"
onchange="if(this.checked)document.querySelector('#spearl1').checked = false;">
<label for='spearl1'>Spear Lann </label><input
style='width: auto; vertical-align: middle; margin-left: 3px;' type="checkbox"
id="spearl1"
onchange="if(this.checked)document.querySelector('#swordl1').checked = false;">
</td>
</tr>
<tr>
<td nowrap>Counterforce</td>
<td><input id='dongsuk' value='200'></td>
</tr>
</table>
<hr>
<button style='width: 398px;' onclick='exec(1);'>Calculate Effective Combat Power</button>
</div>
<div id='output'>
<table style='table-layout:fixed;'>
<col width="250px" />
<col width="120px" />
<tr>
<td nowrap>Effective Damage (No Crit)</td>
<td nowrap><input id='nocritdmg'disabled>
<input
style='width: auto; vertical-align: middle; margin-left: 7px;' type="checkbox"
id="compnocrit"
onchange="document.querySelector('#compcrit').checked = !(this.checked);"></td>
</tr>
</td>
</tr>
<tr>
<td nowrap>Effective Damage (Crit)</td>
<td nowrap><input id='critdmg'disabled>
<input
style='width: auto; vertical-align: middle; margin-left: 7px;' type="checkbox"
id="compcrit" checked
onchange="document.querySelector('#compnocrit').checked = !(this.checked);"></td>
</tr>
</td>
</tr>
</table>
</div>
</div>
<div id='calc2' style='display: inline-block; width: 398px;'>
<div style='text-align: center;'>Player 2</div>
<div id='input'>
<table style='table-layout:fixed;'>
<col width="275px" />
<col width="120px" />
<tr>
<td nowrap>Attack</td>
<td><input id='atk' value='50000'></td>
</tr>
<tr>
<td nowrap>Additional DMG</td>
<td><input id='add' value='6000'></td>
</tr>
<tr>
<td nowrap>ATT Limit</td>
<td><input id='alr' value='3550'></td>
</tr>
<tr>
<td nowrap>Balance</td>
<td><input id='bal' value='90'></td>
</tr>
<tr>
<td nowrap>Critical</td>
<td><input id='cri' value='220'></td>
</tr>
<tr>
<td nowrap colspan="2" style="text-align: center;">
<label for='swordl2'>Sword Lann </label><input
style='width: auto; vertical-align: middle; margin-left: 3px;' type="checkbox"
id="swordl2"
onchange="if(this.checked)document.querySelector('#spearl2').checked = false;">
<label for='spearl2'>Spear Lann </label><input
style='width: auto; vertical-align: middle; margin-left: 3px;' type="checkbox"
id="spearl2"
onchange="if(this.checked)document.querySelector('#swordl2').checked = false;">
</td>
</tr>
<tr>
<td nowrap>Counterforce</td>
<td><input id='dongsuk' value='200'></td>
</tr>
</table>
<hr>
<button style='width: 398px;' onclick='exec(2);'>Calculate Effective Combat Power</button>
</div>
<div id='output'>
<table style='table-layout:fixed;'>
<col width="300px" />
<col width="120px" />
<tr>
<td nowrap>Effective Damage (No Crit)</td>
<td><input id='nocritdmg'disabled></td>
</tr>
<tr>
<td nowrap>Effective Damage (Crit)</td>
<td><input id='critdmg'disabled></td>
</tr>
</table>
</div>
</div>
</div>
<hr>
<div id='footer'
style='width: fit-content; margin: 0 auto; text-size-adjust:none; font-weight: bold; text-align: center; font-size: 16px;'>
To use the calculator below make sure you calculate the effective damage.
</div>
<hr>
<hr>
<div id='appendix' style='text-align: center; font-size: 35px; font-weight: bold;'>Scaled Damage Calculator <span
style="color:red">(Damage is an estimate)</span></div>
<hr>
<hr>
<div id='footer'
style='width: fit-content; margin: 0 auto; text-size-adjust:none; font-weight: bold; text-align: center; font-size: 16px; '>
The results of this calculator is an estimation. <br />
But it is the best that we can do given the differences in gear.
<br />
For the cases of critical being modififed like Lann and Karok the comparison with Critical is wasted.
<br />
</div>
<hr>
<hr>
<div id='compare' style='width: 800px; margin: 0; padding: 0;'>
<div id='input'>
<div id='comp1' style='display: inline-block; width: 398px;'>
<table style='table-layout:fixed;'>
<col width="200px" />
<col width="120px" />
<tr>
<td nowrap>Damage Done</td>
<td nowrap><input id='deal1' value='50'> %</td>
</tr>
</table>
</div>
<div id='comp2' style='display: inline-block; width: 398px;'>
<table style='table-layout:fixed;'>
<col width="200px" />
<col width="120px" />
<tr>
<td nowrap>Damage Done</td>
<td nowrap><input id='deal2' value='50'> %</td>
</tr>
</table>
</div>
<button style='display: block; width: 100%;' onclick='compare();'>Calculate Scaled Damage Difference.</button>
</div>
<div id='output'>
<div id='comp1' style='display: inline-block; width: 398px;'>
<table style='table-layout:fixed;'>
<col width="200px" />
<col width="120px" />
<tr>
<td nowrap>Damage after equalized stats</td>
<td nowrap><input id='deal1'disabled> %</td>
</tr>
</table>
</div>
<div id='comp2' style='display: inline-block; width: 398px;'>
<table style='table-layout:fixed;'>
<col width="200px" />
<col width="120px" />
<tr>
<td nowrap>Damage after equalized stats</td>
<td nowrap><input id='deal2'disabled> %</td>
</tr>
</table>
</div>
</div>
</div>
<hr>
<div id='timecalc' style='width: 800px; margin: 0; padding: 0;'>
<div id='input'>
<div id='time1' style='display: inline-block; width: 398px;'>
<table style='table-layout:fixed;'>
<col width="200px" />
<col width="120px" />
<tr>
<td nowrap>Time</td>
<td nowrap><input id='min1' value='30'>Minutes <input id='sec1' value='00'>Seconds</td>
</tr>
<tr>
<td nowrap>Damage Done</td>
<td nowrap><input id='timedeal1' value='100'>%</td>
</tr>
</table>
<button style='display: block; width: 100%;' onclick='timecalc(1);'>Calculate Damage With (6000 AD, 3550 ALR)</button>
</div>
<div id='time2' style='display: inline-block; width: 398px;'>
<table style='table-layout:fixed;'>
<col width="200px" />
<col width="120px" />
<tr>
<td nowrap>Time</td>
<td nowrap><input id='min2' value='30'>Minutes <input id='sec2' value='00'>Seconds</td>
</tr>
<tr>
<td nowrap>Damage Done</td>
<td nowrap><input id='timedeal2' value='100'>%</td>
</tr>
</table>
<button style='display: block; width: 100%;' onclick='timecalc(2);'>Calcuate Damage with (6000 AD, 3550 ALR)</button>
</div>
</div>
<div id='output'>
<div id='time1' style='display: inline-block; width: 398px;'>
<table style='table-layout:fixed;'>
<col width="200px" />
<col width="120px" />
<tr>
<td nowrap>Scaled DPM</td>
<td nowrap><input id='dpm1' value='' disabled >%</td>
</tr>
<tr>
<td nowrap>└▶ Time</td>
<td nowrap><input id='min1' value='' disabled >Minutes <input id='sec1' value='' disabled >Seconds</td>
</tr>
</table>
</div>
<div id='time2' style='display: inline-block; width: 398px;'>
<table style='table-layout:fixed;'>
<col width="200px" />
<col width="120px" />
<tr>
<td nowrap>Scaled DPM</td>
<td nowrap><input id='dpm2' value='' disabled >%</td>
</tr>
<tr>
<td nowrap>└▶ Time</td>
<td nowrap><input id='min2' value='' disabled>Minutes <input id='sec2' value=''disabled >Seconds</td>
</tr>
</table>
</div>
</div>
</div>
<hr>
<hr>
<div id='footer' style='width: fit-content; margin: 0 auto; text-size-adjust:none; font-weight: bold;'>
The damage calculation of this calculator is based on this <a style="color: black;" href='http://www.inven.co.kr/board/heroes/2028/38144'
target='blank'>http://www.inven.co.kr/board/heroes/2028/38144</a>
</div>
</div>
</body>
</html>