-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
217 lines (172 loc) · 7.24 KB
/
index.html
File metadata and controls
217 lines (172 loc) · 7.24 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>GW2 Tools</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/cover.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Frans' GW2 Tools</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">TP Data</a></li>
<li><a href="#about">Timers</a></li>
<li><a href="#contact">Links</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div>Trading post data, updated every minute.</div>
<div class="tabpanel" role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#Precursors" aria-controls="Precursors" role="tab" data-toggle="tab">Precursors</a></li>
<li role="presentation"><a href="#Legendaries" aria-controls="Legendaries" role="tab" data-toggle="tab">Legendaries</a></li>
<li role="presentation"><a href="#T6-Materials" aria-controls="T6-Materials" role="tab" data-toggle="tab">T6 Fine & Rare Mats</a></li>
<li role="presentation"><a href="#Ascended-Other-mats" aria-controls="Ascended-Other-mats" role="tab" data-toggle="tab">Ascended & Other mats</a></li>
<li role="presentation"><a href="#Custom" aria-controls="Custom" role="tab" data-toggle="tab">Custom</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="Precursors">
<table class="table" id="Precursors-table">
<tr id="1">
<td>#</td>
<td>Name</td>
<td>Buy Order</td>
<td>Demand</td>
<td>Sell Price</td>
<td>Supply</td>
<td>Links</td>
</tr>
</table>
</div>
<div role="tabpanel" class="tab-pane" id="Legendaries">
<table class="table" id="Legendaries-table">
<tr id="1">
<td>#</td>
<td>Name</td>
<td>Buy Order</td>
<td>Demand</td>
<td>Sell Price</td>
<td>Supply</td>
<td>Links</td>
</tr>
</table>
</div>
<div role="tabpanel" class="tab-pane" id="T6-Materials">
<table class="table" id="T6-Materials-table">
<tr id="1">
<td>#</td>
<td>Name</td>
<td>Buy Order</td>
<td>Demand</td>
<td>Sell Price</td>
<td>Supply</td>
<td>Links</td>
</tr>
</table>
</div>
<div role="tabpanel" class="tab-pane" id="Ascended-Other-mats">
<table class="table" id="Ascended-Other-mats-table">
<tr id="1">
<td>#</td>
<td>Name</td>
<td>Buy Order</td>
<td>Demand</td>
<td>Sell Price</td>
<td>Supply</td>
<td>Links</td>
</tr>
</table>
</div>
<div role="tabpanel" class="tab-pane" id="Custom">
<table class="table" id="Custom-table">
<tr id="1">
<td>#</td>
<td>Name</td>
<td>Buy Order</td>
<td>Demand</td>
<td>Sell Price</td>
<td>Supply</td>
<td>Links</td>
</tr>
</table>
<form id="AddItemForm" class="form-inline">
<div class="form-group">
<label for="ItemID">Item ID</label>
<input type="text" class="form-control" id="AddItemForm-ItemID" placeholder="19697">
</div>
<button type="submit" class="btn btn-default">Add Item</button>
</form>
<p>You can find the ID of items by looking them up on <a href="http://www.gw2spidy.com" target="blank">GW2Spidy</a>. The Item ID is the number at the end of the URL for your item.</p>
</div>
</div>
</div>
<div class="mastfoot">
<div class="inner">
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/gw-api.js"></script>
<Script>
$('table').on('click', 'td', function(){
if(this.className != "itemLinks"){
console.log(this.className);
}
});
//$("ite").on('click', 'tr', function(){
// console.log(this.id);
// //$('#myModal').modal('show');
//});
//$('#myModal').modal('show');
var items = [];
items[0] = "Precursors";
items[1] = "29166,29167,29168,29169,29170,29171,29172,29173,29174,29175,29176,29177,29178,29179,29180,29181,29182,29183,29184,29185";
items[2] = "Legendaries";
items[3] = "30684,30685,30686,30687,30688,30689,30690,30691,30692,30693,30694,30695,30696,30697,30698,30699,30700,30701,30702,30703,30704";
items[4] = "T6-Materials";
items[5] = "24358,24295,24351,24277,24357,24289,24300,24283,37897,44941,24330,24325,24305,24340,24320,24315,24310,44941,49782,19721";
items[6] = "Ascended-Other-mats"
items[7] = "46736,46738,46739,46741,66933,38291,36038,36041,47909,67377,38134";
items[8] = "Custom";
items[9] = "19702,29166,29184,19699,19698,19703,19682,19683,19687,19686";
$( "#AddItemForm" ).submit(function( event ) {
//alert( "Handler for .submit() called." );
//var table = document.getElementById("Custom-table");
//var row = table.insertRow(-1);
//items[9] += "," + document.getElementById("AddItemForm-ItemID").value;
if ( (document.getElementById("AddItemForm-ItemID").value+"").match(/^\d+$/) ) {
var params = "ids=" + document.getElementById("AddItemForm-ItemID").value;
get_tp_items(params, process_item_info, "Custom");
}else{
alert("please input a whole number.");
}
//onsole.log(items[9]);
event.preventDefault();
});
get_item_info(items);
</script>
</body>
</html>