-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (103 loc) · 4.57 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,width=device-width">
<title>Wasserkiez</title>
<link rel="stylesheet" href="lib/leaflet.css" />
<link rel="stylesheet" href="style.css" />
<script src="lib/handlebars.min.js"></script>
<script src="lib/leaflet.js"></script>
<script id="refill-template" type="text/x-handlebars-template">
<h4>{{ Name }}</h4>
<div class="body">
<div class="img-wrapper">
<img src="{{ Foto.0.url }}" />
</div>
<div>{{ Straße }} {{ Hausnummer }}</div>
<div>{{ PLZ }} {{ Stadt }}</div>
<div><a href="{{ URL }}" target="_blank">{{ URL }}</a></div>
{{#if Öffnungszeiten}}
<div>Geöffnet: {{ Öffnungszeiten }}</div>
{{/if}}
</div>
</script>
<script id="testimonial-template" type="text/x-handlebars-template">
<h4>{{ Name }}</h4>
<div class="body">
<div class="img-wrapper img-testimonial">
<img src="{{ Foto.0.url }}" />
</div>
<div>{{ Zitat }}</div>
</div>
</script>
<script id="aktion-template" type="text/x-handlebars-template">
<h4>{{ Name }}</h4>
<div class="body">
<div class="img-wrapper img-testimonial">
<img src="{{ Bild.0.url }}" />
</div>
<div>{{ Beschreibung }}</div>
<div><a href="{{Link}}">{{ Link }}</a></div>
</div>
</script>
<script id="test-template" type="text/x-handlebars-template">
<h4>{{ Name }}</h4>
<div class="body">
<div>{{ Messwert }}</div>
{{#if [Coliforme Bakterien] includeZero=true }}
<p>Coliforme Bakterien: {{ [Coliforme Bakterien] }} / 100ml</p>
<div class="scale">
<div class="threshold" style="left: {{ [Coliforme Bakterien_Grenzwert_Percentage] }}%;"></div>
<div class="measurement" style="left: {{ [Coliforme Bakterien_Percentage] }}%;"></div>
</div>
{{/if}}
{{#if [Escheria Coli] includeZero=true }}
<p>Escheria Coli: {{ [Escheria Coli] }} / 100ml </p>
<div class="scale">
<div class="threshold" style="left: {{ [Escheria Coli_Grenzwert_Percentage] }}%;"></div>
<div class="measurement" style="left: {{ [Escheria Coli_Percentage] }}%;"></div>
</div>
{{/if}}
{{#if Blei includeZero=true }}
<p>Blei: {{ Blei }} ug / l</p>
<div class="scale">
<div class="threshold" style="left: {{ Blei_Grenzwert_Percentage }}%;"></div>
<div class="measurement" style="left: {{ Blei_Percentage }}%;"></div>
</div>
{{/if}}
{{#if Kupfer includeZero=true }}
<p>Kupfer: {{ Kupfer }} ug / l </p>
<div class="scale">
<div class="threshold" style="left: {{ Kupfer_Grenzwert_Percentage }}%;"></div>
<div class="measurement" style="left: {{ Kupfer_Percentage }}%;"></div>
</div>
{{/if}}
{{#if Nickel includeZero=true}}
<p>Nickel: {{ Nickel }} ug / l </p>
<div class="scale">
<div class="threshold" style="left: {{ Nickel_Grenzwert_Percentage }}%;"></div>
<div class="measurement" style="left: {{ Nickel_Percentage }}%;"></div>
</div>
{{/if}}
{{#if Natrium includeZero=true }}
<p>Natrium: {{ Natrium }} mg / l (Wasserwerk) </p>
<div class="scale">
<div class="threshold" style="left: {{ Natrium_Grenzwert_Percentage }}%;"></div>
<div class="measurement" style="left: {{ Natrium_Percentage }}%;"></div>
</div>
{{/if}}
{{#if Härtebereich}}
<p>Härtebereich: {{ Härtebereich }}</p>
{{/if}}
{{#if Anmerkung}}
<p>{{ Anmerkung }}</p>
{{/if}}
</div>
</script>
<script src="app.js" ></script>
</head>
<body>
<div class="map" id="map"></div>
</body>
</html>