forked from SwissTPH/AP-Health-Effects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
353 lines (253 loc) · 11.6 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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<!DOCTYPE html>
<html>
<!--
LUDOK Interaktive Grafik
Dr. Carl GmbH 2020
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>LUDOK</title>
<script type="text/javascript" src="jquery/jquery-3.5.1.min.js"></script>
<script src="jquery/jquery-ui.js"></script>
<link rel="stylesheet" href="jquery/jquery-ui.css">
<script src="jquery/jquery.modal.min.js"></script>
<link rel="stylesheet" href="jquery/jquery.modal.css"/>
<script type="text/javascript" src="jquery/jquery-ui-touch-punch.min.js"></script>
<link rel="stylesheet" type="text/css" href="ludok.css">
<script type="text/javascript" src="zz_utils.js"></script>
<script type="text/javascript" src="json_matrix.js"></script>
<script type="text/javascript" src="json_text.js"></script>
<script>
// Sprachauswahl
glb_Lang = location.search.split('a_lang=')[1] ? location.search.split('a_lang=')[1] : 'de';
// Mobile oder Desktop?
Check_mobile();
$(document).ready(function () {
// Init
Tooltips_Init();
// Responsiveness
$(window).resize(function () {
var old_isMobile = glb_isMobile;
Check_mobile();
if (old_isMobile != glb_isMobile) {
ResetAll();
$('.div_PageContent #div_Menu_Noxen').hide();
$('.div_PageContent_mobile #div_Menu_Noxen').hide();
$('#div_Menu_Sterblichkeit').hide();
$('#img_mensch_empty').attr("usemap", "");
}
}); // $(window).resize
// Initiale Höhenanpassung iFrame
setTimeout(function () {
var ht = $('body').height();
var id = 'ifr_LUDOK'; //iframe id
parent.postMessage(JSON.stringify({'docHeight': ht, 'id': id}), '*');
}, 400);
// Sonderbehandlung fürs geliebte iPad
if (navigator.userAgent.indexOf('iPad') == -1) { // NOT an iPad
// Mouseover für Organe
Set_Organ_Mouseover('Stoffwechsel');
Set_Organ_Mouseover('Herz');
Set_Organ_Mouseover('Nervensystem');
Set_Organ_Mouseover('Atemwege');
} else {
// Tooltip closing for iPad
$('.div_PageContent').on('click', function () {
$('img[id^="i_"]').tooltip('close');
});
$('.div_PageContent_mobile').on('click', function () {
$('img[id^="i_"]').tooltip('close');
});
}
}); // $(document).ready
</script>
</head>
<body>
<!-- for testing >
<div style="position: fixed; top: 20px; right: 20px; background: lightblue; padding: 10px; z-index: 99">
<a href="index.html?a_lang=de">DE</a><br>
<a href="index.html?a_lang=en">EN</a><br>
<a href="index.html?a_lang=fr">FR</a><br>
<a href="index.html?a_lang=it">IT</a><br>
<a href="index.html?a_lang=tr">TR</a>
</div>
< for testing end. -->
<!-- Desktop Version -->
<div class="div_PageContent">
<div class="div_Menu">
<div class="div_Menu_Line">
<script>
echo('<div class="div_i_Container">');
echo('<img src="graph/ic_info.png" class="ic_info ic_info_top" id="i_Kurzzeit" title="">');
echo('<button class="btn_round btn_round_zeit" onclick="Choose_Zeit(\'K\')" id="btn_Zeit_K">' + Get_UI('btn_Kurzzeit', glb_Lang) + '</button>');
echo('</div>');
echo(' ');
echo('<div class="div_i_Container">');
echo('<img src="graph/ic_info.png" class="ic_info ic_info_top" id="i_Langzeit" title="">');
echo('<button class="btn_round btn_round_zeit" onclick="Choose_Zeit(\'L\')" id="btn_Zeit_L">' + Get_UI('btn_Langzeit', glb_Lang) + '</button>');
echo('</div>');
</script>
</div>
<div class="div_Menu_Line hidden" id="div_Menu_Noxen" style="left: 295px; top: 12px; text-align: left;">
<script>
Draw_BtnNoxe('Feinstaub');
Draw_BtnNoxe('Ozon');
Draw_BtnNoxe('Stickstoffdioxid');
Draw_BtnNoxe('Schwefeldioxid');
Draw_BtnNoxe('Kohlenmonoxid');
</script>
</div>
</div> <!-- div_Menu -->
<img src="graph/ic_tph.png" class="img_LogoTC cursorHand" onclick="window.location.reload()" title="Reset">
<div class="div_Main">
<span id="div_Mensch" style="display: inline-block; position: relative; margin-top: 80px;">
<img src="graph/mensch.png" height="1000px" id="img_Mensch">
<img src="graph/sterblichkeit.png" id="img_Organ_Sterblichkeit" height="1000px" class="img_Organ"
style="left: 0px; top: 0px">
<img src="graph/notfaelle.png" id="img_Organ_Notfaelle" height="1000px" class="img_Organ"
style="left: 0px; top: 0px">
<img src="graph/nerven.png" id="img_Organ_Nervensystem" class="img_Organ" style="left: 0px; top: 0px">
<img src="graph/herz.png" id="img_Organ_Herz" class="img_Organ" style="left: 1px; top: 0px">
<img src="graph/lunge.png" id="img_Organ_Atemwege" class="img_Organ" style="left: 117px; top: 137px">
<img src="graph/leber.png" id="img_Organ_Stoffwechsel" class="img_Organ" style="left: 123px; top: 327px">
<img src="graph/mensch_empty.png" style="position: absolute; top: 0; left: 0;" id="img_mensch_empty"
usemap="(set in Choose_Zeit)">
<map name="image-map" id="image-map">
<area id="map_Stoffwechsel" shape="rect" coords="120,326,246,430" href="#"
onClick="Show_Organ('Stoffwechsel')" alt=""/>
<area id="map_Nervensystem" shape="rect" coords="145,9,247,85" href="#" onClick="Show_Organ('Nervensystem')"
alt=""/>
<area id="map_Herz" shape="rect" coords="176,242,226,307" href="#" onClick="Show_Organ('Herz')" alt=""/>
<area id="map_Atemwege" shape="rect" coords="119,139,278,341" href="#" onClick="Show_Organ('Atemwege')"
alt=""/>
<area id="map_Herz" shape="rect" coords="176,84,383,997" href="#" onClick="Show_Organ('Herz')" alt=""/>
<area id="map_Nervensystem" shape="rect" coords="2,84,173,1005" href="#"
onClick="Show_Organ('Nervensystem')" alt=""/>
</map>
</span>
<div class="div_Menu_Sterblichkeit hidden" id="div_Menu_Sterblichkeit">
<script>
Draw_BtnOrgan('Sterblichkeit');
Draw_BtnOrgan('Notfaelle');
</script>
</div>
</div> <!-- div_Main -->
<div class="div_Results">
<script>
Draw_IntroText();
</script>
<div class="margin_bottom" id="div_Results_Atemwege">
</div>
<div class="margin_bottom" id="div_Results_Herz">
</div>
<div class="margin_bottom" id="div_Results_Nervensystem">
</div>
<div class="margin_bottom" id="div_Results_Stoffwechsel">
</div>
<div class="margin_bottom" id="div_Results_Sterblichkeit">
</div>
<div class="margin_bottom" id="div_Results_Notfaelle">
</div>
<script>
Draw_Legende();
</script>
</div> <!-- div_Results -->
<br><br>
<!-- Untere Buttonleiste -->
<div class="div_Flex_Row">
<script>
Draw_BtnHintergrundInfo('Luftbelastung');
Draw_BtnHintergrundInfo('Grenzwerte');
Draw_BtnHintergrundInfo('Quellen');
Draw_BtnHintergrundInfo('Hintergrund');
Draw_BtnHintergrundInfo('Beitrag');
Draw_BtnHintergrundInfo('Referenzen');
Draw_BtnHintergrundInfo('Impressum');
</script>
</div>
<br><br>
</div> <!-- div_PageContent -->
<!-- Mobile Version -->
<div class="div_PageContent_mobile">
<img src="graph/ic_tph.png" width="130px" class="cursorHand margin_10" onclick="window.location.reload()"
title="Reset">
<br><br>
<div class="div_Menu">
<script>
echo('<div class="div_i_Container">');
echo('<img src="graph/ic_info.png" class="ic_info ic_info_top" id="i_Kurzzeit" title="">');
echo('<button class="btn_round btn_round_zeit" onclick="Choose_Zeit(\'K\')" id="btn_Zeit_K">' + Get_UI('btn_Kurzzeit', glb_Lang) + '</button>');
echo('</div>');
echo('<div class="div_i_Container">');
echo('<img src="graph/ic_info.png" class="ic_info ic_info_top" id="i_Langzeit" title="">');
echo('<button class="btn_round btn_round_zeit" onclick="Choose_Zeit(\'L\')" id="btn_Zeit_L">' + Get_UI('btn_Langzeit', glb_Lang) + '</button>');
echo('</div>');
</script>
<br>
<div class="div_Menu_Line hidden" id="div_Menu_Noxen" style="">
<script>
Draw_BtnNoxe('Feinstaub', true);
Draw_BtnNoxe('Ozon', true);
Draw_BtnNoxe('Stickstoffdioxid', true);
Draw_BtnNoxe('Schwefeldioxid', true);
Draw_BtnNoxe('Kohlenmonoxid', true);
</script>
<br>
<script>
Draw_BtnOrgan('Atemwege', true);
Draw_BtnOrgan('Herz', true);
Draw_BtnOrgan('Nervensystem', true);
Draw_BtnOrgan('Stoffwechsel', true);
Draw_BtnOrgan('Sterblichkeit', true);
Draw_BtnOrgan('Notfaelle', true);
</script>
</div>
</div> <!-- div_Menu -->
<div class="div_Results">
<script>
Draw_IntroText();
</script>
<div class="center hidden" id="div_Mensch_mobile">
<img src="graph/mensch.png" height="400px" id="img_Mensch_mobile"></img><br>
</div>
<div class="margin_bottom" id="div_Results_Atemwege">
</div>
<div class="margin_bottom" id="div_Results_Herz">
</div>
<div class="margin_bottom" id="div_Results_Nervensystem">
</div>
<div class="margin_bottom" id="div_Results_Stoffwechsel">
</div>
<div class="margin_bottom" id="div_Results_Sterblichkeit">
</div>
<div class="margin_bottom" id="div_Results_Notfaelle">
</div>
<script>
Draw_Legende();
</script>
<div class="pad_10 margin_bottom" id="div_Results_Zusatzinfo">
</div>
</div> <!-- div_Results -->
<br><br>
<!-- Untere Buttonleiste -->
<div class="div_Flex_Row">
<script>
Draw_BtnHintergrundInfo('Luftbelastung', true);
Draw_BtnHintergrundInfo('Grenzwerte', true);
Draw_BtnHintergrundInfo('Quellen', true);
Draw_BtnHintergrundInfo('Hintergrund', true);
Draw_BtnHintergrundInfo('Beitrag', true);
Draw_BtnHintergrundInfo('Referenzen', true);
Draw_BtnHintergrundInfo('Impressum', true);
</script>
<div class="div_HintergrundInfo" id="div_HintergrundInfo">
</div>
</div>
<br><br>
</div> <!-- div_PageContent_mobile -->
<div class="div_Popup_modal modal" id="div_Popup_modal">
Das ist das modale Popup
</div>
</body>
</html>