This repository has been archived by the owner on Sep 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
187 lines (180 loc) · 7.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="Warcraft 3 Gem TD custom map helper" />
<meta name="author" content="Petar Petrov" />
<title>Warcraft 3 Gem TD Helper</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
<link rel="stylesheet" href="dist/bundle.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js"
integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.0/knockout-min.js"
integrity="sha256-Tjl7WVgF1hgGMgUKZZfzmxOrtoSf8qltZ9wMujjGNQk=" crossorigin="anonymous"></script>
<script src="dist/bundle.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top justify-content-between">
<div>
<a class="navbar-brand" href="#">Warcraft 3 Gem TD Helper</a>
<a class="badge badge-info" href="https://github.com/petarpetrovt/gemtd-helper" target="_blank">alpha</a>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#toggleNavbar"
aria-controls="toggleNavbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div>
<a class="navbar-brand" target="_blank" data-bind="text: dataTitle, attr: { href: repositoryUrl }"></a>
<a class="badge badge-info" target="_blank" data-bind="text: versionTitle, attr: { href: versionUrl }"></a>
</div>
</nav>
<main role="main" class="container" style="margin-top: 80px;">
<div class="row" style="display: none;" data-bind="visible: true">
<div class="col-md-6">
<table class="table table-hover table-bordered table-striped table-dark table-sm">
<caption style="caption-side: top; height: 200px;">
<h3>Gems</h3>
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active"
data-bind="click: onFilterSubTypeClicked.bind($data, null)">
<input type="radio" name="subType" autocomplete="off" checked>
ALL
</label>
<label class="btn btn-secondary"
data-bind="click: onFilterSubTypeClicked.bind($data, GemTDHelper.v154.GemSubType.BASIC)">
<input type="radio" name="subType" autocomplete="off">
BASIC
</label>
<label class="btn btn-secondary"
data-bind="click: onFilterSubTypeClicked.bind($data, GemTDHelper.v154.GemSubType.SPECIAL)">
<input type="radio" name="subType" autocomplete="off">
SPECIAL
</label>
<label class="btn btn-secondary"
data-bind="click: onFilterSubTypeClicked.bind($data, GemTDHelper.v154.GemSubType.SLATE)">
<input type="radio" name="subType" autocomplete="off">
SLATE
</label>
</div>
<br />
<br />
<input class="form-control" type="text" placeholder="Search by name..."
data-bind="textInput: searchValue">
</caption>
<colgroup>
<col style="width: auto;" />
<col style="width: 50%;" />
<col style="width: 50%;" />
</colgroup>
<thead>
<tr>
<th style=" min-width: 40px;"></th>
<th>Name</th>
<th>Type</th>
</tr>
</thead>
<tbody data-bind="foreach: items">
<tr class="tower-row"
data-bind="click: $parent.onItemClicked.bind($parent), class: isSelected ? 'active' : ''">
<td>
<img data-bind="attr:{src: url, alt: type}" class="tower-image" />
</td>
<td data-bind="text: typeName"></td>
<td data-bind="text: subTypeName"></td>
</tr>
</tbody>
<tbody data-bind="visible: items().length <= 0">
<tr>
<td colspan="3">
No gems.
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6">
<table class="table table-hover table-bordered table-striped table-dark table-sm">
<caption style="caption-side: top; height: 200px;">
<h3 data-bind="text: selectedItemValueTitle"></h3>
<div class="btn-group btn-group-toggle" data-toggle="buttons" data-bind="visible: levelVisible">
<label class="btn btn-secondary"
data-bind="click: onFilterLevelClicked.bind($data, GemTDHelper.v154.GemLevel.CHIPPED)">
<input type="radio" name="level" autocomplete="off" checked>
CHIPPED
</label>
<label class="btn btn-secondary"
data-bind="click: onFilterLevelClicked.bind($data, GemTDHelper.v154.GemLevel.FLAWED)">
<input type="radio" name="level" autocomplete="off" checked>
FLAWED
</label>
<label class="btn btn-secondary active"
data-bind="click: onFilterLevelClicked.bind($data, GemTDHelper.v154.GemLevel.NORMAL)">
<input type="radio" name="level" autocomplete="off" checked>
NORMAL
</label>
<label class="btn btn-secondary"
data-bind="click: onFilterLevelClicked.bind($data, GemTDHelper.v154.GemLevel.FLAWLESS)">
<input type="radio" name="level" autocomplete="off" checked>
FLAWLESS
</label>
<label class="btn btn-secondary"
data-bind="click: onFilterLevelClicked.bind($data, GemTDHelper.v154.GemLevel.PERFECT)">
<input type="radio" name="level" autocomplete="off" checked>
PERFECT
</label>
<label class="btn btn-secondary"
data-bind="click: onFilterLevelClicked.bind($data, GemTDHelper.v154.GemLevel.GREAT)">
<input type="radio" name="level" autocomplete="off" checked>
GREAT
</label>
</div>
</caption>
<colgroup>
<col style="width: auto;" />
<col style="width: 33%;" />
<col style="width: 33%;" />
<col style="width: 33%;" />
</colgroup>
<thead>
<tr>
<th style=" min-width: 40px;"></th>
<th>Name</th>
<th>Type</th>
<th>Level</th>
</tr>
</thead>
<tbody data-bind="foreach: requirements">
<tr class="tower-row" data-bind="hidden: isSeparator">
<td>
<img data-bind="attr:{src: url, alt: type}" class="tower-image" />
</td>
<td data-bind="text: typeName"></td>
<td data-bind="text: subTypeName"></td>
<td data-bind="text: levelName"></td>
</tr>
<tr class="tower-row" data-bind="visible: isSeparator">
<td colspan="4"></td>
</tr>
</tbody>
<tbody data-bind="visible: requirements().length <= 0">
<tr>
<td colspan="4">
No requirements.
</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</body>
</html>