-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
476 lines (438 loc) · 17.8 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
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<title>Beary Good Sim</title>
<link href="dist/css/theme.default.min.css" rel="stylesheet">
<link href="dist/css/style.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap" rel="stylesheet">
<script type="text/javascript" src="dist/js/libs/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="dist/js/libs/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="dist/js/libs/jquery.tablesorter.widgets.min.js"></script>
<script type="text/javascript" src="dist/js/libs/Chart.min.js"></script>
<!-- <script type="text/javascript" src="dist/js/classes/player.min.js"></script>
<script type="text/javascript" src="dist/js/classes/simulation.min.js"></script>
<script type="text/javascript" src="dist/js/classes/spell.min.js"></script>
<script type="text/javascript" src="dist/js/classes/weapon.min.js"></script>
<script type="text/javascript" src="dist/js/data/gear.min.js"></script>
<script type="text/javascript" src="dist/js/data/races.min.js"></script>
<script type="text/javascript" src="dist/js/data/buffs.min.js"></script>
<script type="text/javascript" src="dist/js/data/spells.min.js"></script>
<script type="text/javascript" src="dist/js/data/talents.min.js"></script>
<script type="text/javascript" src="dist/js/data/session.min.js"></script>
<script type="text/javascript" src="dist/js/globals.min.js"></script>
<script type="text/javascript" src="dist/js/settings.min.js"></script>
<script type="text/javascript" src="dist/js/stats.min.js"></script>
<script type="text/javascript" src="dist/js/ui.min.js"></script> -->
<!-- TESTING JS -->
<script type="text/javascript" src="js/classes/player.js"></script>
<script type="text/javascript" src="js/classes/simulation.js"></script>
<script type="text/javascript" src="js/classes/spell.js"></script>
<script type="text/javascript" src="js/classes/weapon.js"></script>
<script type="text/javascript" src="js/data/gear.js"></script>
<script type="text/javascript" src="js/data/races.js"></script>
<script type="text/javascript" src="js/data/buffs.js"></script>
<script type="text/javascript" src="js/data/spells.js"></script>
<script type="text/javascript" src="js/data/talents.js"></script>
<script type="text/javascript" src="js/data/boss_presets.js"></script>
<script type="text/javascript" src="js/data/session.js"></script>
<script type="text/javascript" src="js/globals.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/stats.js"></script>
<script type="text/javascript" src="js/ui.js"></script>
<script>var whTooltips = { colorLinks: true, iconizeLinks: false, renameLinks: false, "hide": { "ilvl": false } };</script>
<script src="https://wow.zamimg.com/widgets/power.js"></script>
</head>
<!--
Log option
profiles
-->
<body>
<div class="alerts"></div>
<section class="sidebar">
<div class="bg"></div>
<div class="character">
<p>Level 70 <span id="race"> Night Elf</span> Druid</p>
<div class="stattab">
<button class="statlinks" onclick="openStat(event, 'Defensive Stats')">Defensive Stats</button>
<button class="statlinks" onclick="openStat(event, 'Threat Stats')" id="defaultOpen">Threat Stats</button>
</div>
<ul>
<div id="Defensive Stats" class="tabcontent">
<li>
<label>HP</label>
<span id="maxhp"></span>
</li>
<li>
<label>Defense</label>
<span id="def"></span>
</li>
<li>
<label>Resilience</label>
<span id="res"></span>
</li>
<li>
<label>Armor</label>
<span id="armor"></span>
</li>
<li>
<label>EHP</label>
<span id="ehp"></span>
</li>
<li>
<label>Incoming Crit Chance</label>
<span id="inccrit"></span>
</li>
<li>
<label>Incoming Dodge Chance</label>
<span id="incdodge"></span>
</li>
<li>
<label>Incoming Miss Chance</label>
<span id="incmiss"></span>
</li>
</div>
<div id="Threat Stats" class="tabcontent">
<li>
<label>Attack Power</label>
<span id="ap"></span>
</li>
<li>
<label>Agility</label>
<span id="agi"></span>
</li>
<li>
<label>Hit</label>
<span id="hit"></span>
</li>
<li>
<label>Crit</label>
<span id="crit"></span>
</li>
<li>
<label>Expertise</label>
<span id="expertise"></span>
</li>
<li>
<label>Dmg Mod %</label>
<span id="dmgmod"></span>
</li>
<li>
<label>Haste</label>
<span id="haste"></span>
</li>
<li>
<label>Armor Penetration</label>
<span id="arpen"></span>
</li>
</div>
<li>
<label>Sets</label>
<span id="sets"></span>
</li>
<li>
<label>Meta Gem</label>
<span id="metagem"></span>
</li>
</ul>
<div class="bottom">
<div id="weights-div">
<div id="weight-str"><span class="stat-name">Strength:</span><span class="stat-dps">12345</span><span class="stat-error">123</span></div>
<div id="weight-agi"><span class="stat-name">Agility:</span><span class="stat-dps">12345</span><span class="stat-error">123</span></div>
<div id="weight-ap"><span class="stat-name">Attack Power:</span><span class="stat-dps">12345</span><span class="stat-error">123</span></div>
<div id="weight-crit"><span class="stat-name">1% Crit:</span><span class="stat-dps">12345</span><span class="stat-error">123</span></div>
<div id="weight-hit"><span class="stat-name">1% Hit:</span><span class="stat-dps">12345</span><span class="stat-error">123</span></div>
<div id="weight-haste"><span class="stat-name">1% Haste:</span><span class="stat-dps">12345</span><span class="stat-error">123</span></div>
</div>
<div id="tps-box"><span id="tps"></span><span id="tpserr"></span></div>
<div id="tpsstats"></div>
<div id="dps-box"><span id="dps"></span><span id="dpserr"></span></div>
<div id="stats"></div>
<div id="dtps-box"><span id="dtps"></span></div>
<div id="dtpsstats"></div>
<div id="score-box"><span id="score"></span></div>
<div id="deaths"></div>
<div id="saves"></div>
<div id="pullvar"></div>
<div id="time"></div>
<a href="#" class="btn js-dps">RUN</a>
<a href="#" class="btn js-table">RUN TAB</a>
<a href="#" class="btn js-table-all">RUN ALL TABS</a>
<a href="#" class="btn js-weights">STAT WEIGHTS</a>
<a href="#" class="btn js-stats disabled">STATS</a>
<a href="#" class="btn js-settings">SETTINGS</a>
<!-- <a href="#" class="btn js-saveconfig">SAVE / LOAD CONFIG</a> -->
<div class="popup">
<ul>
<li>SAVE CONFIG</li>
<li>LOAD CONFIG</li>
<li><input class="exit" value="close" type=btn /></li>
</ul>
</div>
</div>
<div class="author">made by Mobmentality-Westfall from Guybrush's Fury Sim</div>
<div class="manual"><a href="https://github.com/mobmentality67/mobmentality67.github.io/blob/master/NOTES.md" target="_blank">WIP notes, bug reports, contributing</a></div>
</section>
<section class="settings">
<a href="#" class="btn-close"></a>
<div class="wrapper">
<article class="fight">
<label>Settings</label>
<ul>
<li>
<label>Race</label>
<select dir="rtl" name="race" id="raceselect">
<option value="Night Elf">Night Elf</option>
<option value="Tauren">Tauren</option>
</select>
</li>
<li>
<label>Simulations</label>
<input type="text" name="simulations" value="50000" data-numberonly="true">
</li>
<li>
<label>Simulations (All)</label>
<input type="text" name="simulationsall" value="10" data-numberonly="true">
</li>
<li>
<label>Apply Boss Preset</label>
<select dir="rtl" name="bosspreset" id="bosspreset">
<option value="none" selected></option>
<option value="Teron Gorefiend">Teron Gorefiend</option>
<option value="Mother Shahraz">Mother Shahraz</option>
<option value="Gathios the Shatterer">Gathios the Shatterer</option>
<option value="Kalecgos">Kalecgos</option>
<option value="Brutallus">Brutallus</option>
<option value="Felmyst">Felmyst</option>
<option value="Lady Sacrolash">Lady Sacrolash</option>
<option value="Entropius">Entropius</option>
</select>
</li>
<li>
<label>Fight Duration (min)</label>
<input type="text" name="timesecsmin" value="220" data-numberonly="true" id="timesecmin">
</li>
<li>
<label>Fight Duration (max)</label>
<input type="text" name="timesecsmax" value="240" data-numberonly="true" id="timesecmax">
</li>
<li>
<label>Initial Rage</label>
<input type="text" name="startrage" value="0" data-numberonly="true">
</li>
<li>
<label>Target Base Armor</label>
<input type="text" name="targetbasearmor" value="7700" data-numberonly="true" id="targetbasearmor">
</li>
<li>
<label>Weapon Damage RNG</label>
<select dir="rtl" name="weaponrng">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</li>
<li>
<label>Boss Crush</label>
<select dir="rtl" name="bosscrush" id="bosscrush">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</li>
<li>
<label>Boss Parry Haste</label>
<select dir="rtl" name="bossparryhaste" id="bossparryhaste">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</li>
<li>
<label>Active Tank </label>
<select dir="rtl" name="activetank" >
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</li>
<li>
<label>Boss Damage (If Active Tank) </label>
<input type="text" name="incswingdamage" value="22000" data-numberonly="true" id="incswingdamage">
</li>
<li>
<label>Boss Swing Timer (If Active Tank)</label>
<input type="text" name="incswingtimer" value="2.0" data-numberonly="true" id="incswingtimer">
</li>
<li>
<label>Add 50% Damage Offhand Swing (No DW Penalty)</label>
<select dir="rtl" name="bossdw" id="bossdw">
<option value="Yes">Yes</option>
<option value="No" selected>No</option>
</select>
</li>
<li>
<label>Pull variance check at least </label>
<input type="text" name="pullvariancethreshold" value="28000" data-numberonly="true"> <br>
<label>threat after seconds </label>
<input type="text" name="pullvariancetime" value="20" data-numberonly="true"> <br>
<label>Including misdirect threat for check </label>
<input type="text" name="pullvariancemdthreat" value="2000" data-numberonly="true">
</li>
<li>
<label>Incoming HPS (lifebloom model) </label>
<input type="text" name="inchpslifebloom" value="800" data-numberonly="true" id="inchpslifebloom"> <br>
<label>Incoming heal every 2.5 seconds </label>
<input type="text" name="incheal" value="4500" data-numberonly="true" id="incheal">
</li>
<li>
<label> HP Percentage to use defensive trinkets </label>
<input type="text" name="defensivethreshold" value="30" data-numberonly="true">
</li>
<li>
<label> Survival skew for gear scoring </label>
<input type="text" name="survivalskew" value="0.5" data-numberonly="true">
</li>
</ul>
</article>
<article class="buffs">
<label>Buffs</label>
</article>
<article class="rotation">
<label>Rotation</label>
</article>
<article class="talents">
<label>Talents</label>
</article>
<article class="filter">
<label>Gear Filter</label>
<ul class="sources">
<li data-id="quest">Quest</li>
<li data-id="crafting">Crafting</li>
<li data-id="dungeon">Dungeon</li>
<li data-id="heroic">Heroic</li>
<li data-id="reputation">Crafting</li>
<li data-id="badges">Badges</li>
<li data-id="karazhan">Karazhan</li>
<li data-id="gruuls">Gruuls</li>
<li data-id="magtheridon">Magtheridon</li>
<li data-id="worldboss">World Boss</li>
<li data-id="ssc">Serpentshrine Cavern</li>
<li data-id="tk">Tempest Keep</li>
<li data-id="bt">Black Temple</li>
<li data-id="hyjal">Mount Hyjal</li>
<li data-id="za">Zul'Aman</li>
<li data-id="sunwell">Sunwell</li>
<li data-id="pvp">PvP</li>
<li data-id="other">Other</li>
</ul>
<ul class="phases">
<li data-id="1" data-sources="karazhan,gruuls,magtheridon,worldboss">P1</li>
<li data-id="2" data-sources="ssc,tk">P2</li>
<li data-id="3" data-sources="hyjal,bt">P3</li>
<li data-id="4" data-sources="za">P4</li>
<li data-id="5" data-sources="sunwell">P5</li>
</ul>
</article>
<article class="import">
<label>70Up Import</label>
<ul>
<li>
<div class="container" >
<input type="file" name="file" id="file">
<!-- Drag and Drop container-->
<div class="upload-area" id="uploadfile">
<h1>Drag and Drop file here<br/>Or<br/>Click to select file</h1>
</div>
</div>
<textarea name="importstring" class="importstring" value=""></textarea>
<button type="button" class="js-import" name="import">
Import
</button>
<span class="importmsg">
</span>
</li>
</ul>
</article>
</div>
</section>
<section class="stats">
<a href="#" class="btn-close"></a>
<div class="wrapper">
<article>
<label>Fight Details</label>
<div class="container-table"></div>
</article>
<article>
<label>Damage</label>
<div class="container-dmg"><canvas></canvas></div>
<div class="legend"></div>
</article>
<article>
<label>Aura Uptime</label>
<div class="container-aura"><canvas></canvas></div>
</article>
<article>
<label>TPS Spread</label>
<div class="container-spread"><canvas></canvas></div>
</article>
</div>
</section>
<section class="main">
<nav>
<ul>
<li data-type="twohand" class="active">
<p>Weapon</p>
</li>
<li data-type="head"><p>Head</p></li>
<li data-type="neck"><p>Neck</p></li>
<li data-type="shoulder"><p>Shoulder</p></li>
<li data-type="back"><p>Back</p></li>
<li data-type="chest"><p>Chest</p></li>
<li data-type="wrist"><p>Wrist</p></li>
<li data-type="hands"><p>Hands</p></li>
<li data-type="waist"><p>Waist</p></li>
<li data-type="legs"><p>Legs</p></li>
<li data-type="feet"><p>Feet</p></li>
<li data-type="finger1"><p>Ring 1</p></li>
<li data-type="finger2"><p>Ring 2</p></li>
<li data-type="trinket1"><p>Trinket 1</p></li>
<li data-type="trinket2"><p>Trinket 2</p></li>
<li data-type="ranged"><p>Idol</p></li>
<li data-type="custom"><p>Custom</p></li>
</ul>
</nav>
<div class="table-container"></div>
<div class="button-container">
<a href="#" class="btn js-editmode">SHOW / HIDE ROWS</a>
<a href="#" class="btn js-enchant">ENCHANTS TPS</a>
<a href="#" class="btn js-table">GEAR TPS</a>
</div>
<progress value="0" max="100"></progress>
</section>
<script>
function openStat(evt, statName) {
// Declare all variables
var i, tabcontent, tablinks;
// Get all elements with class="tabcontent" and hide them
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
// Get all elements with class="statlinks" and remove the class "active"
tablinks = document.getElementsByClassName("statlinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
// Show the current tab, and add an "active" class to the button that opened the tab
document.getElementById(statName).style.display = "block";
evt.currentTarget.className += " active";
}
</script>
<script>
$(document).ready(function () {
SIM.UI.init();
SIM.SETTINGS.init();
SIM.STATS.init();
document.getElementById("defaultOpen").click();
});
</script>
</body>
</html>