forked from Slimmmo/Slimmmo.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
515 lines (515 loc) · 30.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
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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/png" href="icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bonusstyle.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67150336-1', 'auto');
ga('send', 'pageview');
</script>
<script src="js/angular.min.js"></script>
<script src="js/angular-animate.min.js"></script>
<script src="js/ui-bootstrap-custom-tpls-0.14.3.min.js"></script>
<script src="js/main.js"></script>
<title>AdVenture Capitalist Calculator</title>
<base href="/">
</head>
<body data-ng-app="advApp">
<div class="container-fluid col-xs-12" data-ng-controller="advController">
<div class="page-header">
<div class="row">
<div class="col-sm-8 text-center-xs slim-bottom-margin">
<h1>AdVenture Capitalist Calculator</h1> v0.1 - <a href="https://www.reddit.com/r/AdventureCapitalist/comments/59knd5/gates_of_heck_calculator_updated/">Feedback</a>
</div>
<div class="col-sm-4 text-right text-center-xs">
<div class="input-group inline-block">
<label class="input-group-btn reset-width">
<span class="btn btn-primary">
Load a Saved State<input type="file" id="fileInput" style="display: none;">
</span>
</label>
<div class="input-group-btn reset-width">
<button type="button" class="btn btn-primary" data-ng-click="export()">Save State</button>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<ul class="nav nav-tabs nav-justified">
<li role="presentation" data-ng-class="{active: isWorld('earth')}"><a data-ng-click="setWorld('earth')">Earth</a></li>
<li role="presentation" data-ng-class="{active: isWorld('moon')}"><a data-ng-click="setWorld('moon')">Moon</a></li>
<li role="presentation" data-ng-class="{active: isWorld('mars')}"><a data-ng-click="setWorld('mars')">Mars</a></li>
<li role="presentation" data-ng-class="{active: isEvent()}"><a data-ng-click="setWorld(lastEvent)">{{getEventName(lastEvent)}}</a></li>
<li role="presentation"><a data-ng-click="showEventsClick()">Events</a></li>
</ul>
</div>
<div class="col-xs-12 bottom-margin">
<ul class="nav nav-pills" data-ng-if="showEvents">
<li data-ng-repeat="ev in events track by $index" role="presentation" data-ng-class="{active: ev[0] == lastEvent}"><a data-ng-click="setWorld(ev[0])">{{::ev[1]}}</a></li>
</ul>
</div>
</div>
<div>
<div class="row">
<div class="col-sm-8 slim-bottom-margin text-center-xs">
<div class="form-inline">
<input type="number" class="form-control" min="0" data-ng-model="ref.viewNumAngels" data-ng-blur="updateAngels()" step="0.001" required> <input type="text" class="form-control illions" data-ng-model="ref.illions" uib-typeahead="ill for ill in illionsArray | filter:$viewValue | limitTo:8" placeholder="*illions" data-ng-blur="updateAngels()"> # of Angels
</div>
</div>
<div class="col-sm-4 text-center-xs text-right">
<div class="btn-group" role="group">
<button type="button" class="btn btn-primary" data-ng-click="resetPlanet(ref)">Reset Planet</button>
<button type="button" class="btn btn-primary" data-ng-click="fullyResetPlanet(ref)">Hard Reset Planet</button>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<refresher condition="calcToggle">
<table class="table table-striped table-hover table-bordered space_top">
<thead>
<tr>
<th>Type</th>
<th>Number</th>
<th data-ng-if="ref.hasMegaTickets"><div class="checkbox-inline"><label class="no-bottom-margin"><input type="checkbox" data-ng-model="selectAll[0]" data-ng-change="selectedAll(ref, 0)"> Mega Ticket</label></div></th>
<th>$ / Cycle</th>
<th>Cycle Time</th>
<th>$ / Second</th>
<th>% of Total $ / Second</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="inv in ref.investments track by $index">
<td>{{::inv[0]}}</td>
<td><input type="number" class="form-control" min="0" data-ng-model="inv[1]"></td>
<td data-ng-if="ref.hasMegaTickets"><input type="checkbox" class="form-control" data-ng-model="inv[2]"></td>
<td>${{::inv[3] | num:raw}}</td>
<td>{{::inv[4] | time:raw}}</td>
<td>${{::inv[5] | num:raw}}</td>
<td>{{::inv[6] | num:raw}}%</td>
</tr>
</tbody>
</table>
</refresher>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<uib-accordion close-others="false">
<uib-accordion-group is-open="accOpen[0]">
<uib-accordion-heading ng-click="accOpen[0] = !accOpen[0]">
<div class="clickable-panel">
Cost of Upgrades<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[0], 'fa-chevron-right': !accOpen[0]}"></span>
</div>
</uib-accordion-heading>
<refresher condition="calcToggle">
<table class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th>Type</th>
<th>$ Cost +1</th>
<th>Time Cost +1</th>
<th>$ Cost +10</th>
<th>Time Cost +10</th>
<th>$ Cost +Bonus</th>
<th>Time Cost +Bonus</th>
<th>$ Cost +All Bonuses</th>
<th>Time Cost +All Bonus</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="rUC in ref.upgradeCosts track by $index">
<td>{{::ref.investments[$index][0]}}</td>
<td>${{::rUC[0] | num:raw}}</td>
<td>{{::rUC[1] | time:raw}}</td>
<td>${{::rUC[2] | num:raw}}</td>
<td>{{::rUC[3] | time:raw}}</td>
<td>${{::rUC[4] | num:raw}}</td>
<td>{{::rUC[5] | time:raw}}</td>
<td>${{::rUC[6] | num:raw}}</td>
<td>{{::rUC[7] | time:raw}}</td>
</tr>
</tbody>
</table>
</refresher>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[1]">
<uib-accordion-heading ng-click="accOpen[1] = !accOpen[1]">
<div class="clickable-panel">
Cash Upgrades<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[1], 'fa-chevron-right': !accOpen[1]}"></span>
</div>
</uib-accordion-heading>
<div class="well">
<div class="row text-center">
<div class="form-inline col-md-3 col-md-offset-3">
<label><input type="checkbox" class="form-inline" data-ng-model="fillBefore[0]"> Buy All Before Selection (Inclusive)</label>
</div>
<div class="form-inline col-md-3">
<label><input type="checkbox" class="form-inline" data-ng-model="clearAfter[0]"> Clear All After Selection (Inclusive)</label>
</div>
</div>
</div>
<div class="multicolumn">
<refresher condition="calcToggle">
<div data-ng-repeat="cupg in ref.cashUpgrades track by $index"><label class="strike-when-checked"><input type="checkbox" class="form-inline" data-ng-model="cupg[2]" data-ng-change="checkCash(ref, $index)"> <span>{{::getNamedType(ref, cupg)}} (${{::cupg[0] | num:raw}})</span></label></div>
</refresher>
</div>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[2]">
<uib-accordion-heading ng-click="accOpen[2] = !accOpen[2]">
<div class="clickable-panel">
Angel Upgrades<i data-ng-if="ref.angelExclamation" class="fa fa-plus"></i><span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[2], 'fa-chevron-right': !accOpen[2]}"></span>
</div>
</uib-accordion-heading>
<div class="well">
<div class="row text-center">
<div class="form-inline col-md-3 col-md-offset-3">
<label><input type="checkbox" class="form-inline" data-ng-model="fillBefore[1]"> Buy All Before Selection (Inclusive)</label>
</div>
<div class="form-inline col-md-3">
<label><input type="checkbox" class="form-inline" data-ng-model="clearAfter[1]"> Clear All After Selection (Inclusive)</label>
</div>
</div>
</div>
<div class="multicolumn">
<refresher condition="calcToggle">
<div data-ng-repeat="aupg in ref.angelUpgrades track by $index"><label class="strike-when-checked"><input type="checkbox" class="form-inline" data-ng-model="aupg[3]" data-ng-change="checkAngel(ref, $index)"> <span>{{::getNamedType(ref, aupg)}} ({{::aupg[0] | num:raw}} AI)<i data-ng-if="aupg[2]" title="{{aupg[2] | percentage }} increase in $ / second" class="fa fa-plus"></i></span></label></div>
</refresher>
</div>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[3]">
<uib-accordion-heading ng-click="accOpen[3] = !accOpen[3]">
<div class="clickable-panel">
Managers<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[3], 'fa-chevron-right': !accOpen[3]}"></span>
</div>
</uib-accordion-heading>
<table class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th>Business</th>
<th data-ng-if="isWorld('earth')"><label><input type="checkbox" class="form-inline" data-ng-model="selectAll[1]" data-ng-change="selectedAll(ref, 1)"> 10% Off</label></th>
<th data-ng-if="isWorld('earth')"><label><input type="checkbox" class="form-inline" data-ng-model="selectAll[2]" data-ng-change="selectedAll(ref, 2)"> 99.999% Off</label></th>
<th data-ng-if="isWorld('moon')"><label><input type="checkbox" class="form-inline" data-ng-model="selectAll[3]" data-ng-change="selectedAll(ref, 3)"> 25% Off</label></th>
</tr>
</thead>
<tbody>
<refresher condition="calcToggle">
<tr data-ng-repeat="mupg in ref.managerUpgrades track by $index">
<td>{{::ref.investments[$index][0]}}</td>
<td data-ng-repeat="mtup in mupg track by $index">
<label class="strike-when-checked"><input type="checkbox" class="form-inline" data-ng-model="mtup[1]"> <span>{{(isWorld('moon') || $index == 1) ? ' $' : ' '}}{{::mtup[0] | num:raw}}{{(!isWorld('moon') && $index == 0) ? ' AI' : ''}}</span></label>
</td>
</tr>
</refresher>
</tbody>
</table>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[4]" class="form-inline">
<uib-accordion-heading ng-click="accOpen[4] = !accOpen[4]">
<div class="clickable-panel">
Gold/Platinum Upgrades + Suits<i data-ng-if="ref.suitExclamation && !isEvent()" class="fa fa-plus"></i><span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[4], 'fa-chevron-right': !accOpen[4]}"></span>
</div>
</uib-accordion-heading>
<div class="row">
<div class="col-xs-12">
<div class="well">
<div class="row">
<div class="col-md-6 text-center">
<div class="form-inline top-bottom-margin">
<label><input type="number" class="form-control" min="0" data-ng-model="ref.triples"> # 3x Multipliers</label>
</div>
</div>
<div class="col-md-6 text-center">
<div class="form-inline top-bottom-margin">
<label data-ng-if="!isWorld('mars')"><input type="number" class="form-control" min="0" data-ng-model="ref.flux"> # Flux Capitalors</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<p><strong>Platinum Boost:</strong></p>
<div class="multicolumn" data-ng-if="!isEvent()">
<refresher condition="calcToggle">
<div data-ng-repeat="boost in platinumboosts track by $index">
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.platinum[$index][0]" data-ng-change="changePlatinum(ref, $index)"> <span>{{::boost}}</span></label>
</div>
</refresher>
</div>
</div>
<div class="col-xs-6">
<p><strong>Suits:</strong></p>
<div class="multicolumn" data-ng-if="!isEvent()">
<refresher condition="calcToggle">
<div data-ng-repeat="suit in ref.suits track by $index">
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.suits[$index][0]" data-ng-change="changeSuits(ref, $index)"> <span>{{::suitList[$index][0]}} Suit<i data-ng-if="ref.suits[$index][1]" title="{{ref.suits[$index][1] | percentage}} increase in $ / second" data-ng-class="{best_suit: $index == ref.bestSuit}" class="fa fa-plus"></i></span></label>
</div>
</refresher>
</div>
</div>
</div>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[5]">
<uib-accordion-heading ng-click="accOpen[5] = !accOpen[5]">
<div class="clickable-panel">
Other Bonuses<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[5], 'fa-chevron-right': !accOpen[5]}"></span>
</div>
</uib-accordion-heading>
<div class="row">
<div class="col-xs-12">
<p>
Please only input the bonus you have.
</p>
<p>
<em>For example, if you have a 30% Angel Investor increase from a Christmas event, so now your base Angel Investor bonus is 32%, but with upgrades it could easily be above 40%, please only input 30 or the calculations will be off.</em>
</p>
</div>
</div>
<div class="row top-bottom-margin">
<div class="col-sm-6">
<div class="form-inline text-center bottom-margin">
<label><input type="number" class="form-control" min="0" data-ng-model="ref.bonusMultiplier"> x Multiplier</label>
</div>
</div>
<div class="col-sm-6">
<div class="form-inline text-center">
<label><input type="number" class="form-control" min="0" data-ng-model="ref.bonusAngelEffectiveness"> % Angel Investor Bonus</label>
<h2>Total Angel Investor % = {{ref.angelEffectiveness | number}}%</h2>
</div>
</div>
</div>
</uib-accordion-group>
<uib-accordion-group is-open="accOpen[6]">
<uib-accordion-heading ng-click="accOpen[6] = !accOpen[6]">
<div class="clickable-panel">
Super Badges<i data-ng-if="ref.badgeExclamation" class="fa fa-plus"></i><span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen[6], 'fa-chevron-right': !accOpen[6]}"></span>
</div>
</uib-accordion-heading>
<div class="multicolumn">
<div data-ng-repeat="badge in ref.badges track by $index">
<label class="strike-when-checked checkbox-inline"><input type="checkbox" data-ng-model="ref.badges[$index][0]" data-ng-change="changeBadge(ref, $index)"> <span>{{::superbadgeList[$index][0]}} ({{::getBadgeBonusInfo(ref,superbadgeList[$index])}})<i data-ng-if="ref.badges[$index][1]" title="{{ref.badges[$index][1] | percentage}} increase in $ / second" data-ng-class="{best_badge: $index == ref.bestBadge}" class="fa fa-plus"></i></span></label>
</div>
</div>
</uib-accordion-group>
</uib-accordion>
</div>
</div>
<div class="row">
<div class="col-xs-12 text-center">
<button type="button" class="btn btn-lg btn-primary" data-ng-click="calc(ref)">Calculate</button>
</div>
</div>
<hr />
<div class="row">
<div class="col-xs-12">
<h2>Total $ / second : {{ref.totalMoneyPerSecond | number}} ({{ref.totalMoneyPerSecond | num}})</h2>
<h2>Total $ / minute : {{ref.totalMoneyPerSecond * 60 | number}} ({{ref.totalMoneyPerSecond * 60 | num}})</h2>
<h2>Total $ / hour : {{ref.totalMoneyPerSecond * 3600 | number}} ({{ref.totalMoneyPerSecond * 3600 | num}})</h2>
</div>
</div>
<hr />
<div class="row">
<div class="col-xs-12">
<uib-accordion close-others="false">
<uib-accordion-group is-open="accOpen2[0]">
<uib-accordion-heading ng-click="accOpen2[0] = !accOpen2[0]">
<div class="clickable-panel">
Angel Calculations<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen2[0], 'fa-chevron-right': !accOpen2[0]}"></span>
</div>
</uib-accordion-heading>
<div class="row">
<div class="col-xs-12">
<p class="bottom-margin">
All of values in the tables will include sacrificed angels in calculating the number required to increase by x%. The only exception is Doubled w/o Sacrificed which should match your in game numbers exactly and does not include sacrificed angels.
</p>
</div>
</div>
<div class="row">
<div class="col-md-6 text-center">
<div class="form-inline bottom-margin">
<input type="number" class="form-control" min="0" data-ng-model="ref.viewLifetimeEarnings" data-ng-blur="updateEarnings()" step="0.001" required> <input type="text" class="form-control illions" data-ng-model="ref.angelIllions" uib-typeahead="ill for ill in illionsArray | filter:$viewValue | limitTo:8" placeholder="*illions" data-ng-blur="updateEarnings()"> Lifetime Earnings
</div>
</div>
<div class="col-md-6 text-center">
<div class="form-inline bottom-margin">
<input type="number" class="form-control" min="0" data-ng-model="ref.viewSacAngels" data-ng-blur="updateSacrificedAngels()" step="0.001" required> <input type="text" class="form-control illions" data-ng-model="ref.sacIllions" uib-typeahead="ill for ill in illionsArray | filter:$viewValue | limitTo:8" placeholder="*illions" data-ng-blur="updateSacrificedAngels()"> # Angels Sacrificed
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 text-center">
<button type="button" class="btn btn-lg btn-primary space_top bottom-margin" data-ng-click="calcAngelInvestors(ref)">Calculate Angels</button>
</div>
</div>
<table class="table table-striped table-hover table-bordered space_top">
<thead>
<tr>
<th>Threshold</th>
<th>Number of Angels</th>
<th>Lifetime Cost</th>
<th>Lifetime Difference</th>
<th>Difference Time Cost</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="aUC in ref.angelCosts track by $index">
<td data-ng-if="!$last">{{aUC[0]}}</td>
<td data-ng-if="$last"><input type="number" class="form-control" min="0" data-ng-model="ref.customAngelMul" step="0.1"> x</td>
<td>{{aUC[1] | num:raw}} AI</td>
<td>${{aUC[2] | num:raw}}</td>
<td>${{aUC[3] | num:raw}}</td>
<td>{{aUC[4] | time:raw}}</td>
</tr>
</tbody>
</table>
<div class="row">
<div class="col-xs-12 text-center">
<button type="button" class="btn btn-primary space_top bottom-margin" data-ng-click="calcAngelInvestors(ref)">Calculate Custom Threshold</button>
</div>
</div>
</uib-accordion-group>
<hr />
<uib-accordion-group is-open="accOpen2[1]">
<uib-accordion-heading ng-click="accOpen2[1] = !accOpen2[1]">
<div class="clickable-panel">
Recommendations Filters<span class="pull-right fa" ng-class="{'fa-chevron-down': accOpen2[1], 'fa-chevron-right': !accOpen2[1]}"></span>
</div>
</uib-accordion-heading>
<div class="row text-center bottom-margin">
<div class="col-sm-4">
<label><input type="checkbox" class="form-inline" data-ng-model="ref.noSingles"> Don't show +1 upgrades</label>
</div>
<div class="col-sm-4">
<label><input type="checkbox" class="form-inline" data-ng-model="ref.noTens"> Don't show +10 upgrades</label>
</div>
<div class="col-sm-4">
<label><input type="checkbox" class="form-inline" data-ng-model="ref.noHundreds"> Don't show +100 upgrades</label>
</div>
</div>
<div class="row">
<div class="col-md-6 text-center top-bottom-margin">
<p>
Don't show upgrades that take longer than (Days : Hours : Minutes)
</p>
<table class="inline-block">
<tr class="text-center">
<td><a ng-click="incrementDays(ref)" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
<td> </td>
<td><a ng-click="incrementHours(ref)" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
<td> </td>
<td><a ng-click="incrementMinutes(ref)" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
</tr>
<tr>
<td class="form-group">
<input style="width:50px;" data-ng-model="filterTime.days" class="form-control text-center" type="text" pattern="[0-9]*" placeholder="d">
</td>
<td>:</td>
<td class="form-group">
<input style="width:50px;" data-ng-model="filterTime.hours" class="form-control text-center" type="text" pattern="[0-9]*" placeholder="h">
</td>
<td>:</td>
<td class="form-group">
<input style="width:50px;" data-ng-model="filterTime.minutes" class="form-control text-center" type="text" pattern="[0-9]*" placeholder="m">
</td>
</tr>
<tr class="text-center">
<td><a ng-click="decrementDays(ref)" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
<td> </td>
<td><a ng-click="decrementHours(ref)" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
<td> </td>
<td><a ng-click="decrementMinutes(ref)" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
</tr>
</table>
</div>
<div class="col-md-6 text-center top-bottom-margin">
<p>
Don't show upgrades that have % Increase in $ / Second less than X
</p>
<table class="inline-block">
<tr class="text-center">
<td><a ng-click="incrementPercentage(ref)" class="btn btn-link"><span class="fa fa-chevron-up"></span></a></td>
</tr>
<tr class="form-group">
<td class="form-group">
<input style="width:50px;" data-ng-model="filterTime.percentage" class="form-control text-center" type="text" pattern="[0-9]*[.]?[0-9]{0,3}" placeholder="%">
</td>
</tr>
<tr class="text-center">
<td><a ng-click="decrementPercentage(ref)" class="btn btn-link"><span class="fa fa-chevron-down"></span></a></td>
</tr>
</table>
</div>
</div>
</uib-accordion-group>
</uib-accordion>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="text-center" data-ng-if="ref.recTable.length">
<refresher condition="calcToggle">
<h2>Recommendation: {{::ref.recommendation}}</h2>
<button type="button" class="btn btn-primary btn-lg" data-ng-click="apply(ref)">Apply This Recommendation</button>
<hr />
<table class="table table-striped table-hover table-bordered space_top text-left">
<thead>
<tr>
<th>Upgrade</th>
<th>To</th>
<th class="clickable" data-ng-click="clickSort(ref, 2)">Upgrade Score (higher = better)*
<span data-ng-if="2 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="2 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th class="clickable" data-ng-click="clickSort(ref, 3)">Cost of Upgrade
<span data-ng-if="3 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="3 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th class="clickable" data-ng-click="clickSort(ref, 4)">Cost of Upgrade in Time
<span data-ng-if="4 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="4 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th class="clickable" data-ng-click="clickSort(ref, 5)">Increase in $ / Second
<span data-ng-if="5 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="5 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th class="clickable" data-ng-click="clickSort(ref, 6)">% Increase in $ / Second
<span data-ng-if="6 == sortIndex && reverse" class="pull-right fa fa-chevron-down"></span>
<span data-ng-if="6 == sortIndex && !reverse" class="pull-right fa fa-chevron-up"></span>
</th>
<th>Apply</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="rec in ref.recTable track by $index">
<td>{{::rec[0] | rec:ref}}</td>
<td>{{::rec[1] | num:raw}}</td>
<td>{{::rec[2] | num:raw}}</td>
<td>${{::rec[3] | num:raw}}</td>
<td>{{::rec[4] | time:raw}}</td>
<td>${{::rec[5] | num:raw}}</td>
<td>{{::rec[6] | num:raw}}%</td>
<td><button type="button" class="btn btn-primary center-block" data-ng-click="applyRow(ref, rec)">Apply This Row</button></td>
</tr>
</tbody>
</table>
</refresher>
</div>
</div>
</div>
<h3>*Upgrade Score is calculated by minimizing time to buy any pair of upgrades. If your goal is to buy two upgrades, then the upgrade with a higher score should be bought first.</h3>
</div>
<hr>
<h4 class="pull-right">Found an error? Want to request a feature? You can do so on <a href="https://www.reddit.com/r/AdventureCapitalist/comments/59knd5/gates_of_heck_calculator_updated/">Reddit</a> or <a href="https://github.com/Slimmmo/Slimmmo.github.io">Github</a>.</h4>
</div>
</body>
</html>