-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapcompar1.htm.htm
205 lines (180 loc) · 5.8 KB
/
mapcompar1.htm.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
<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%}
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 = "pt.htm" style = "color: grey; text-decoration: none; font-family: Segoe UI">Bem-vindo</a></style> <a href = "sobre.htm" style = "color: grey; text-decoration: none; font-family: Segoe UI">Sobre</a></style> <a href = "contacto.htm" style = "color: grey; text-decoration: none; font-family: Segoe UI">Contacto</a></style> <a href = "mapcompar-en.htm" style = "color: grey; text-decoration: none; font-family: Segoe UI">English</a> </style>
</div>
<div class = "line1">
<hr>
</div>
<iframe class='iframe1' name="iframe1" scrolling='no' src="mapsdata/linu1.htm" height="450px" width="477px" seamless="seamless" frameborder="0"></iframe>
<iframe class='iframe2' scrolling='no' name="iframe2" src="mapsdata/shle1.htm" height="450px" width="477px" seamless="seamless" frameborder="0"></iframe>
<div class='boxone'>
<form class='frm1' id="frm1">
Eu quero ver:
<select id="mySelect" name="slct1" onchange="populate(this.id,'slct2')">
<option value="" disabled="" selected="">(Selecionar)
<option value="li">Estilos de Vida
<option value="sh">Estado de Saúde
</select>
<br>em termos de:
<script>
function populate(s1,s2){
var s1 = document.getElementById(s1);
var s2 = document.getElementById(s2);
s2.innerHTML = "";
if(s1.value == "li"){
var optionArray = [,"pa|Atividade Física","al|Uso de Álcool","nu|Alimentação","tb|Uso de Tabaco"];
} else if(s1.value == "sh"){
var optionArray = ["sr|Auto-avaliação de Saúde","bmi|Índice de Massa Corporal","le|Esperança de vida ao nascer"];
}
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>entre:
<select id="mySelect3">
<option value="1">Todo o mundo
<option value="2">Homens
<option value="3">Mulheres
</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/" + text + ".htm"
}
</script>
</div>
<div class='box2'>
<form class='frm2' id="frm2">
Eu quero ver
<select id="mySelect4" name="slct1" onchange="populate2(this.id,'slct5')">
<option value="" disabled="" selected="">(Selecionar)
<option value="li">Estilos de Vida
<option value="sh">Estado de Saúde
</select>
<br>em termos de:
<script>
function populate2(s4,s5){
var s4 = document.getElementById(s4);
var s5 = document.getElementById(s5);
s5.innerHTML = "";
if(s4.value == "li"){
var optionArray = [,"pa|Atividade Física","al|Uso de Álcool","nu|Alimentação","tb|Uso de Tabaco"];
} else if(s4.value == "sh"){
var optionArray = ["sr|Auto-avaliação de Saúde","bmi|Índice de Massa Corporal","le|Esperança de vida ao nascer"];
}
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>entre:
<select id="mySelect6">
<option value="1">Todo o mundo
<option value="2">Homens
<option value="3">Mulheres
</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/" + text + ".htm"
}
</script>
<div class = "line3">
<hr>
Este site foi escrito por Harry no Notepad em 2015 e é hospedado por <a href="https://support.google.com/drive/answer/2881970?hl=pt" style="color: grey" target ="_blank">Google Drive</a>.
</div>
</body>
</html>