-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
376 lines (356 loc) · 15.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<title>Saschahi's Public Project-T Shop Addon Pricelist</title>
<script type="text/javascript">
const itemListURL = "https://raw.githubusercontent.com/saschahi/TerrariaList/master/ItemList.json";
const NPCListURL = "https://raw.githubusercontent.com/saschahi/TerrariaList/master/NPCList.json";
const BuffListURL = "https://raw.githubusercontent.com/saschahi/TerrariaList/master/BuffList.json";
</script>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="#">Saschahi</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.twitch.tv/Saschahi">My Stream</a>
</li>
</ul>
</div>
</nav>
<main role="main">
<div class="jumbotron">
<div class="container">
<h1 class="display-3">Project-T Shop Addon</h1>
<p>Project-T Shop Addon is an Addon to Project-T made by Saschahi to give viewers the ability to Buy NPCs and Items in Streamers Playthroughs.</p>
<ul class="list-group">
<li class="list-group-item">!bal - check yourbalance </li>
<li class="list-group-item">!buy - Syntax: !buy zombie 6 - buy an NPC or Item</li>
<li class="list-group-item">!purchaselist - Brings you here</li>
<li class="list-group-item">BEWARE! Some NPCs can only be spawned under certain conditions!</li>
<li class="list-group-item">If it confirms your Purchase but the monster didn't appear, the conditions haven't been met!</li>
</ul>
</div>
</div>
<div ng-app='tabs' ng-controller='tabCtrl'>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class='tabs'>
<form>
<div class="form-group">
<button class="btn btn-success" ng-class="{'active': (selected == '1')}" ng-click='selected=1'>
Items
</button>
<button class="btn btn-success" ng-class="{'active': (selected == '2')}" ng-click='selected=2'>
NPCs
</button>
<button class="btn btn-success" ng-class="{'active': (selected == '3')}" ng-click='selected=3'>
Buffs
</button>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label" for="">Price Between:</label>
<div class="col-sm-2">
<input type="number" class="form-control" id="item-price-min" placeholder="0">
</div>
<div class="col-sm-2">
<input type="number" class="form-control" id="item-price-max" placeholder="9999999">
</div>
</div>
</form>
</div>
</div>
</div>
<div class="row" ng-show='selected == 1'>
<div class="col-md-12">
<div id="Items">
<div class="input-group input-group-sm mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-sm">Search</span>
</div>
<input type="text" class="form-control search" aria-label="Search" aria-describedby="inputGroup-sizing-sm">
</div>
<p>
<button type="button" class="btn btn-primary sort" data-sort="Name">
Sort by Name
</button>
<button type="button" class="btn btn-primary sort" data-sort="Price">
Sort by Price
</button>
<button type="button" class="btn btn-primary sort" data-sort="Mod">
Sort by Mod
</button>
</p>
<table class="table Items">
<tr>
<th scope="col" class="sort" data-sort="Name">Name</th>
<th scope="col" class="sort" data-sort="Price">Price</th>
<th scope="col" class="sort" data-sort="Mod">Mod</th>
</tr>
<tbody class="list">
</tbody>
</table>
</div>
</div>
</div>
<div class="row" ng-show='selected == 2'>
<div class="col-md-12">
<div id="NPCs">
<div class="input-group input-group-sm mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-sm">Search</span>
</div>
<input type="text" class="form-control search" aria-label="Search" aria-describedby="inputGroup-sizing-sm">
</div>
<p>
<button type="button" class="btn btn-primary sort" data-sort="Name">
Sort by Name
</button>
<button type="button" class="btn btn-primary sort" data-sort="Price">
Sort by Price
</button>
<button type="button" class="btn btn-primary sort" data-sort="Mod">
Sort by Mod
</button>
</p>
<table class="table NPCs">
<tr>
<th scope="col" class="sort" data-sort="Name">Name</th>
<th scope="col" class="sort" data-sort="Price">Price</th>
<th scope="col" class="sort" data-sort="Mod">Mod</th>
</tr>
<tbody class="list">
</tbody>
</table>
</div>
</div>
</div>
<div class="row" ng-show='selected == 3'>
<div class="col-md-12">
<div id="Buffs">
<div class="input-group input-group-sm mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-sm">Search</span>
</div>
<input type="text" class="form-control search" aria-label="Search" aria-describedby="inputGroup-sizing-sm">
</div>
<p>
<button type="button" class="btn btn-primary sort" data-sort="Name">
Sort by Name
</button>
<button type="button" class="btn btn-primary sort" data-sort="Price">
Sort by Price per Second
</button>
<button type="button" class="btn btn-primary sort" data-sort="Mod">
Sort by Mod
</button>
</p>
<table class="table Buffs">
<tr>
<th scope="col" class="sort" data-sort="Name">Name</th>
<th scope="col" class="sort" data-sort="Price">Price</th>
<th scope="col" class="sort" data-sort="Mod">Mod</th>
</tr>
<tbody class="list">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-6">
</div>
<div class="col-md-6">
</div>
<div class="col-md-6">
</div>
</div>
<hr>
</div>
</main>
<footer class="text-muted">
<div class="container">
<p class="float-right">
<a href="#">Back to top</a>
</p>
<p>Album example is © Bootstrap, but please download and customize it for yourself!</p>
<p>New to Bootstrap? <a href="../../">Visit the homepage</a> or read our <a href="../../getting-started/">getting started guide</a>.</p>
</div>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://embed.twitch.tv/embed/v1.js"></script>
<style>
.sort:after {
display: inline-block;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid transparent;
content: "";
position: relative;
top: -10px;
right: -5px;
}
.sort.asc:after {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #fff;
content: "";
position: relative;
top: 4px;
right: -5px;
}
.sort.desc:after {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #fff;
content: "";
position: relative;
top: -4px;
right: -5px;
}
</style>
<script type="text/javascript">
let itemList = null;
$.getJSON(itemListURL, function(data)
{
var options =
{
valueNames: ['Name', 'Price', 'Mod'],
item: '<tr><td class="Name" scope="row"></td><td class="Price"></td><td class="Mod"></td></tr>'
};
var itemData = [];
$.each(data.List, function(index, value)
{
if (value["Price"] > 0)
{
itemData.push(value);
}
});
itemList = new List('Items', options, itemData);
});
let NPCList = null;
$.getJSON(NPCListURL, function(data)
{
var options =
{
valueNames: ['Name', 'Price', 'Mod'],
item: '<tr><td class="Name" scope="row"></td><td class="Price"></td><td class="Mod"></td></tr>'
};
var NPCData = [];
$.each(data.List, function(index, value)
{
if (value["Price"] > 0)
{
NPCData.push(value);
}
});
NPCList = new List('NPCs', options, NPCData);
});
let BuffList = null;
$.getJSON(BuffListURL, function(data)
{
var options =
{
valueNames: ['Name', 'Price', 'Mod'],
item: '<tr><td class="Name" scope="row"></td><td class="Price"></td><td class="Mod"></td></tr>'
};
var buffData = [];
$.each(data.List, function(index, value)
{
if (value["Price"] > 0)
{
buffData.push(value);
}
});
BuffList = new List('Buffs', options, buffData);
});
$("#item-price-min").keyup(function()
{
updateItemFilter();
});
$("#item-price-max").keyup(function()
{
updateItemFilter();
});
function updateItemFilter()
{
var minPrice = $("#item-price-min").val();
var maxPrice = $("#item-price-max").val();
itemList.filter(function(item)
{
var allow = true;
if (minPrice != "" && parseInt(item.values().price) < minPrice)
{
allow = false;
}
if (maxPrice != "" && parseInt(item.values().price) > maxPrice)
{
allow = false;
}
return allow;
});
NPCList.filter(function(item)
{
var allow = true;
if (minPrice != "" && parseInt(item.values().price) < minPrice)
{
allow = false;
}
if (maxPrice != "" && parseInt(item.values().price) > maxPrice)
{
allow = false;
}
return allow;
});
BuffList.filter(function(item)
{
var allow = true;
if (minPrice != "" && parseInt(item.values().price) < minPrice)
{
allow = false;
}
if (maxPrice != "" && parseInt(item.values().price) > maxPrice)
{
allow = false;
}
return allow;
});
}
</script>
<script type="text/javascript">
var tabs = angular.module('tabs', [])
.controller('tabCtrl', function($scope) {
$scope.selected = "1";
});
</script>
</body>
</html>