-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
240 lines (227 loc) · 11.3 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>World JS: History Simulation</title>
<meta name="description" content="A brief history of humankind in Javascript">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="stylesheets/vendor/bootstrap.min.css">
<link rel="stylesheet" href="stylesheets/style.css">
</head>
<body>
<header class="navbar navbar-inverse navbar-static-top">
<a class="visible-lg" target="_blank" href="https://github.com/anvoz/world-js">
<img class="ribbon" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
</a>
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="">World JS: History Simulation</a>
</div><!--/.navbar-header -->
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="">Home</a></li>
<li><a class="hidden-lg" target="_blank" href="https://github.com/anvoz/world-js">Github</a></li>
</ul>
</div><!--/.navbar-collapse -->
</div>
</header><!--/.navbar-static-top -->
<div class="container">
<div class="row">
<div id="world-statistic-container" class="col-lg-2 visible-lg opacity">
<button class="close js-statistic-toggle hide pull-right">x</button>
<p><strong>Statistic</strong></p>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#world-statistic-basic">Basic</a></li>
<li><a data-toggle="tab" href="#world-statistic-more">More</a></li>
</ul>
<div class="tab-content">
<div id="world-statistic-basic" class="statistic-container tab-pane active">
<div class="statistic-group">
<div>• <i class="wicon-men"></i> Men: <b id="world-men-ex">0</b></div>
<div>• <i class="wicon-women"></i> Women: <b id="world-women-ex">0</b></div>
<div>• <i class="wicon-boy"></i> Boys: <b id="world-boys-ex">0</b></div>
<div>• <i class="wicon-girl"></i> Girls: <b id="world-girls-ex">0</b></div>
</div>
<div class="statistic-group">
<div>
• <div class="family"><i class="wicon-women"></i><i class="wicon-men"></i></div>
Families: <b id="world-families-ex">0</b>
</div>
</div>
<div class="statistic-group">
<div>
• Food resource: <b id="world-foodResource">0</b>
<span id="world-labelNotEnoughResource" class="label label-danger hide">!</span>
</div>
<div>• Food resource recovery:</div>
<div class="text-muted"><b id="world-foodResourceRecovery">100</b>% per 10 years</div>
</div>
<div class="statistic-group">
<div>• <i class="wicon-men"></i> / <i class="wicon-women"></i> Adult:</div>
<div><b id="world-adultFoodChange">0</b> food per year</div>
<div>• <i class="wicon-boy"></i> / <i class="wicon-girl"></i> Child:</div>
<div><b id="world-childFoodChange">0</b> food per year</div>
</div>
</div>
<div id="world-statistic-more" class="statistic-container tab-pane">
<div class="statistic-group">
<div>• Death rate: <b id="world-deathChance">0</b>%</div>
</div>
<div class="statistic-group">
<div>• Average children</div>
<div>per family: <b id="world-avgChildren">0</b></div>
</div>
<div class="statistic-group">
<div>• Average age: <b id="world-avgAge">0</b></div>
<div>• Max age: <b id="world-maxAge">0</b> (died in <b id="world-yearMaxAge">0</b>)</div>
</div>
<div class="statistic-group">
<div>• Average IQ: <b id="world-avgIQ">0</b></div>
<div>• Max IQ: <b id="world-maxIQ">0</b> (born in <b id="world-yearMaxIQ">0</b>)</div>
</div>
<div class="statistic-group">
<div>• Food spoilage:</div>
<div>-<b id="world-foodSpoilage">0</b>% food per year</div>
</div>
</div>
</div>
</div><!--/#world-statistic-container -->
<div class="col-lg-7 col-md-9">
<div class="text-center opacity">
<strong id="world-year-container">Year <span id="world-year">0</span></strong>
<button class="btn btn-sm btn-info" id="world-pause-btn" autocomplete="off" disabled>Start</button>
<div id="world-display-btns" class="btn-group">
<button class="btn btn-sm btn-default active" data-display="full">Display: Full</button>
<button class="btn btn-sm btn-default" data-display="dot">Dot</button>
<button class="btn btn-sm btn-default" data-display="none">None</button>
</div>
<div id="world-speed-btns" class="btn-group">
<button class="btn btn-sm btn-default active" data-speed="1">Speed: ×1</button>
<button class="btn btn-sm btn-default" data-speed="2">×2</button>
<button class="btn btn-sm btn-default" data-speed="5">×5</button>
</div>
</div><!--/ Top row -->
<div class="top-padding clearfix">
<div class="badges-vgroup hidden-lg pull-left opacity">
<div title="Men">
<div class="badge">
<i class="wicon-men"></i><div class="badge-num ellipsis" id="world-men">0</div>
</div>
</div>
<div title="Women">
<div class="badge">
<i class="wicon-women"></i><div class="badge-num ellipsis" id="world-women">0</div>
</div>
</div>
<div title="Families">
<div class="badge">
<div class="family">
<i class="wicon-women"></i><i class="wicon-men"></i>
</div>
<div class="badge-num ellipsis" id="world-families">0</div>
</div>
</div>
<div title="Boys">
<div class="badge">
<i class="wicon-boy"></i><div class="badge-num ellipsis" id="world-boys">0</div>
</div>
</div>
<div title="Girls">
<div class="badge">
<i class="wicon-girl"></i><div class="badge-num ellipsis" id="world-girls">0</div>
</div>
</div>
<div class="top-padding">
<button class="btn btn-sm btn-default js-statistic-toggle" title="Show statistic">...</button>
</div>
</div><!--/.badges-vgroup -->
<div id="world-container" class="pull-left">
<!-- Main canvas wrapper -->
<div id="world"></div>
<!-- Guide -->
<div class="guide"></div>
<!-- Introduction -->
<div id="world-intro" class="carousel slide hide" data-interval="false" data-wrap="false">
<h1>What is History?</h1>
<div class="content carousel-inner">
<div class="item active"><blockquote></blockquote><p></p><p></p></div>
<div class="item"><blockquote></blockquote><p></p><p></p></div>
<div class="item"><blockquote></blockquote><p></p><p></p></div>
<div class="item"><blockquote></blockquote><p></p><p></p></div>
<div class="item"><p></p><p></p><p></p></div>
</div>
<ol class="carousel-indicators">
<li data-target="#world-intro" data-slide-to="0" class="active"></li>
<li data-target="#world-intro" data-slide-to="1"></li>
<li data-target="#world-intro" data-slide-to="2"></li>
<li data-target="#world-intro" data-slide-to="3"></li>
<li data-target="#world-intro" data-slide-to="4"></li>
</ol>
<div class="clearfix">
<a class="prev btn btn-link pull-left disabled" href="#world-intro" data-slide="prev">
<small>← Back</small>
</a>
<a class="next btn btn-link pull-right" href="#world-intro" data-slide="next">
<small>Continue reading →</small>
</a>
</div>
<div class="start">
<button id="world-start-btn" class="btn btn-info btn-lg">Start Now</button>
</div>
</div>
</div>
</div><!--/ Middle row -->
<div class="text-center opacity">
<div class="col-xs-4 top-padding">
<div>
<strong>Population</strong>
<span id="world-labelPopulationLimit" class="label label-danger hide">Limit</span>
</div>
<h4 id="world-population">0</h4>
</div>
<div class="col-xs-4 top-padding border-side">
<div>
<strong>Food</strong>
<span id="world-labelFamine" class="label label-danger hide">Famine</span>
</div>
<h4 id="world-food">0</h4>
</div>
<div class="col-xs-4 top-padding">
<div><strong>Total IQ</strong></div>
<h4 id="world-iq">0</h4>
</div>
</div><!--/ Bottom row -->
</div>
<div class="col-lg-3 col-md-3">
<div id="knowledge" class="opacity">
<p><strong>Knowledge</strong></p>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#world-knowledgeTrending">Trending</a></li>
<li><a data-toggle="tab" href="#world-knowledgeHistory">History</a></li>
</ul>
<div class="tab-content">
<div id="world-knowledgeTrending" class="tab-pane active panel-group"></div>
<div id="world-knowledgeHistory" class="tab-pane"></div>
</div>
</div><!--/#knowledge -->
</div>
</div>
</div><!--/.container -->
<footer class="footer">
<div class="container">
<p>Licensed under the <a target="_blank" href="http://www.opensource.org/licenses/mit-license.php">MIT license</a></p>
</div>
</footer><!--/.footer -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="scripts/vendor/jquery-1.11.0.min.js"><\/script>')</script>
<script src="scripts/vendor/bootstrap.min.js"></script>
<script src="scripts/vendor/require.min.js" data-main="scripts/story"></script>
<!-- Google Analytics -->
</body>
</html>