-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapcompar-en.htm
219 lines (188 loc) · 6.41 KB
/
mapcompar-en.htm
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
<html>
<title> Mapas do Saúde no Brasil </title>
<link rel="icon" type="image/ico" href="north.png">
<style>
body{height: 990px; width: 960px; margin-left: auto; margin-right: auto; font-size: 16px; font-family: Segoe UI; color: grey;}
div.name {position: absolute; top: 20px; z-index: 2}
div.line1 {position: relative; top: 55px; width: 960px}
div.cont {position: relative; top: 50px; font-size: 130%; width: 960px; z-index: 2}
div.line3 {position: relative; top: 80px; width 960px; text-size: 75%}
div.message {line-height: 160%; position: relative; top: -40px; font-size: 120%; margin-left: auto; margin-right: auto; width: 900px}
div.cite {position: relative; top: -18px; font-size: 65%; margin-left: auto; margin-right: auto; width: 900px}
iframe.iframe1 {
position: relative;
top: 70px;
left: -10px;
overflow: hidden;
}
iframe.iframe2 {
position: relative;
top: 70px;
left: 0px;
overflow: hidden;
}
select{
font-size: 18px;
font-family: Segoe UI;
position: relative;
right:0px;
color: grey;
}
div.boxone{
width: 460px;
border: 1px solid #D3D3D3;
height: 93px;
position: relative;
top: 45px;
left: 0px;
line-height: 150%;
font-family: Segoe UI;
font-size: 18px
}
form {
position: relative;
top: 5px;
left: 10px;
right: 80px;
font-family: Segoe UI;
}
div.box2{
width: 460px;
border: 1px solid #D3D3D3;
height: 93px;
position: relative;
top: -50px;
left: 490px;
line-height: 150%;
font-family: Segoe UI;
font-size: 18px;
}
button{
position: relative;
top: -91px;
left: 390px;
width: 60px;
height: 73px;
font-family: Segoe UI
}
</style>
</head>
<body>
<div class = "name"; style="font-size: 340%"><a href="index.htm" style="color: grey; text-decoration: none; font-family: Segoe UI">Harry Maher</style></a></div>
<div class = "cont" align="right">
<a href = "index.htm" style = "color: grey; text-decoration: none; font-family: Segoe UI">Home</a></style> <a href = "content.htm" style = "color: grey; text-decoration: none; font-family: Segoe UI">Content</a></style> <a href = "contact.htm" style = "color: grey; text-decoration: none; font-family: Segoe UI">Contact</a></style>
</div>
<div class = "line1">
<hr>
</div>
<iframe class='iframe1' name="iframe1" scrolling='no' src="mapsdata/elinu1.htm" height="450px" width="477px" seamless="seamless" frameborder="0"></iframe>
<iframe class='iframe2' scrolling='no' name="iframe2" src="mapsdata/eshle1.htm" height="450px" width="477px" seamless="seamless" frameborder="0"></iframe>
<div class='boxone'>
<form class='frm1' id="frm1">
I want to see:
<select id="mySelect" name="slct1" onchange="populate(this.id,'slct2')">
<option value="" disabled="" selected="">(Select)
<option value="li">Lifestyles
<option value="sh">State of Health
</select>
<br>in terms of:
<script>
function populate(s1,s2){
var s1 = document.getElementById(s1);
var s2 = document.getElementById(s2);
s2.innerHTML = "";
if(s1.value == "li"){
var optionArray = ["pa|Physical Activity","al|Alcohol Use","nu|Nutrition","tb|Tobacco Use"];
} else if(s1.value == "sh"){
var optionArray = ["sr|Self-Health Rating","bmi|Body Mass Index","le|Life Expectancy"];
}
for(var option in optionArray){
var pair = optionArray[option].split("|");
var newOption = document.createElement("option");
newOption.value = pair[0];
newOption.innerHTML = pair[1];
s2.options.add(newOption);
}
}
</script>
<select id="slct2" name="slct2"></select>
<br>among:
<select id="mySelect3">
<option value="1">Everyone
<option value="2">Men
<option value="3">Women
</select>
</form> <button class='button1' onclick="myFunction()">OK!</button>
<script>
function myFunction() {
var x = document.getElementById("frm1");
var text = "";
var i;
for (i = 0; i < x.length ;i++) {
text += x.elements[i].value;
}
frames['iframe1'].location.href = "mapsdata/e" + text + ".htm"
}
</script>
</div>
<div class='box2'>
<form class='frm2' id="frm2">
I want to see
<select id="mySelect4" name="slct1" onchange="populate2(this.id,'slct5')">
<option value="" disabled="" selected="">(Select)
<option value="li">Lifestyles
<option value="sh">State of Health
</select>
<br>in terms of:
<script>
function populate2(s4,s5){
var s4 = document.getElementById(s4);
var s5 = document.getElementById(s5);
s5.innerHTML = "";
if(s4.value == "li"){
var optionArray = ["pa|Physical Activity","al|Alcohol Use","nu|Nutrition","tb|Tobacco Use"];
} else if(s4.value == "sh"){
var optionArray = ["sr|Self-Health Rating","bmi|Body Mass Index","le|Life Expectancy"];
}
for(var option in optionArray){
var pair = optionArray[option].split("|");
var newOption = document.createElement("option");
newOption.value = pair[0];
newOption.innerHTML = pair[1];
s5.options.add(newOption);
}
}
</script>
<select id="slct5" name="slct5"></select>
<br>among:
<select id="mySelect6">
<option value="1">Everyone
<option value="2">Men
<option value="3">Women
</select>
</form> <button class='button2' onclick="myFunction2()">OK!</button>
</div>
<script>
function myFunction2() {
var x = document.getElementById("frm2");
var text = "";
var i;
for (i = 0; i < x.length ;i++) {
text += x.elements[i].value;
}
frames['iframe2'].location.href = "mapsdata/e" + text + ".htm"
}
</script>
<div class = "message">
Here is a set of interactive set of maps intended to allow users to explore how lifestyles influence (or don't influence) health outcomes at the Brazilian state level. For my final project I used data at the municipal level from <a href="http://www.atlasbrasil.org.br/2013/" style = "color: grey; font-family: Segoe UI">the atlas of human development in Brazil</a>.
</div>
<div class = "cite">
Data were obtained from the Instituto Brasileiro de Geografia e Estatística (IBGE) at: <a href="http://www.ibge.gov.br/home/" style="color:grey"> http://www.ibge.gov.br/home</a><br>
</div>
<div class = "line3">
<hr>
This website was written by Harry in Notepad in 2015 and is freely hosted by <a href="https://support.google.com/drive/answer/2881970?hl=pt" style="color: grey" target ="_blank">Google Drive</a>.
</div>
</body>
</html>