-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
194 lines (162 loc) · 6.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Alban</title>
<meta charset="utf-8">
<!-- <meta http-equiv="X-UA-Compatible" content="IE=edge"> -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="images/update.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" type="text/css" href="styles/theme-light.css" id="theme-link">
<link rel="stylesheet" type="text/css" href="styles/style.css" />
</head>
<body class="dark">
<header class="header">
<div class="game-name">Alban</div>
<button class="settings-btn" id="settingsBtn"><i class="fas fa-gear"></i></button>
</header>
<div class="horizontal-divider"></div>
<main class="main">
<div class="asset-container">
<div id="resource-wrapper">
<div id="resources"></div>
</div>
<div class="filler"></div>
<div class="horizontal-divider"></div>
<div id="log"></div>
</div>
<div class="vertical-divider"></div>
<div class="action-container">
<div><span hidden id="running-actions">Active: <span id="current-running-actions"></span>/<span id="max-running-actions"></span></span></div>
<div id="actions">
</div>
</div>
<div class="vertical-divider"></div>
<div class="upgrade-container">
<div id="upgrades" ></div>
</div>
</main>
<div class="horizontal-divider"></div>
<footer class="footer">
</footer>
<!-- Settings Dialog -->
<div id="settings-dialog" class="modal">
<div class="modal-content">
<span id="settingsCloseBtn" class="close">×</span>
<button type="button" class="button" onclick="toggleLanguage()">
<div class="label" id="settingsBtnSwitchLanguage">Switch language</div>
</button>
<button type="button" class="button" onclick="toggleTheme()">
<div class="label" id="settingsBtnToggleTheme">Toggle theme</div>
</button>
<button type="button" class="button" onclick="resetProgress()">
<div class="label" id="settingsBtnResetProgress">Reset progress</div>
</button>
</div>
</div>
<script type="text/javascript" src="scripts/game.utilities.js"></script>
<script type="text/javascript" src="scripts/game.translations.js"></script>
<script type="text/javascript" src="scripts/game.log.js"></script>
<script type="text/javascript" src="scripts/game.resources.js"></script>
<script type="text/javascript" src="scripts/game.actions.js"></script>
<script type="text/javascript" src="scripts/game.upgrades.js"></script>
<script type="text/javascript" src="scripts/game.professions.js"></script>
<script type="text/javascript" src="scripts/game.settings.js"></script>
<script type="text/javascript" src="scripts/game.js"></script>
</body>
<!--------------->
<!-- Templates -->
<!--------------->
<!-- Resources -->
<template id="resource-group-row">
<div class="tr header-row">
<div colspan="2" class="td"><span class="resource-group-name"></span></div>
</div>
</template>
<template id="resource-row">
<div class="tr">
<div class="td"><span class="resource-name"></span></div>
<!-- <div class="td" style="text-align: right"><span class="resource-amount"></span> / <span class="resource-max-amount"></span></div> -->
<div class="td" style="text-align: right"><span class="resource-amount"></span></div>
</div>
</template>
<!-- Actions -->
<template id="action-template">
<div class="tooltip-container">
<button class="do button" type="button" class="button" hidden>
<div class="label"></div>
<div class="progress-bar-panel"><div class="progress-bar"></div></div>
</button>
<input type="checkbox" class="automation-checkbox" hidden>
</div>
</template>
<template id="action-tooltip">
<div class="tooltip">
<h3 class="tooltip-title"></h3>
<div class="tooltip-content">
<div class="tooltip-description"></div>
<div class="tooltip-consumption">
<div class="bold">Consumes</div>
<table class="tooltip-consumption-content"></table>
</div>
<div class="tooltip-gain">
<div class="bold">Gives</div>
<table class="tooltip-gain-content"></table>
</div>
<div class="tooltip-milestones">
<div class="bold">Milestones</div>
<table class="tooltip-milestones-content"></table>
</div>
<span class="bold">Duration: </span>
<span class="tooltip-time-remaining"></span>
<div style="float:right">
<span class="bold">Finished: </span>
<span class="times-finished"></span>
</div>
</div>
</template>
<!-- Upgrades -->
<template id="upgrade-template">
<div class="tooltip-container">
<button class="do button" type="button" class="button" hidden>
<div class="label"></div>
</button>
</div>
</template>
<template id="upgrade-tooltip">
<div class="tooltip">
<h3 class="tooltip-title"></h3>
<div class="tooltip-content">
<div class="tooltip-description"></div>
<div class="tooltip-consumption">
<div class="bold">Costs</div>
<table class="tooltip-consumption-content"></table>
</div>
</div>
</template>
<!-- Tooltip Parts -->
<template id="tooltip-consumption-row-template">
<tr >
<td><span class="needed-amount"></span></td>
<td><span class="resource"></span></td>
<td>(<span class="available-amount"></span>)</td>
</tr>
</template>
<template id="tooltip-gain-row-template">
<tr>
<td><span class="gain-amount"></span></td>
<td><span class="resource"></span></td>
</tr>
</template>
<template id="tooltip-milestone-row-template">
<tr>
<td width="5%"><span class="reached"></span></td>
<td width="10%" style="text-align: right"><span class="threshold"></span></td>
<td width="5%"></td>
<td><span class="description"></span></td>
</tr>
</template>
<template id="log-entry">
<div></div>
</template>
</html>