-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
246 lines (245 loc) · 14.4 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
<!doctype html>
<!--
This page is shown when the extension button is clicked, because the
"browser_action" field in manifest.json contains the "default_popup" key with
value "popup.html".
-->
<html>
<head>
<title>KOA Resource Companion</title>
<!--
- JavaScript and HTML must be in separate files: see our Content Security
- Policy documentation[1] for details and explanation.
-
- [1]: https://developer.chrome.com/extensions/contentSecurityPolicy
-->
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/globalfunction.js"></script>
<script src="js/upgrades.js"></script>
<script src="js/prestige.js"></script>
<script src="js/food.js"></script>
<script src="js/wood.js"></script>
<script src="js/iron.js"></script>
<script src="js/silver.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<h1>King of Avalon Companion!</h1>
<div id="container">
<div id="selection">
<!--
<input type="radio" name="calcrss" id="calcradio"/> Calculate RSS
<input type="radio" name="calcrss" id="lookupradio"/> Lookup Upgrades<br/>-->
<ul id="picker">
<li class="top" id="calcradio">Calculate RSS</li>
<li class="top" id="lookupradio">Check Upgrades</li>
<li class="top" id="prestigebtn">Check Prestige</li>
<!--<li class="">TBA</li>-->
</ul>
<div id="clearfloat"></div>
<hr/>
<!-- THIS DIV HERE IS USED TO CALCULATE RESOURCES AND SHOULD ONLY APPEAR
ONCE THE "CALCULATE RSS" RADIO BUTTON HAS BEEN SELECTED -->
<div id="calcrss">
<center><span>Select your resourse!</span></center>
<center>
<select id="rssdropdown">
<option selected disabled hidden value=''></option>
<option value="food">Food</option>
<option value="wood">Wood</option>
<option value="iron">Iron</option>
<option value="silver">Silver</option>
</select>
</center>
<hr />
<div id="food" class="resource" style="display:none">
<span>Enter Food Denominations</span><hr />
<div><span class='amount'>1000 x </span><input type="number" class="amountinput" id="food1" value="0"/><span id="f1" class="totalmount"></span></div>
<div><span class='amount'>3000 x </span><input type="number" class="amountinput" id="food2" value="0"/><span id="f2" class="totalmount"></span></div>
<div><span class='amount'>5000 x </span><input type="number" class="amountinput" id="food3" value="0"/><span id="f3" class="totalmount"></span></div>
<div><span class='amount'>10,000 x </span><input type="number" class="amountinput" id="food4" value="0"/><span id="f4" class="totalmount"></span></div>
<div><span class='amount'>30,000 x </span><input type="number" class="amountinput" id="food5" value="0"/><span id="f5" class="totalmount"></span></div>
<div><span class='amount'>50,000 x </span><input type="number" class="amountinput" id="food6" value="0"/><span id="f6" class="totalmount"></span></div>
<div><span class='amount'>150,000 x </span><input type="number" class="amountinput" id="food7" value="0"/><span id="f7" class="totalmount"></span></div>
<div><span class='amount'>500,000 x </span><input type="number" class="amountinput" id="food8" value="0"/><span id="f8" class="totalmount"></span></div>
<div><span class='amount'>1,500,000 x </span><input type="number" class="amountinput" id="food9" value="0"/><span id="f9" class="totalmount"></span></div><hr />
<div><span class="amountinput">Total : </span><span id="ft" class="totalmount"></span></div><hr />
</div>
<div id="wood" class="resource" style="display:none">
<span>Enter Wood Denominations</span><hr />
<div><span class='amount'>1000 x </span><input type="number" class="amountinput" id="wood1" value="0"/><span id="w1" class="totalmount"></span></div>
<div><span class='amount'>3000 x </span><input type="number" class="amountinput" id="wood2" value="0"/><span id="w2" class="totalmount"></span></div>
<div><span class='amount'>5000 x </span><input type="number" class="amountinput" id="wood3" value="0"/><span id="w3" class="totalmount"></span></div>
<div><span class='amount'>10,000 x </span><input type="number" class="amountinput" id="wood4" value="0"/><span id="w4" class="totalmount"></span></div>
<div><span class='amount'>30,000 x </span><input type="number" class="amountinput" id="wood5" value="0"/><span id="w5" class="totalmount"></span></div>
<div><span class='amount'>50,000 x </span><input type="number" class="amountinput" id="wood6" value="0"/><span id="w6" class="totalmount"></span></div>
<div><span class='amount'>150,000 x </span><input type="number" class="amountinput" id="wood7" value="0"/><span id="w7" class="totalmount"></span></div>
<div><span class='amount'>500,000 x </span><input type="number" class="amountinput" id="wood8" value="0"/><span id="w8" class="totalmount"></span></div>
<div><span class='amount'>1,500,000 x </span><input type="number" class="amountinput" id="wood9" value="0"/><span id="w9" class="totalmount"></span></div><hr />
<div><span class="amountinput">Total: </span><span id="wt" class="totalmount"></span></div><hr />
</div>
<div id="iron" class="resource" style="display:none">
<span>Enter Iron Denominations</span><hr />
<div><span class='amount'>200 x </span><input type="number" class="amountinput" id="iron1" value="0"/><span id="i1" class="totalmount"></span></div>
<div><span class='amount'>600 x </span><input type="number" class="amountinput" id="iron2" value="0"/><span id="i2" class="totalmount"></span></div>
<div><span class='amount'>1000 x </span><input type="number" class="amountinput" id="iron3" value="0"/><span id="i3" class="totalmount"></span></div>
<div><span class='amount'>2000 x </span><input type="number" class="amountinput" id="iron4" value="0"/><span id="i4" class="totalmount"></span></div>
<div><span class='amount'>6000 x </span><input type="number" class="amountinput" id="iron5" value="0"/><span id="i5" class="totalmount"></span></div>
<div><span class='amount'>10,000 x </span><input type="number" class="amountinput" id="iron6" value="0"/><span id="i6" class="totalmount"></span></div>
<div><span class='amount'>30,000 x </span><input type="number" class="amountinput" id="iron7" value="0"/><span id="i7" class="totalmount"></span></div>
<div><span class='amount'>100,000 x </span><input type="number" class="amountinput" id="iron8" value="0"/><span id="i8" class="totalmount"></span></div>
<div><span class='amount'>300,000 x </span><input type="number" class="amountinput" id="iron9" value="0"/><span id="i9" class="totalmount"></span></div><hr />
<div><span class="amountinput">Total: </span><span id="it" class="totalmount"></span></div><hr />
</div>
<div id="silver" class="resource" style="display:none">
<span>Enter Silver Denominations</span><hr />
<div><span class='amount'>50 x </span><input type="number" class="amountinput" id="silver1" value="0"/><span id="s1" class="totalmount"></span></div>
<div><span class='amount'>150 x </span><input type="number" class="amountinput" id="silver2" value="0"/><span id="s2" class="totalmount"></span></div>
<div><span class='amount'>250 x </span><input type="number" class="amountinput" id="silver3" value="0"/><span id="s3" class="totalmount"></span></div>
<div><span class='amount'>500 x </span><input type="number" class="amountinput" id="silver4" value="0"/><span id="s4" class="totalmount"></span></div>
<div><span class='amount'>1500 x </span><input type="number" class="amountinput" id="silver5" value="0"/><span id="s5" class="totalmount"></span></div>
<div><span class='amount'>2500 x </span><input type="number" class="amountinput" id="silver6" value="0"/><span id="s6" class="totalmount"></span></div>
<div><span class='amount'>7500 x </span><input type="number" class="amountinput" id="silver7" value="0"/><span id="s7" class="totalmount"></span></div>
<div><span class='amount'>25,000 x </span><input type="number" class="amountinput" id="silver8" value="0"/><span id="s8" class="totalmount"></span></div>
<div><span class='amount'>75,000 x </span><input type="number" class="amountinput" id="silver9" value="0"/><span id="s9" class="totalmount"></span></div><hr />
<div><span class="amountinput">Total: </span><span id="st" class="totalmount"></span></div><hr />
</div>
</div>
<!-- THIS DIV HERE IS USED TO CALCULATE RESOURCES AND SHOULD ONLY APPEAR
ONCE THE "CHECK UPGRADES" RADIO BUTTON HAS BEEN SELECTED -->
<div id="lookupupgrades">
<select id="building_type">
<option value="Barracks">Barracks</option>
<option value="Dragon Lair">Dragon Lair</option>
<option value="Embassy">Embassy</option>
<option value="Farm">Farm</option>
<option value="Forge">Forge</option>
<option value="Hall of War">Hall of War</option>
<option value="Hospital">Hospital</option>
<option value="Iron Mine">Iron Mine</option>
<option value="Military Tent">Military Tent</option>
<option value="Range">Range</option>
<option value="Saw Mill">Saw Mill</option>
<option value="Siege Workshop">Siege Workshop</option>
<option value="Silver Mine">Silver Mine</option>
<option value="Stables">Stables</option>
<option value="Storehouse">Storehouse</option>
<option value="Stronghold">Stronghold</option>
<option value="Trading Post">Trading Post</option>
<option value="Trap Factory">Trap Factory</option>
<option value="University">University</option>
<option value="Wall">Walls</option>
<option value="Watchtower">Watchtower</option>
<option value="Wishing Well">Wishing Well</option>
</select>
<select id="building_level">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
</select><br/>
<select id="isuelt">
<option value="none">No Isuelt Gear</option>
<option value="orange">Orange Isuelt</option>
<option value="purple">Purple Isuelt</option>
<option value="blue">Blue Isuelt</option>
</select>
<button id="get-data">Get Data</button>
<hr/>
<div id="show-data"></div>
</div>
<!-- THIS DIV HERE IS USED TO CALCULATE RESOURCES AND SHOULD ONLY APPEAR
ONCE THE "CHECK PRESTIGE" RADIO BUTTON HAS BEEN SELECTED -->
<div id="lookupprestige">
<select id="building_type_p">
<option value="Barracks">Barracks</option>
<option value="Dragon Lair">Dragon Lair</option>
<option value="Embassy">Embassy</option>
<option value="Forge">Forge</option>
<option value="Hall of War">Hall of War</option>
<option value="Hospital">Hospital</option>
<option value="Military Tent">Military Tent</option>
<option value="Range">Range</option>
<option value="Siege Workshop">Siege Workshop</option>
<option value="Stables">Stables</option>
<option value="Storehouse">Storehouse</option>
<option value="Stronghold">Stronghold</option>
<option value="Trading Post">Trading Post</option>
<option value="Trap Factory">Trap Factory</option>
<option value="University">University</option>
<option value="Wall">Walls</option>
<option value="Watchtower">Watchtower</option>
<option value="Wishing Well">Wishing Well</option>
</select>
<select id="building_level_p">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
</select>
<br/>
<button id="get-p">Get Data</button>
<hr/>
<div id="show-p"></div>
</div>
</div>
</div>
</body>
</html>