forked from CameronGott/progress-knight
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
315 lines (285 loc) · 16.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel="stylesheet" type="text/css" href="css/dark.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<title>Progress Knight Reborn</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VSEZNYTL4N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-VSEZNYTL4N');
</script>
</head>
<body id="body" class="dark">
<div class="w3-margin">
<h1>Progress Knight - Reborn</h1>
<div style="width: 1220px; height: 600px">
<!--******* Left-hand summary panel *******-->
<div class="panel w3-padding" style="width: 300px; height: auto; float: left">
<span id="deathText">
<div style="font-size: large; color: red">Age has caught up to you</div>
<div class="sidebar-element" style="color: gray">Your age has met your lifespan, use the amulet to rebirth before you pass away</div>
</span>
<div class="" style="font-size: large">Age <span id="ageDisplay">14</span> Day <span id="dayDisplay">0</span></div>
<div class="sidebar-element" style="color: gray">Lifespan: <span id="lifespanDisplay">70</span> years</div>
<button id="pauseButton" class="w3-button button sidebar-element" onClick="setPause()">Pause</button>
<span id="automation" class="inline" style="margin-left: 8px">
<span>
<div class="inline">Auto-promote</div>
<input type="checkbox" class="inline" id="autoPromote">
</span>
</br>
<span>
<div class="inline">Auto-learn</div>
<input type="checkbox" class="inline sidebar-element" id="autoLearn">
</span>
</span>
<div style="font-size: large" id="coinDisplay">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div style="color: gray">Balance (in coins)</div>
<ul class="sidebar-element" style="padding-left: 20px;">
<li><span style="color: rgb(9, 160, 230)">Net/day: </span ><b id="signDisplay"></b><span id="netDisplay">
<span></span>
<span></span>
<span></span>
<span></span>
</span></li>
<li><span style="color: green">Income/day: </span><span id="incomeDisplay">
<span></span>
<span></span>
<span></span>
<span></span>
</span></li>
<li><span style="color: red">Expense/day: </span><span id="expenseDisplay">
<span></span>
<span></span>
<span></span>
<span></span>
</span></li>
</ul>
<span id="quickTaskDisplay">
<div style="width: 230px" class="small-margin inline job progress-bar progressBar">
<div class="progress-fill progressFill" style="background-color:rgb(225, 165, 0)"></div>
<div class="progress-text name">Task</div>
</div>
<div class="sidebar-element" style="color: gray">Current job</div>
<div style="width: 230px" class="small-margin skill progress-bar progressBar">
<div class="progress-fill progressFill" style="background-color:rgb(225, 165, 0)"></div>
<div class="progress-text name">Task</div>
</div>
<div class="sidebar-element" style="color: gray">Current skill</div>
</span>
<div style="font-size: large"><span style="color: rgb(15, 105, 207)">Happiness: </span><span id="happinessDisplay"></span></div>
<div style="color: gray" class="sidebar-element">Affects all xp gain</div>
<span id="evilInfo">
<div style="font-size: large"><span style="color: rgb(200, 0, 0)">Evil: </span><span id="evilDisplay"></span></div>
<div style="color: gray" class="sidebar-element">Affects dark magic xp gain</div>
</span>
<!--
<span id="scheduling">
<div style="font-size: large">Scheduling</div>
<div style="color: gray" class="sidebar-element">Schedule time to jobs/skills</div>
<span style="height: 30px">
<p style="width: 5px">Jobs</br>(32%)</p>
<input id="schedulingSlider" class="slider" type="range" min="0" max="100" value="0">
<p style="width: 5px">Skills</br>(68%)</p>
</span>
</span>
-->
<span id="timeWarping">
<div style="font-size: large"><span style="color: rgb(204, 34, 219)">Time warping: </span><span id="timeWarpingDisplay"></span></div>
<div style="color: gray">Affects game speed</div>
<button id="timeWarpingButton" class="w3-button button sidebar-element" style="margin-top: 5px; width:150px" onClick="setTimeWarping()">Enable warp</button>
</span>
</div> <!-- End left-hand summary panel -->
<!--******* Nav-bar with tabbed content navigation buttons *******-->
<div class="panel w3-margin-left" style="width: 900px; height: 40px; float: left">
<div class="w3-button w3-bar-item tabButton" id="jobTabButton" onClick="setTab(this, 'jobs')">Jobs</div>
<div class="w3-button w3-bar-item tabButton" onClick="setTab(this, 'skills')">Skills</div>
<div class="w3-button w3-bar-item tabButton" id="shopTabButton" onClick="setTab(this, 'shop')">Shop</div>
<div class="w3-button w3-bar-item tabButton" id="rebirthTabButton" onClick="setTab(this, 'rebirth')">Amulet</div>
<div class="w3-button w3-bar-item tabButton" onClick="setTab(this, 'settings')" style="float: right">Settings</div>
</div> <!-- End nav-bar -->
<div class="panel w3-margin-left w3-margin-top w3-padding" style="width: 900px; height: auto; float: left">
<template class="headerRowTaskTemplate">
<tr>
<th class="category" style="width: 250px">Job</th>
<th>Level</th>
<th class="valueType">Value type</th>
<th>Xp/day</th>
<th>Xp left</th>
<th class="maxLevel">Max level</th>
<th class="skipSkill">Skip</th>
</tr>
</template>
<template class="headerRowItemTemplate">
<tr>
<th class="category" style="width: 250px">Item</th>
<th style="width: 100px">Active</th>
<th style="width: 250px">Effect</th>
<th>Expense/day</th>
</tr>
</template>
<template class="rowTaskTemplate">
<tr>
<td>
<div class="progress-bar progressBar tooltip">
<div class="progress-fill progressFill"></div>
<div class="progress-text name">Task</div>
<span class="tooltipText"></span>
</div>
</td>
<td class="level">Level</td>
<td class="value">
<div class="effect"></div>
<div class="income">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</td>
<td class="xpGain">Xp/day</td>
<td class="xpLeft">Xp left</td>
<td class="maxLevel">Max level</td>
<td class="skipSkill">
<input class="checkbox" type="checkbox"></input>
</td>
</tr>
</template>
<template class="rowItemTemplate">
<tr>
<td>
<button class="button item-button tooltip">
<span class="name"></span>
<span class="tooltipText">tooltip</span>
</button>
</td>
<td>
<div class="w3-border w3-circle" style="width: 40px; height: 40px; padding: 7px">
<div class="active w3-circle" style="width: 24px; height: 24px;"></div>
</div>
</td>
<td class="effect"></td>
<td class="expense">
<span></span>
<span></span>
<span></span>
<span></span>
</td>
</tr>
</template>
<template class="requiredRowTemplate">
<td class="w3-text-gray" style="padding-left: 16px" colspan=5>
Required:
<span class="value" colspan=5>
<span class="levels"></span>
<span class="coins">
<span></span>
<span></span>
<span></span>
<span></span>
</span>
<span style="color: rgb(200, 0, 0)" class="evil"></span>
</span>
</td>
</template>
<div class="tab" id="jobs">
<table id="jobTable" class="w3-table w3-bordered">
</table>
</div>
<div class="tab" id="skills">
<table id="skillTable" class="w3-table w3-bordered">
</table>
</div>
<div class="tab" id="shop">
<table id="itemTable" class="w3-table w3-bordered">
</table>
</div>
<div class="tab" id="rebirth">
<ul>
<li style="margin: 8px;">
You stumble across a strange looking amulet on your 25th birthday. It does not look like
it has any worth on the market given that it's made from cheap-looking copper. However, you
feel a weird urge to keep the amulet, so you slip it into your pocket for safekeeping.
</li>
<li style="margin: 8px;" id="rebirthNote1">
On your 45th birthday, you feel the amulet shiver uncontrollably in your pocket. You take it
out and the constant shivering suddenly stops. More to your bizarre surprise, you notice
a strange etching on the centre of the amulet.
</li>
<li style="margin: 8px;" id="rebirthNote2">
<div style="margin-bottom: 8px">
On your 65th birthday, you once again encounter the strange, unexplained shivering from your
amulet. But this time, a living eyeball emerges from the centre. Although terribly frightened,
you realise you do not have many years to live left anyway so you consider touching the eye
to see what happens.
</div>
<i style="color: grey">
By touching the eyeball, you will be reborn and have to restart life again, losing all your levels and coins.
However, you will gain <b>xp multipliers</b> for your jobs and skills equivalent to: <b>1 + the max level of the skill or job / 10.</b>
This means you will learn everything again much more quickly than you did in your previous life. <span style="color: rgb(200, 0, 0)">
Something tells you that the amulet might transform even further after living for <b>2 whole centuries</b>...</span>
</i>
</br>
<button class="w3-button button" style="margin-bottom: 8px; margin-top: 8px" onClick="rebirthOne()">Touch the eye</button>
</br>
</li>
<li style="margin: 8px;" id="rebirthNote3">
<div style="margin-bottom: 8px;">
Your gut instinct was right. The moment you hit the grand age of 200, you hear an ominous hum coming from the amulet.
A mouth emerges from its surface and begins to cackle, and proceeds to say: "So you've made it this far... Are you ready to embrace evil?"
</div>
<i style="color: rgb(200, 0, 0)">
If you decide to embrace evil, all of your levels, coins and even max levels will be reset.
You will be reborn as a fresh slate. However, you will unlock a new line of skills and gain
<b><span id="evilGainDisplay"></span> evil</b>, which will heavily impact your future lives.
</i>
</br>
<button class="w3-button button" style="margin-bottom: 8px; margin-top: 8px" onClick="rebirthTwo()">Embrace evil</button>
</br>
</li>
</ul>
</div>
<div class="tab" id="settings">
<ul>
<li>
<h2>Import/export save</h2>
<button class="w3-button button" onClick="importGameData()">Import</button>
<button class="w3-button button" onClick="exportGameData()">Export</button>
<form style="margin-top: 16px">
<input id="importExportBox" type="text" style="width:300px; height:30px"></input>
</form>
</li>
<li>
<h2>Toggle light/dark mode</h2>
<button class="w3-button button" onClick="setLightDarkMode()">Toggle</button>
</li>
<li>
<h2>Join the discord community!</h2>
<a href="https://discord.gg/fTRS4pHGka" target="_blank">
<img src="https://cdn.icon-icons.com/icons2/2108/PNG/512/discord_icon_130958.png" width="100" height="100"></img>
</a>
</li>
<li>
<h2>Hard reset game</h2>
<button class="w3-button button w3-red" onClick="resetGameData()">Reset</button>
</li>
</ul>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="js/HackTimer.js"></script>
<script type="text/javascript" src="js/classes.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</html>