-
Notifications
You must be signed in to change notification settings - Fork 0
/
Simulation.html
166 lines (150 loc) · 6.97 KB
/
Simulation.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>IntlPop Simulation Window</title>
<link rel="stylesheet" href="lib/jquery-ui.css">
<link rel="stylesheet" href="lib/jquery.dropdown.css" />
<link rel="stylesheet" href="Simulation.css" />
<link rel="stylesheet" href="lib/tipsy.css">
<link rel="stylesheet" href="lib/pyramid.css" />
</head>
<body>
<div id="container">
<div id="header"><h2 id="countryField"></h2></div>
<div id="main">
<div id="pyramidPanel">
<div class="pyramid"></div>
<p class="pyrlabelm" id="fp0">100+</p>
<p class="pyrlabelm" id="fp1">95-99</p>
<p class="pyrlabelm" id="fp2">90-94</p>
<p class="pyrlabelm" id="fp3">85-89</p>
<p class="pyrlabelm" id="fp4">80-84</p>
<p class="pyrlabelm" id="fp5">75-79</p>
<p class="pyrlabelm" id="fp6">70-74</p>
<p class="pyrlabelm" id="fp7">65-69</p>
<p class="pyrlabelm" id="fp8">60-64</p>
<p class="pyrlabelm" id="fp9">55-59</p>
<p class="pyrlabelm" id="fp10">50-54</p>
<p class="pyrlabelm" id="fp11">45-49</p>
<p class="pyrlabelm" id="fp12">40-44</p>
<p class="pyrlabelm" id="fp13">35-39</p>
<p class="pyrlabelm" id="fp14">30-34</p>
<p class="pyrlabelm" id="fp15">25-29</p>
<p class="pyrlabelm" id="fp16">20-24</p>
<p class="pyrlabelm" id="fp17">15-19</p>
<p class="pyrlabelm" id="fp18">10-14</p>
<p class="pyrlabelm" id="fp19">5-9</p>
<p class="pyrlabelm" id="fp20">0-4</p>
<p class="pyrlabelf" id="fp0">100+</p>
<p class="pyrlabelf" id="fp1">95-99</p>
<p class="pyrlabelf" id="fp2">90-94</p>
<p class="pyrlabelf" id="fp3">85-89</p>
<p class="pyrlabelf" id="fp4">80-84</p>
<p class="pyrlabelf" id="fp5">75-79</p>
<p class="pyrlabelf" id="fp6">70-74</p>
<p class="pyrlabelf" id="fp7">65-69</p>
<p class="pyrlabelf" id="fp8">60-64</p>
<p class="pyrlabelf" id="fp9">55-59</p>
<p class="pyrlabelf" id="fp10">50-54</p>
<p class="pyrlabelf" id="fp11">45-49</p>
<p class="pyrlabelf" id="fp12">40-44</p>
<p class="pyrlabelf" id="fp13">35-39</p>
<p class="pyrlabelf" id="fp14">30-34</p>
<p class="pyrlabelf" id="fp15">25-29</p>
<p class="pyrlabelf" id="fp16">20-24</p>
<p class="pyrlabelf" id="fp17">15-19</p>
<p class="pyrlabelf" id="fp18">10-14</p>
<p class="pyrlabelf" id="fp19">5-9</p>
<p class="pyrlabelf" id="fp20">0-4</p>
</div>
<div id="chartPanel">
<div id="plotArea"></div>
<div class="fieldBox">
<button id="fertilityButton">Fertility Rate</button>
<p id="fertilityField"></p>
</div>
<div class="fieldBox">
<button id="lifeExpButton">Life Expectancy</button>
<p id="lifeExpField"></p>
</div>
<div class="fieldBox">
<button id="netMigButton">Net Migration</button>
<p id="netMigField"></p>
</div>
</div>
<div id="simPanel">
<div id="box">
<p id="initialPopField">Initial Population:</p>
<hr>
<p class="currYearField field0"></p>
<p class="currPopField field0"></p>
<br />
<p class="currYearField field1"></p>
<p class="currPopField field1"></p>
<br />
<p class="currYearField field2"></p>
<p class="currPopField field2"></p>
<br />
</div>
<button id="simBackButton" disabled="disabled" autocomplete="off">< Sim</button>
<button id="simOptionsButton" value="Dropdown"
data-dropdown="#optionsDropDown" data-horizontal-offset="-85">Options</button>
<button id="simForwardButton" disabled="disabled" autocomplete="off">Sim ></button>
</div>
</div> <!-- End Main -->
<div id="output"><p class="output">Output text field.</p></div>
</div>
<!-- Hidden Popups -->
<div id="fertilityPopup" class="targetPopup">
<p>Adjust the Total Fertility Rate</p>
<p class="targetLabel">Target Value: <input id="fertilityTargetValue" class="targetInput" type="text"/></p>
<p class="targetLabel">Target Year: <input id="fertilityTargetYear" class="targetInput" type="text"/></p>
<input class="closeButton" id="fertilityCloseButton" type="Button"
value="Close"/>
<input class="fertilityRatesOpenButton" id="fertilityRatesOpenButton"
type="Button" value="Adjust Individual Rates"/>
</div>
<div id="fertilityRatesPopup">
<p>Adjust Individual Fertility Rates</p>
<p class="targetLabel" id="birthlab1">15-19: <input id="birth1" class="birthInput" type="text"/></p>
<p class="targetLabel" id="birthlab2">20-24: <input id="birth2" class="birthInput" type="text"/></p>
<p class="targetLabel" id="birthlab3">25-29: <input id="birth3" class="birthInput" type="text"/></p>
<p class="targetLabel" id="birthlab4">30-34: <input id="birth4" class="birthInput" type="text"/></p>
<p class="targetLabel" id="birthlab5">35-39: <input id="birth5" class="birthInput" type="text"/></p>
<p class="targetLabel" id="birthlab6">40-44: <input id="birth6" class="birthInput" type="text"/></p>
<p class="targetLabel" id="birthlab7">45-49: <input id="birth7" class="birthInput" type="text"/></p>
<input class="closeButton" id="fertilityRatesCloseButton" type="Button"
value="Close"/>
</div>
<div id="lifeExpPopup" class="targetPopup">
<p>Adjust the Life Expectancy</p>
<p class="targetLabel">Target Value: <input id="lifeExpTargetValue" class="targetInput" type="text"/></p>
<p class="targetLabel">Target Year: <input id="lifeExpTargetYear" class="targetInput" type="text"/></p>
<p class="targetLabel">Infant Mortality Rate: <input id="IMR" class="lifeExpInput" type="text"/></p>
<input class="closeButton" id="lifeExpCloseButton" type="Button" value="Close"/>
</div>
<div id="netMigPopup" class="targetPopup">
<p>Adjust the Net Migration</p>
<p class="targetLabel">Target Value: <input id="netMigTargetValue" class="targetInput" type="text"/></p>
<p class="targetLabel">Target Year: <input id="netMigTargetYear" class="targetInput" type="text"/></p>
<input class="closeButton" id="netMigCloseButton" type="Button" value="Close"/>
</div>
<div id="optionsDropDown" class="dropdown-menu">
<ul>
<li id="newSimButton"><a href="#">Run another simulation</a></li>
<li id="resetButton"><a href="#">Reset the simulation</a></li>
</ul>
</div>
<!-- Load Javascripts -->
<script src="lib/jquery.min.js"></script>
<script src="lib/jquery-ui.min.js"></script>
<script src="lib/jquery.dropdown.js"></script>
<script src="lib/raphael-min.js"></script>
<script src="lib/g.raphael-min.js"></script>
<script src="lib/g.line-min.js"></script>
<script src="lib/pyramid.js"></script>
<script src="lib/tipsy.js"></script>
<script src="Simulation.js"></script>
</body>
</html>