-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
169 lines (145 loc) · 5.33 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
<!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" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/dark.css" />
</head>
<body class="dark">
<div id="bar-top">
<div id="game-name">Alban</div>
</div>
<div id="content-modules" class="row">
<div class="panel column">
<table id="resources"></table>
</div>
<div id="actionPanel" class="panel column">
<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 id="upgrades" class="panel column"></div>
</div>
<div id="bar-bottom">
<div style="float: right; margin-right: 1em; margin-top: 0.5em;">
<div class="label" id="settingsBtn">Settings</div>
</div>
</div>
<!-- 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>
<div> <button type="button" class="button" onclick="switchProfession('streetwise')">
<div class="label" id="settingsBtnResetProgress">Reset progress</div>
</button>
</div>
</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.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.js"></script>
</body>
<!--------------->
<!-- Templates -->
<!--------------->
<!-- Resources -->
<template id="resource-row">
<tr>
<td><span class="resource-name"></span></td>
<td style="text-align: right"><span class="resource-amount"></span></td>
<td>/</td>
<td style="text-align: right"><span class="resource-max-amount"></span></td>
</tr>
</template>
<template id="resource-group-row">
<tr class="header-row">
<td colspan="4"><span class="resource-group-name"></span></td>
</tr>
</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>
</html>