-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
101 lines (93 loc) · 3.1 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
<!DOCTYPE html>
<html>
<head>
<title>Country simulation</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=Montserrat&display=swap" rel="stylesheet">
<link rel='icon' href='https://lb123658.github.io/simulation/new/images/icon-512x512.png' type='image/png'/>
<link href="https://fonts.googleapis.com/css2?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h2 id="title">Country simulator</h2>
<!-- settings prompt -->
<div id="block"></div>
<div id="prompt">
<h2>Select your country's info</h2>
<p style="color:grey;font-size:12px;width:100%;">Only enter numbers. No units or %. Percents must total 100 all together.</p>
<label>Total area (sq km)</label> <input autocomplete="off" placeholder="Area" id="area">
<br>
<br>
<label>Percent water</label> <input autocomplete="off" placeholder="Water" id="water">
<br>
<br>
<label>Percent mountains</label> <input autocomplete="off" placeholder="Mountains" id="mountains">
<br>
<br>
<label>Percent cropland</label> <input autocomplete="off" placeholder="Cropland" id="cropland">
<br>
<br>
<label>Percent forest</label> <input autocomplete="off" placeholder="Forest" id="forest">
<br>
<br>
<label>Percent desert</label> <input autocomplete="off" placeholder="Desert" id="desert">
<br>
<br>
<label>Percent tundra</label> <input autocomplete="off" placeholder="Tundra" id="tundra">
<br>
<br>
<p style="color:grey;font-size:12px;">Customizations</p>
<label>Country name</label> <input autocomplete="off" placeholder="Name" id="name">
<br>
<br>
<label>Government type</label>
<select id="government">
<option value="Unknown">Choose one</option>
<option value="Communism">Communism</option>
<option value="Socialism">Socialism</option>
<option value="Capitalism">Capitalism</option>
<option value="Facism">Facism</option>
<option value="Monarchy">Monarchy</option>
<option value="Theocracy">Theocracy</option>
<option value="Anarchy">Anarchy</option>
</select>
<br>
<br>
<br>
<button class="button" style="color:white;" onclick="set()">Continue</button>
<br>
<br>
</div>
<!-- country stats -->
<div id="bar">
<div class="water" title="Water"></div>
<div class="mountains" title="Mountains"></div>
<div class="cropland" title="Cropland"></div>
<div class="forest" title="Forest"></div>
<div class="desert" title="Desert"></div>
<div class="tundra" title="Tundra"></div>
</div>
<!-- resource use and carbon emissions -->
<div id="resources_bar" title="Available natural resources">
<div id="resources"></div>
</div>
<div id="emissions_bar" title="Carbon emissions">
<div id="emissions"></div>
</div>
<p class="government">Unknown government type</p>
<div id="stat">
<h2 id="year" style="color:orange;">Year: 2022</h2>
<h2 id="kilo">Area</h2>
<h2 id="population">Population</h2>
<h2 id="gdp">GDP</h2>
<h2 id="capita">GDP per capita</h2>
<h2 id="life">Life expectancy</h2>
</div>
<!-- losing screen -->
<div id="red_background">
<h2 id="red">Game over</h2>
</div>
<script src="index.js"></script>
</body>
</html>