-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (36 loc) · 1012 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>V=IR</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<div id="left-col">
<h1>V=IR</h1>
<fieldset>
<legend>World</legend>
Time: <span id="gameTime"></span><br>
Rate: <input id="timeScale" type="number" value="1" step="0.1" min="0" max="99"> real/game
<input type="button" value="Save" onclick="saveBoard()">
<input type="button" value="Load" onclick="loadBoard()">
</fieldset>
<fieldset>
<legend>Building</legend>
<div id="buidingInfo"></div>
</fieldset>
<fieldset>
<legend>Status</legend>
<div id="status"></div>
</fieldset>
<fieldset>
<legend>Score</legend>
Total building cost: $<span id="cost">0</span>k<br>
Grid efficiency: <span id="efficiency">100</span>%
</fieldset>
</div><div id="center-col">
<canvas id="board"></canvas>
</div>
</body>
</html>