forked from OranWeb/tc-baldrs-levelling-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
330 lines (326 loc) · 12.9 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
<!DOCTYPE html>
<html
lang="en"
x-data="{ darkMode: localStorage.getItem('dark') === 'true' }"
x-init="$watch('darkMode', val => localStorage.setItem('dark', val)); darkMode = darkMode"
x-bind:class="{'dark': darkMode}"
>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Baldr's Levelling List</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,typography"></script>
<style>
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.spin {
animation: spin 1s linear infinite;
}
</style>
<script
defer
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"
></script>
<script src="script.js?v=1.36"></script>
</head>
<body
class="bg-gray-50 dark:bg-gray-900 font-sans leading-normal text-gray-800 dark:text-gray-200 overflow-x-hidden"
>
<div class="hidden sm:block sm:absolute sm:inset-y-0 sm:h-full sm:w-full">
<div class="relative h-full max-w-7xl w-full mx-auto">
<svg
class="absolute right-full transform translate-y-1/8 translate-x-1/8 lg:translate-x-1/4"
width="404"
height="784"
fill="none"
viewBox="0 0 404 784"
>
<defs>
<pattern
id="left-pattern"
x="0"
y="0"
width="20"
height="20"
patternUnits="userSpaceOnUse"
>
<rect
x="0"
y="0"
width="4"
height="4"
class="text-gray-200 dark:text-gray-800"
fill="currentColor"
></rect>
</pattern>
</defs>
<rect width="404" height="784" fill="url(#left-pattern)"></rect>
</svg>
<svg
class="absolute left-full transform -translate-y-1/2 -translate-x-1/8 md:-translate-y-1/2 lg:-translate-x-1/4"
width="404"
height="784"
fill="none"
viewBox="0 0 404 784"
>
<defs>
<pattern
id="right-pattern"
x="0"
y="0"
width="20"
height="20"
patternUnits="userSpaceOnUse"
>
<rect
x="0"
y="0"
width="4"
height="4"
class="text-gray-200 dark:text-gray-800"
fill="currentColor"
></rect>
</pattern>
</defs>
<rect width="404" height="784" fill="url(#right-pattern)"></rect>
</svg>
</div>
</div>
<div class="relative flex flex-col min-h-screen py-12 px-2 sm:px-6 lg:px-8">
<div class="flex items-center justify-center">
<div class="flex flex-col justify-around">
<div class="space-y-6 text-center text-gray-600 dark:text-gray-300">
<h1
class="sm:pt-16 text-4xl font-extrabold tracking-wider text-gray-700 dark:text-gray-200"
>
Baldr's Levelling Targets
</h1>
<h3 class="text-base font-medium tracking-wider">
<div class="max-w-2xl mx-auto">
<p>
This list features inactive, low-stat players, ideal for
leveling up. Focus on
<span class="font-extrabold text-blue-600">beating</span>
and
<span class="font-extrabold text-blue-600">leaving</span> them
in the street for maximum experience gains. Experience is
based on the target's level, not their stats.
<span class="font-sans text-blue-300">
<a
class="font-extrabold text-blue-400 hover:text-blue-300"
href="https://tc-essentials.oran.pw/docs/prologue/level15"
target="_blank"
rel="noopener noreferrer"
>Continue reading</a
></span
>
</p>
</div>
</h3>
<div
class="py-4 mx-auto max-w-4xl flex justify-center items-center flex-wrap"
>
<form class="mt-6 sm:flex sm:items-center">
<label for="api-key" class="sr-only">API key</label>
<div class="grid grid-cols-1 sm:flex-auto px-2">
<input
type="text"
name="api-key"
id="api-key"
class="peer relative col-start-1 row-start-1 border-0 bg-transparent text-gray-900 dark:text-gray-300 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6 w-72 h-10 px-4 py-2"
placeholder="API key"
autocomplete="on"
/>
<div
class="col-start-1 col-end-3 row-start-1 rounded-md shadow-sm ring-1 ring-inset ring-gray-300 peer-focus:ring-2 peer-focus:ring-blue-600"
aria-hidden="true"
></div>
<div class="col-start-2 row-start-1 flex items-center">
<span
class="h-4 w-px flex-none bg-gray-200"
aria-hidden="true"
></span>
<label for="list-select" class="sr-only">List select</label>
<select
id="list-select"
name="list-select"
class="rounded-md border-0 bg-transparent dark:bg-gray-900 py-1.5 pl-4 mr-1 pr-7 text-gray-900 dark:text-gray-300 focus:ring-2 focus:ring-inset focus:ring-blue-600 sm:text-sm sm:leading-6"
></select>
</div>
</div>
<div class="mt-3 sm:ml-4 sm:mt-0 sm:flex-shrink-0">
<button
type="submit"
id="fetch-button"
class="block w-full rounded-md bg-blue-600 text-center text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600 h-10 px-4 py-2"
onclick="fetchData(); return false;"
>
Fetch
</button>
</div>
</form>
</div>
<div
class="flex flex-col items-center space-y-4 dark:text-gray-400"
>
<p
id="api-message"
class="text-xs font-medium tracking-wider max-w-2xl mx-auto"
>
API key missing? Don't worry, click
<a
href="https://www.torn.com/preferences.php#tab=api?&step=addNewKey&title=baldrlist&type=1"
target="_blank"
class="font-extrabold text-blue-400 hover:text-blue-300 underline"
>here</a
>
and we'll hook you up with one – easy peasy lemon squeezy!
</p>
<div
id="loading-indicator"
class="fixed inset-0 flex items-center justify-center hidden"
>
<div
class="w-16 h-16 border-t-4 border-blue-600 border-solid rounded-full spin"
></div>
</div>
<div
id="data-table"
class="py-4 px-4 sm:px-6 lg:px-8 text-left hidden"
>
<div
class="-mx-4 mt-10 ring-1 ring-gray-300 sm:mx-0 sm:rounded-lg"
>
<div class="table-container overflow-x-auto w-full">
<table
class="table-fixed max-w-full min-w-full divide-y divide-gray-300"
>
<thead>
<tr>
<th
scope="col"
class="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 dark:text-gray-300 sm:pl-6"
>
Player
</th>
<th
scope="col"
class="hidden px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-300 lg:table-cell"
>
Level
</th>
<th
scope="col"
class="hidden px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-300 lg:table-cell"
>
Total
</th>
<th
scope="col"
class="hidden px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-300 lg:table-cell"
>
Strength
</th>
<th
scope="col"
class="hidden px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-300 lg:table-cell"
>
Defense
</th>
<th
scope="col"
class="hidden px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-300 lg:table-cell"
>
Speed
</th>
<th
scope="col"
class="hidden px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-300 lg:table-cell"
>
Dexterity
</th>
<th
scope="col"
class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-300"
>
Status
</th>
<th
scope="col"
class="relative py-3.5 pl-3 pr-4 sm:pr-6"
>
<span class="sr-only">Attack</span>
</th>
</tr>
</thead>
<tbody id="table-body"></tbody>
</table>
<p
id="no-data-message"
class="hidden px-3 py-3.5 text-sm text-gray-400 border-t border-gray-200"
>
No data available.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer mt-auto px-4 sm:px-6 lg:px-8 text-center">
<p class="text-sm font-medium tracking-wider max-w-2xl mx-auto">
The List is created and actively maintained by
<a
href="https://www.torn.com/profiles.php?XID=1847600"
class="font-extrabold text-blue-400 hover:text-blue-300"
>Baldr [1847600]</a
>, the code was crafted with love and fueled by countless cups of
coffee, courtesy of
<a
href="https://www.torn.com/profiles.php?XID=1778676"
class="font-extrabold text-blue-400 hover:text-blue-300"
>oraN [1778676]</a
>
and
<a
href="https://www.torn.com/profiles.php?XID=2914212"
class="font-extrabold text-blue-400 hover:text-blue-300"
>Lefu [2914212]</a
>
with contributions from
<a
href="https://www.torn.com/profiles.php?XID=2944599"
class="font-extrabold text-blue-400 hover:text-blue-300"
>Herohtar [2944599]</a
>.
</p>
<p class="py-8 text-sm font-medium tracking-wider max-w-2xl mx-auto">
You can find this project's source code on
<a
href="https://github.com/oranweb/tc-baldrs-levelling-list"
target="_blank"
class="text-blue-400 hover:text-blue-300"
>GitHub</a
>. Your feedback is appreciated -
<a
href="https://www.torn.com/forums.php#/p=threads&f=67&t=16328038"
target="_blank"
class="text-blue-400 hover:text-blue-300"
>please feel free to leave your comments</a
>.
<a>
P.S. Luke is the best
</a>
</p>
</div>
</div>
</body>
</html>