-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
272 lines (268 loc) · 15.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>IdleBots 0.0.2</title>
<meta name="description" content="IdleBots">
<meta name="author" content="Algraud">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" href="icons/bootstrap-icons.css">
</head>
<!-- IdleBots
Copyright (C) 2022 Algimantas Rauduve
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program (if you are reading this on the original
author's website, you can find a copy at
<algraud.github.io/IdleBots/license.txt>). If not, see
<http://www.gnu.org/licenses/>. -->
<body>
<noscript>
<div id="checkJavascript" style="position: absolute; height: 100%; width: 100%; font-size: 2vw; padding: 10%; color: white; background-color: black; z-index: 1000000;">
For some reason, your browser is having trouble loading this game. This game runs on javascript, and if you have an addon such as noscript, you may need to tell it to allow scripts from http://algraud.github.io/IdleBots, which is where this game is hosted.<br/><br/>
If you are not using any addons that might interfere with javascript, try using the latest versions of Chrome or Firefox.
</div>
</noscript>
<div id="wrapper" style="display: block;">
<div id="innerWrapper" style="background-color: black; display: block;">
<div class="container-fluid">
<div class="row" id="dataRow">
<div class="col-6" id="resourceColumn">
<div class="row" id="statsRow">
<div id="statsBox" class="myBox">
<div id="statsTabs">
<ul id="statTabsUl" class="nav nav-tabs nav-justified tabsUl">
<li role="presentation" id="marketTab" onclick="filterStatTabs('market')"
class="buyTab nav-item tabNotSelected">
<a>Market</a>
</li>
<li role="presentation" id="productionTab" onclick="filterStatTabs('production')"
class="buyTab nav-item tabNotSelected">
<a>Production</a>
</li>
</ul>
</div>
<div id="statsContainer" class="niceScroll">
<div id="marketContainer" class="row tabContainer">
<div class="col-12 col-sm-6" id="populationData"></div>
<div class="col-12 col-sm-6" id="needsData"></div>
</div>
<div id="productionContainer" class="row tabContainer" style="display: none">
<table id="productionTable" class="table table-striped"></table>
</div>
</div>
</div>
</div>
<div class="row" id="gathersHere">
<div class="col-12 col-md-6 col-xl-4 jobBox" id="tempJob1">
<div id="wheat" class="jobContainer myBox">
<span class="title">Wheat</span>
<div class="row">
<div class="col-6 resInput">
<div class="resPut">Wood: 1/s</div>
<div class="resPut">Metal: 5/s</div>
</div>
<div class="col-6 resOutput">
<div class="resPut">Wheat: 2/s</div>
</div>
</div>
<span id="wheatProfit" class="resProfit">X$/s</span>
</div>
</div>
<div class="col-12 col-md-6 col-xl-4 jobBox" id="tempJob2">
<div class="myBox"></div>
</div>
<div class="col-12 col-md-6 col-xl-4 jobBox" id="tempJob3">
<div class="myBox"></div>
</div>
</div>
</div>
<div class="col-6" id="leftColumn">
<div class="row" id="logRow">
<div class="myBox" id="logContainer">
<div id="logBtnGroup" class="d-flex btn-group btn-group-justified" role="group">
<div class="btn-group flex-fill" role="group">
<button id="MarketFilter" onclick="filterMessage('Market')" type="button"
class="btn btn-success logFilter">Market</button>
</div>
<div class="btn-group flex-fill" role="group">
<button id="UpgradesFilter" onclick="filterMessage('Upgrades')" type="button"
class="btn btn-danger logFilter">Upgrades</button>
</div>
<div id="logConfigHolder" class="btn-group" role="group">
<button id="logConfigBtn" onclick="tooltip('Message Config', null, 'update')" type="button"
class="btn btn-light logFilter">
<i class="bi-gear"></i>
</button>
</div>
</div>
<div id="log" class="niceScroll">
</div>
</div>
</div>
<div class="row top5" id="buyRow">
<div class="outerBuyContainer myBox">
<div id="buyTabs">
<ul id="buyTabsUl" class="nav nav-tabs nav-justified tabsUl">
<li role="presentation" id="allTab" onclick="filterBuyTabs('all')"
class="buyTab nav-item tabNotSelected">
<a>All</a>
</li>
<li role="presentation" id="botsTab" onclick="filterBuyTabs('bots')"
class="buyTab nav-item tabNotSelected">
<a>Bots</a>
</li>
<li role="presentation" id="upgradesTab" onclick="filterBuyTabs('upgrades')"
class="buyTab nav-item tabNotSelected">
<a>Upgrades</a>
</li>
<li role="presentation" id="blueprintsTab" onclick="filterBuyTabs('blueprints')"
class="buyTab nav-item tabNotSelected">
<a>Blueprints</a>
</li>
</ul>
</div>
<div id="numTabs">
<ul class="nav nav-tabs nav-justified">
<li role="presentation" class="tabSelected nav-item" id="numTab1" onclick="numTab(1)">
<a>+1</a>
</li>
<li role="presentation" class="tabNotSelected nav-item" id="numTab2" onclick="numTab(2)">
<a>+10</a>
</li>
<li role="presentation" class="tabNotSelected nav-item" id="numTab3" onclick="numTab(3)">
<a>+25</a>
</li>
<li role="presentation" class="tabNotSelected nav-item" id="numTab4" onclick="numTab(4)">
<a>+100</a>
</li>
<li role="presentation" class="tabNotSelected nav-item" id="numTab5" onclick="numTab(5)">
<a>Max</a>
</li>
</ul>
</div>
<div id="buyContainer" class="niceScroll buyContainerSizeSm">
<div id="buyHere" class="niceScroll buttonSizeLarge">
<div id="botsContainer" class="tabContainer">
<div id="botsTitleDiv" class="titleDiv">
<span id="botsTitleSpan" class="titleSpan">Bots</span>
</div>
<div id="botsHere" class="buyBox"></div>
</div>
<div id="upgradesContainer" class="tabContainer">
<div id="upgradesTitleDiv" class="titleDiv">
<span id="upgradesTitleSpan" class="titleSpan">Upgrades</span>
</div>
<div id="upgradesHere" class="buyBox"></div>
</div>
<div id="blueprintsContainer" class="tabContainer">
<div id="blueprintsTitleDiv" class="titleDiv">
<span id="blueprintsTitleSpan" class="titleSpan">Blueprints <span id="blueprintsTitleLimit"></span></span>
</div>
<div id="blueprintsHere" class="buyBox"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="settingsRow">
<table id="settingsTable">
<tbody>
<tr>
<td id="currencyCounter" class="btn btn-secondary"></td>
<td class="btn btn-info" onclick="save()"> Save </td>
<td class="btn btn-light" onclick="toggleSettingsMenu()">Settings</td>
<td class="btn btn-primary" onclick="sellingClicked()">Sell Business <span id="awardChange"></span> </td>
<td class="btn btn-danger" onclick="resetGame(false)"> Reset </td>
</tr>
</tbody>
</table>
<div id="settingsHere" style="display: none">
<div id="searchSettingsWindow">
<div id="settingsTitleBar">
<div class="noSelect optionContainer settingsBtn tealColor settingTypeBtn" onclick="toggleSettingSection(false)">Browse All</div>
<span id="searchSettingsTitle">Choose a Category Below, or Search for a Setting/Keyword:</span>
<input id="searchSettings" onkeyup="searchSettings(this)"/><br/>
<div id="settingsTabs">
<ul class="nav nav-tabs nav-justified">
<li role="presentation" id="GeneralTab" onclick="settingTab('General')" class="tabNotSelected settingTab"><a>General</a></li>
</ul>
</div>
</div>
</div>
<div id="settingsSearchResults"></div>
</div>
<div id="allSettings" style="display: none">
<div class='noSelect optionContainer settingsBtn tealColor' onclick='toggleSettingSection(true)'>Back to Search</div>
<div id="allSettingsHere"></div>
</div>
</div>
</div>
</div>
</div>
<div id="sellingWrapper" style="display:none;">
<div id="sellingTitleRow" class="row">
<div id="sellingTitleColLeft" class="titleCol">
<div>
<div id="sellingTitle"></div>
<div id="sellingError" style="display: none"></div>
</div>
</div>
<div id="sellingTitleColRight" class="titleCol">
<div>
<div id="sellingAwards"><span id="sellingAwardsOwned">0</span> Awards</div>
<div id="sellingTotalAwards"><span id="totalAwardsEarned">0</span> Earned All Time</div>
<div id="sellingTotalSpent"><span id="totalAwardsSpent">0</span> Spent on Grants</div>
<div id="sellingTotalSells"><span id="totalSells">0</span> Businesses Sold</div>
</div>
</div>
</div>
<div id="sellingRow" class="row">
<div id="grantCol" class="col-7">
<div class="challengeTitle">Specialists</div>
<div id="sellingStory"></div>
<div id="specialistsHere" class="niceScroll"></div>
</div>
<div id="challengeCol" class="col-5">
<div id="viewChallenge" style="display: none">
<span id="viewChallengeText">You do not currently have an active challenge.</span>
<br/><br/>
<div class="btn btn-warning inSellingBtn" style="display: none" id="cancelChallengeBtn"
onclick="confirmAbandonChallenge()">Abandon Challenge</div>
<span id="extraChallengeStuff"></span>
</div>
</div>
</div>
<div id="sellingBtnContainer">
<div class="btn btn-primary inSellingBtn" id="sellBusinessBtn" onclick="sellBusiness()">Sell Business</div>
<div class="btn btn-danger inSellingBtn" id="cancelSellBtn" onclick="cancelSell()">Cancel</div>
<div class="btn btn-warning inSellingBtn" id="clearSpecialistsBtn" onclick="clearSpecialists()">Clear All Specialists</div>
</div>
</div>
<div id="tooltipDiv" class="tooltipExtraNone" style="display: none">
<div id="tipTitle"></div>
<hr/>
<div id="tipText"></div>
<hr/>
<div id="tipCost"></div>
</div>
<script src="js/bootstrap.min.js"></script>
<script src="js/config.js"></script>
<script src="js/updates.js"></script>
<script src="js/tooltip.js"></script>
<script src="js/market.js"></script>
<script src="js/reset.js"></script>
<script src="js/bots.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>