-
Notifications
You must be signed in to change notification settings - Fork 0
/
spells.html
273 lines (265 loc) · 15.3 KB
/
spells.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ron's Spell Tracker</title>
<meta name="description" content="Find all Wizards Arena spells by element with Ron's Spell Tracker">
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="https://raw.githubusercontent.com/wizard-ron17/Ron-Rank/main/favicon-cleric.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="manifest.json">
<meta name="apple-mobile-web-app-capable" content="yes">
<link href="https://unpkg.com/tabulator-tables/dist/css/tabulator.min.css" rel="stylesheet">
<style>
body {
font-family: 'VT323', monospace;
background-color: #222034;
color: #22c6e9;
margin: 0;
padding: 0;
overflow-x: hidden;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
height: 30px;
background-color: #2a2a44;
padding: 0 0px;
}
nav a {
color: white;
text-decoration: none;
font-size: 20px;
margin: 0 2px;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: bold;
}
nav a:hover {
color: #22c6e9;
}
nav a.active {
color: #22c6e9;
}
h1 {
font-size: 50px;
text-align: center;
margin-top: 0px;
margin-bottom: 0px;
text-transform: uppercase;
letter-spacing: 2px;
}
/* CSS to style the table */
.tabulator {
background-color: #222034; /* Change background color */
color: white; /* Change text color */
}
/* CSS to style the table header */
.tabulator-col-title {
background-color: #2a2a44; /* Change header background color */
color: #22c6e9;
font-size: 18px;
padding: 0;
border: none;
height: 25px;
}
.tabulator-col-content {
background-color: #2a2a44;
}
/* CSS to style the table rows */
.tabulator-row {
background-color: #222034; /* Change row background color */
color: white;
font-size: 16px;
}
.tabulator-row.tabulator-selectable:hover {
background-color: #4c5270; /* Change row background color */
color: white;
font-size: 20px;
}
/* CSS to style alternate rows differently */
.tabulator-row:nth-child(even) {
background-color: #2a2a44; /* Change background color of even rows */
}
.spell-icon {
width: 20px;
height: 20px;
margin-right: 5px;
}
</style>
</head>
<body>
<nav>
<a href="http://ronrank.xyz/">Info</a>
<a href="http://ronrank.xyz/rank/">Rank</a>
<a href="http://ronrank.xyz/calculator/">Calculator</a>
<a class="active" href="http://ronrank.xyz/spells/">Spells</a>
<a href="http://ronrank.xyz/tournament/">Tournament</a>
</nav>
<h1>Spell Tracker</h1>
<div id="tabulator"></div> <!-- This will be replaced by Tabulator -->
<script>
document.addEventListener('DOMContentLoaded', function () {
// Define your spell data
var spellsData = [
{ spell: "Acid Beam", perk: "None", base_atk: 6, base_dmg: 6, element: "Acid", effect: "None" },
{ spell: "Acid Arrow", perk: "Poison 1", base_atk: 5, base_dmg: 4, element: "Acid", effect: "-1 DEF" },
{ spell: "Poison Barrage", perk: "Poison 2", base_atk: 4, base_dmg: 3, element: "Acid", effect: "-2 DEF" },
{ spell: "Cloudkill", perk: "Poison 3", base_atk: 2, base_dmg: 3, element: "Acid", effect: "40% Skip" },
{ spell: "Corrosion", perk: "None", base_atk: 7, base_dmg: 9, element: "Acid", effect: "None" },
{ spell: "Infestation", perk: "Disease", base_atk: 6, base_dmg: 7, element: "Acid", effect: "-4 DEF" },
{ spell: "Necrosis", perk: "Poison 4", base_atk: 7, base_dmg: 7, element: "Acid", effect: "-8 DEF" },
{ spell: "Vindicate", perk: "None", base_atk: 5, base_dmg: 7, element: "Dark", effect: "None" },
{ spell: "Unholy Nova", perk: "None", base_atk: 6, base_dmg: 6, element: "Dark", effect: "None" },
{ spell: "Bane", perk: "Slow", base_atk: 4, base_dmg: 3, element: "Dark", effect: "-1 ATK" },
{ spell: "Hallucination", perk: "Paralyze", base_atk: 3, base_dmg: 3, element: "Dark", effect: "30% Skip" },
{ spell: "Blight", perk: "Exhaust", base_atk: 6, base_dmg: 7, element: "Dark", effect: "-4 ATK" },
{ spell: "Hex", perk: "Curse", base_atk: 6, base_dmg: 7, element: "Dark", effect: "-4 DEF" },
{ spell: "Abyss", perk: "Poison 3", base_atk: 6, base_dmg: 6, element: "Dark", effect: "40% Skip" },
{ spell: "Flesh to Stone", perk: "None", base_atk: 5, base_dmg: 7, element: "Earth", effect: "None" },
{ spell: "Erupting Earth", perk: "None", base_atk: 6, base_dmg: 6, element: "Earth", effect: "None" },
{ spell: "Earthquake", perk: "Shock", base_atk: 3, base_dmg: 4, element: "Earth", effect: "40% Skip" },
{ spell: "Earth Tremor", perk: "Slow 2", base_atk: 4, base_dmg: 3, element: "Earth", effect: "-3 ATK" },
{ spell: "Meteors", perk: "None", base_atk: 7, base_dmg: 9, element: "Earth", effect: "None" },
{ spell: "Rock Shield", perk: "Harden", base_atk: 6, base_dmg: 6, element: "Earth", effect: "-4 DMG" },
{ spell: "Bones of the Earth", perk: "Shock", base_atk: 7, base_dmg: 7, element: "Earth", effect: "40% Skip" },
{ spell: "Hellfire Strike", perk: "None", base_atk: 5, base_dmg: 7, element: "Fire", effect: "None" },
{ spell: "Fireball", perk: "None", base_atk: 6, base_dmg: 6, element: "Fire", effect: "None" },
{ spell: "Fiery Smoke", perk: "Confuse", base_atk: 3, base_dmg: 3, element: "Fire", effect: "20% Skip" },
{ spell: "Ignite", perk: "Burn", base_atk: 4, base_dmg: 3, element: "Fire", effect: "-1 DMG" },
{ spell: "Hellish Flame", perk: "Burn 2", base_atk: 6, base_dmg: 7, element: "Fire", effect: "-4 DEF" },
{ spell: "Dragon's Breath", perk: "Fear 2", base_atk: 6, base_dmg: 7, element: "Fire", effect: "30% Skip" },
{ spell: "Frost Missiles", perk: "None", base_atk: 5, base_dmg: 7, element: "Ice", effect: "None" },
{ spell: "Ice Spear", perk: "None", base_atk: 6, base_dmg: 6, element: "Ice", effect: "None" },
{ spell: "Ice Storm", perk: "Freeze", base_atk: 3, base_dmg: 2, element: "Ice", effect: "30% Skip" },
{ spell: "Frostbite", perk: "Slow", base_atk: 4, base_dmg: 3, element: "Ice", effect: "-1 ATK" },
{ spell: "Ice Shield", perk: "Harden", base_atk: 6, base_dmg: 6, element: "Ice", effect: "-4 DMG" },
{ spell: "Avalanche", perk: "Paralyze 2", base_atk: 6, base_dmg: 7, element: "Ice", effect: "40% Skip" },
{ spell: "Nightmare", perk: "None", base_atk: 7, base_dmg: 5, element: "Psycho", effect: "None" },
{ spell: "Madness", perk: "None", base_atk: 6, base_dmg: 6, element: "Psycho", effect: "None" },
{ spell: "Fear", perk: "Fear", base_atk: 3, base_dmg: 4, element: "Psycho", effect: "-4 ATK" },
{ spell: "Command", perk: "Paralyze 2", base_atk: 4, base_dmg: 3, element: "Psycho", effect: "40% Skip" },
{ spell: "Deadly Illusion", perk: "Paralyze 2", base_atk: 5, base_dmg: 6, element: "Psycho", effect: "40% Skip" },
{ spell: "Maddening Darkness", perk: "Fear 3", base_atk: 6, base_dmg: 5, element: "Psycho", effect: "-4 DEF" },
{ spell: "Summon Spirit", perk: "None", base_atk: 7, base_dmg: 5, element: "Spirit", effect: "None" },
{ spell: "Wail of Spirits", perk: "None", base_atk: 6, base_dmg: 7, element: "Spirit", effect: "None" },
{ spell: "Cursed Whispers", perk: "Fear", base_atk: 3, base_dmg: 4, element: "Spirit", effect: "-4 ATK" },
{ spell: "Mental Prison", perk: "Paralyze 2", base_atk: 4, base_dmg: 3, element: "Spirit", effect: "40% Skip" },
{ spell: "Phantasmal Force", perk: "Exhaust", base_atk: 6, base_dmg: 6, element: "Spirit", effect: "-4 ATK" },
{ spell: "Possession", perk: "Confuse", base_atk: 6, base_dmg: 8, element: "Spirit", effect: "20% Skip" },
{ spell: "Sacred Flame", perk: "None", base_atk: 6, base_dmg: 6, element: "Sun", effect: "None" },
{ spell: "Solar Faith", perk: "Exhaust", base_atk: 3, base_dmg: 4, element: "Sun", effect: "-4 ATK" },
{ spell: "Dawn", perk: "Blind", base_atk: 4, base_dmg: 3, element: "Sun", effect: "50% Skip" },
{ spell: "Sunbeam", perk: "Confuse", base_atk: 5, base_dmg: 7, element: "Sun", effect: "20% Skip" },
{ spell: "Divine Light", perk: "None", base_atk: 7, base_dmg: 9, element: "Sun", effect: "None" },
{ spell: "Light Shield", perk: "Protection", base_atk: 6, base_dmg: 6, element: "Sun", effect: "-3 DMG" },
{ spell: "Lightning", perk: "None", base_atk: 5, base_dmg: 6, element: "Thunder", effect: "None" },
{ spell: "Storm", perk: "None", base_atk: 6, base_dmg: 5, element: "Thunder", effect: "None" },
{ spell: "Thunder", perk: "Paralyze", base_atk: 3, base_dmg: 3, element: "Thunder", effect: "30% Skip" },
{ spell: "Thunder Spike", perk: "Confuse", base_atk: 4, base_dmg: 3, element: "Thunder", effect: "20% Skip" },
{ spell: "Shatter", perk: "Exhaust", base_atk: 6, base_dmg: 6, element: "Thunder", effect: "-4 ATK" },
{ spell: "Shock", perk: "Confuse", base_atk: 5, base_dmg: 8, element: "Thunder", effect: "20% Skip" },
{ spell: "Circle of Death", perk: "None", base_atk: 7, base_dmg: 5, element: "Undead", effect: "None" },
{ spell: "Summon Undead", perk: "None", base_atk: 6, base_dmg: 6, element: "Undead", effect: "None" },
{ spell: "Decay", perk: "Exhaust", base_atk: 4, base_dmg: 3, element: "Undead", effect: "-4 ATK" },
{ spell: "Whiter", perk: "Poison 3", base_atk: 3, base_dmg: 4, element: "Undead", effect: "40% Skip" },
{ spell: "Danse Macabre", perk: "Fear", base_atk: 6, base_dmg: 6, element: "Undead", effect: "-4 ATK" },
{ spell: "Finger of Death", perk: "Fear 2", base_atk: 6, base_dmg: 6, element: "Undead", effect: "30% Skip" },
{ spell: "Maelstrom", perk: "None", base_atk: 7, base_dmg: 5, element: "Water", effect: "None" },
{ spell: "Tsunami", perk: "None", base_atk: 6, base_dmg: 6, element: "Water", effect: "None" },
{ spell: "Drown", perk: "Exhaust", base_atk: 3, base_dmg: 4, element: "Water", effect: "-4 ATK" },
{ spell: "Watery Sphere", perk: "Paralyze 2", base_atk: 4, base_dmg: 3, element: "Water", effect: "40% Skip" },
{ spell: "Flood", perk: "Paralyze 2", base_atk: 5, base_dmg: 6, element: "Water", effect: "40% Skip" },
{ spell: "Water Barrier", perk: "Protection", base_atk: 6, base_dmg: 6, element: "Water", effect: "-3 DMG" },
{ spell: "Wind Strike", perk: "None", base_atk: 5, base_dmg: 7, element: "Wind", effect: "None" },
{ spell: "Tornado", perk: "None", base_atk: 6, base_dmg: 6, element: "Wind", effect: "None" },
{ spell: "Wave of Nature", perk: "Confuse", base_atk: 4, base_dmg: 3, element: "Wind", effect: "20% Skip" },
{ spell: "Wind Rupture", perk: "Slow", base_atk: 4, base_dmg: 4, element: "Wind", effect: "-1 ATK" },
{ spell: "Whirl", perk: "None", base_atk: 7, base_dmg: 9, element: "Wind", effect: "None" },
{ spell: "Wind Barrier", perk: "Protection", base_atk: 6, base_dmg: 6, element: "Wind", effect: "-3 DMG" },
{ spell: "Vortex", perk: "Slow 3", base_atk: 7, base_dmg: 7, element: "Wind", effect: "-7 ATK" },
];
// Define Tabulator table
var table = new Tabulator("#tabulator", {
data: spellsData,
layout: "fitColumns",
columns: [
{
title: "ELEMENT",
field: "element",
align: "center",
formatter: function(cell, formatterParams, onRendered) {
var value = cell.getValue();
var icon = "<img class='spell-icon' src='https://raw.githubusercontent.com/wizard-ron17/Ron-Rank/main/wizard-elements-svg/" + value.toLowerCase() + "-element.svg'>";
return value + icon;
}
},
{title: "SPELL", field: "spell"},
{title: "PERK", field: "perk"},
{title: "EFFECT", field: "effect"},
{title: "ATK", field: "base_atk"},
{title: "DMG", field: "base_dmg"}
],
tooltips: true,
tooltipsHeader: true,
rowFormatter: function(row) {
var data = row.getData();
var elementCell = row.getCell("element");
var spellCell = row.getCell("spell");
// Add conditional formatting to change text color based on spell name
if (data.element === "Acid") {
elementCell.getElement().style.color = "#88f71d";
spellCell.getElement().style.color = "#88f71d";
} else if (data.element === "Dark") {
elementCell.getElement().style.color = "#7c54d0";
spellCell.getElement().style.color = "#7c54d0";
}
else if (data.element === "Earth") {
elementCell.getElement().style.color = "#6e5752";
spellCell.getElement().style.color = "#6e5752";
}
else if (data.element === "Fire") {
elementCell.getElement().style.color = "#cc191a";
spellCell.getElement().style.color = "#cc191a";
}
else if (data.element === "Ice") {
elementCell.getElement().style.color = "#11c8ee";
spellCell.getElement().style.color = "#11c8ee";
}
else if (data.element === "Psycho") {
elementCell.getElement().style.color = "#c84ff8";
spellCell.getElement().style.color = "#c84ff8";
}
else if (data.element === "Spirit") {
elementCell.getElement().style.color = "#6b7c86";
spellCell.getElement().style.color = "#6b7c86";
}
else if (data.element === "Sun") {
elementCell.getElement().style.color = "#fd9f02";
spellCell.getElement().style.color = "#fd9f02";
}
else if (data.element === "Thunder") {
elementCell.getElement().style.color = "#85cad9";
spellCell.getElement().style.color = "#85cad9";
}
else if (data.element === "Undead") {
elementCell.getElement().style.color = "#960303";
spellCell.getElement().style.color = "#960303";
}
else if (data.element === "Water") {
elementCell.getElement().style.color = "#167ccc";
spellCell.getElement().style.color = "#167ccc";
}
else if (data.element === "Wind") {
elementCell.getElement().style.color = "#afb9cc";
spellCell.getElement().style.color = "#afb9cc";
}
// Add more conditions as needed for other spells
}
});
});
</script>
<script type="text/javascript" src="https://unpkg.com/tabulator-tables/dist/js/tabulator.min.js"></script>
</body>
</html>