-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (48 loc) · 2.68 KB
/
index.html
File metadata and controls
51 lines (48 loc) · 2.68 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- meta name="viewport" content="width=device-width, initial-scale=1.0" -->
<title>Terraria Random Weapon</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5C761EXVMV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-5C761EXVMV');
</script>
<link rel="stylesheet" href="style.css">
<script src="script.mjs" type="module"></script>
</head>
<body>
<div class="defaultText bottom right" style="position: absolute;" id="credits">
<p>Thanks to %DATA_PROVIDER% for providing all the data!</p>
<code>TRW V. %TRW_VERSION% | Terraria %TERRARIA_VERSION%</code>
</div>
<div class="top right" style="position: absolute;">
<button class="defaultButton" style="display: block; width: fit-content;" onclick="trw.saveToFile()">Save</button>
<button class="defaultButton" style="display: block; width: fit-content;" onclick="trw.loadFromFile()">Load</button>
</div>
<div class="centered container">
<p class="defaultText" id="currentStage">Current Stage: %CURRENT_STAGE%</p>
<p class="defaultText" id="availWeapons">Available Weapons: %WEAPON_COUNT%</p>
<button class="defaultButton" onclick="trw.getRandomWeaponPressed()">Get Random Weapon</button>
<button class="defaultButton" onclick="trw.nextStage()">Next Stage</button>
<button class="defaultButton" onclick="trw.previousStage()">Previous Stage</button>
<button class="defaultButton" id="optWeaponList" onclick="trw.toggleWeaponList()">%ACTION% Weapon List</button>
<button class="defaultButton" id="optStageClear" onclick="trw.toggleStageClear()">%ACTION% Weapon Clear on Difficulty Jump</button>
</div>
<div class="centered container hidden" id="chosenWeaponPrompt">
<p class="defaultText" id="randomlySelectedWeapon">Picked %SELECTED_WEAPON%</p>
<button class="defaultButton" onclick="trw.confirmRandomWeapon(true, false)">Accept</button>
<button class="defaultButton" onclick="trw.confirmRandomWeapon(true, true)">Accept & Blacklist</button>
<button class="defaultButton" onclick="trw.confirmRandomWeapon(false, false)">Reject</button>
<button class="defaultButton" onclick="trw.confirmRandomWeapon(false, true)">Reject & Blacklist</button>
</div>
<div class="top left container hidden" id="weaponList"></div>
<div class="bottom left container">
<p class="defaultText" id="selectedWeapon">Current Weapon: %CURRENT_WEAPON%</p>
</div>
</body>
</html>