forked from emilplane/b2popology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosim.html
233 lines (229 loc) · 13 KB
/
ecosim.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width"/>
<title>Eco Simulator</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Urbanist&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Urbanist&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Gabarito&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap" rel="stylesheet">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<script src="https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js"></script>
<script src="./node_modules/chart.js/dist/chart.umd.js"></script>
<script src="https://raw.githubusercontent.com/emilplane/b2popology/main/node_modules/chart.js/dist/chart.umd.js"></script>
<script src="./node_modules/chartjs-plugin-annotation/dist/chartjs-plugin-annotation.min.js"></script>
<link rel="stylesheet" href="styles/style.css"/>
<link rel="stylesheet" href="styles/ecosim.css"/>
</head>
<body>
<main id="main">
<div class="ecosimMain">
<div class="headerStyle" id="header">
<h4 class="luckiestGuy title">Battles 2 Popology</h4>
<div class="headerContent">
<a href="index.html">
<h5>Home</h5>
</a>
<a href="popology.html">
<h5>Popology</h5>
</a>
<a href="ecosim.html">
<h5 style="text-decoration: underline 2px;text-underline-offset: 2px;">Eco Simulator</h5>
</a>
<a href="clans.html">
<h5>Tournaments</h5>
</a>
<a href="balance.html"><h5>Balancing</h5></a>
<a href="https://discord.com/invite/9YAaxDXAYZ">
<h5>Discord</h5>
</a>
</div>
<div class="menuIcon" id="menuIcon">
<span class="material-symbols-outlined menuIcon">menu</span>
</div>
</div>
<div class="menuBar">
<div class="menuBarContent">
<div class="menuBarButton">
<h6>Load</h6>
</div>
<div class="menuBarButton">
<h6>Save</h6>
</div>
<div class="menuBarButton">
<h6>Settings</h6>
</div>
<div class="simStatusContainer">
<h6 id="statusText">Javascript unavailable or not started</h6>
<div id="statusLight" class="statusLight"></div>
</div>
</div>
<div class="loadingBarContainer">
<div class="loadingBar" id="loadingBar"></div>
</div>
</div>
<div class="mainContent">
<div class="simOutputContainer">
<div id="chartContainer" style="height: 480px; width: 100%">
<!-- Chart is inserted here -->
</div>
</div>
<div class="configureSim" id="sidePanelContainer">
<div class="configTabs">
<div class="activeTab" id="tab0Button">
<img src="media/Tower Portraits/monkeyVillage/base/monkeyVillagePortrait.png">
</div>
<div class="" id="tab1Button">
<img src="media/Bloons/BTD6Red.png">
</div>
<div class="" id="tab2Button">
<img src="media/Icons/monkeyMoney.png">
</div>
</div>
<div class="tab showTab" id="tab0">
<div class="simConfigSection">
<div class="configTitle">
<h4>Rounds</h4>
<div class="horizontalLine strongLineStyle"></div>
</div>
<div class="setting">
<div>
<h5>Start round</h5>
</div>
<div>
<input id="gameRound" class="settingInput" type="number" min="1" step="1" value="10" />
</div>
</div>
<div class="setting">
<div>
<h5>End round</h5>
</div>
<div>
<input id="targetRound" class="settingInput" type="number" min="10" step="1" value="20" />
</div>
</div>
<div class="setting">
<div>
<h5>Stall factor</h5>
</div>
<div>
<button class="material-symbols-outlined iconButton">question_mark</button>
<input id="rounds" class="settingInput" type="number" min="0.05" max="0.95" step="0.05" value="0.5" />
</div>
</div>
</div>
<div class="simConfigSection">
<div class="configTitle">
<h4>Starting Configuration</h4>
<div class="horizontalLine strongLineStyle"></div>
</div>
<div class="setting">
<div>
<h5>Starting cash</h5>
</div>
<div>
<input id="cash" class="settingInput" type="number" min="0" step="25" value="1000" />
</div>
</div>
<div class="setting">
<div>
<h5>Starting eco</h5>
</div>
<div>
<input id="eco" class="settingInput" type="number" min="0" step="10" value="500" />
</div>
</div>
</div>
</div>
<div class="tab" id="tab1">
<div class="simConfigSection">
<div class="configTitle">
<div class="titleWithOptions">
<h4>Eco Queue</h4>
<div class="options">
<button id="addEcoQueueItem" class="material-symbols-outlined iconButton">add</button>
</div>
</div>
<div class="horizontalLine strongLineStyle"></div>
</div>
<div class="setting">
<div>
<h5>Starting Bloon Send</h5>
</div>
<div>
<select id="startingBloonSend" class="settingInput">
<option value="Grouped Blacks">Grouped Blacks</option>
</select>
</div>
</div>
<div class="shadedSection">
<h5>Start with</h5>
</div>
<div class="contentSection" id="ecoQueueContainer"></div>
<template id="ecoQueueTemplate">
<div class="shadedSection ecoQueueCard">
<h5 class="timeText">Unknown Time</h5>
<div class="ecoBloonIconContainer">
</div>
</div>
</template>
</div>
</div>
<div class="tab" id="tab2" style="display: none;">
<div class="farmTitleContainer">
<h4>Farms</h4>
<div class="farmMainButtonContainer">
<div class="material-symbols-outlined" id="addFarmButton">add</div>
</div>
</div>
<div class="farmsContainer" id="farmsContainer">
</div>
<template id="farmTemplate">
<div>
<h4 class="farmTemplateTitle">1</h4>
<div class="farmRight">
<div>
<p class="smallText">Round</p>
<div class="farmUpgradesContainer">
<input class="farmTemplateStartRound" type="number" min="0" max="50" step="1" value="0" />
</div>
</div>
<div>
<p class="smallText">Upgrades</p>
<div class="farmUpgradesContainer">
<input class="farmTemplateUpgrade1" type="number" min="0" max="5" step="1" value="0" />
<input class="farmTemplateUpgrade2" type="number" min="0" max="5" step="1" value="0" />
<input class="farmTemplateUpgrade3" type="number" min="0" max="5" step="1" value="0" />
</div>
</div>
<div class="farmButtonContainer">
<div class="material-symbols-outlined">expand_less</div>
<div class="material-symbols-outlined">expand_more</div>
<div class="material-symbols-outlined">menu</div>
<div class="material-symbols-outlined farmTemplateDeleteButton">delete</div>
</div>
</div>
</div>
</template>
</div>
</div>
</div>
</div>
</main>
</body>
<dialog class="propertiesDialog" id="propertiesDialog">
<div class="propertyDialogTopContainer">
<h2 id="propertyDialogName">Property Name</h2>
<div class="material-symbols-outlined propertyCloseButton">close</div>
</div>
<div class="propertyDividerLine"></div>
</dialog>
<script type="module" src="scripts/ecosim.js"></script>
</html>