forked from opening-hours/opening_hours_map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
114 lines (105 loc) · 6.13 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
<html>
<head><!-- {{{ -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="referrer" content="no-referrer">
<title>Map with layer for the tag opening_hours based on OpenStreetMap</title>
<link rel="icon" type="image/png" href="img/favicon.png">
<meta name="description" content="Auswertung des Tags opening_hours auf einer Karte von OpenStreetMap" />
<script type="text/javascript" src="js/OpenLayers-2.13.1/OpenLayers.js"></script>
<script type="text/javascript" src="js/OpenStreetMap.js"></script>
<script type="text/javascript" src="js/popupmarker.js"></script>
<script type="text/javascript" src="js/loadstatus.js"></script>
<script type="text/javascript" src="js/zoomstatus.js"></script>
<script type="text/javascript" src="opening_hours.js/opening_hours+deps.min.js"></script>
<script type="text/javascript" src="opening_hours.js/bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="opening_hours.js/js/countryToLanguageMapping.js"></script>
<script type="text/javascript" src="opening_hours.js/js/helpers.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="opening_hours.js/node_modules/moment/min/moment-with-locales.min.js"></script>
<script type="text/javascript" src="opening_hours.js/js/i18n-resources.js"></script>
<script type="text/javascript" src="opening_hours.js/js/opening_hours_table.js"></script>
<link rel="stylesheet" href="opening_hours.js/css/table.css"/>
<link rel="stylesheet" href="css/default.css"/>
</head> <!-- }}} -->
<body><!-- {{{ -->
<noscript>You don‘t have JavaScript enabled and that is a good thing but this tool makes heavy use of JavaScript so you need to enable it in order to use this tool. If you don’t trust the code that is going to be executed that is good as well. I encourage you to read all the source code on <a href="https://github.com/opening-hours/opening_hours.js">Github</a>. Also note that every commit and all releases are GPG signed. You might want to check this out as well :) Stay safe.</noscript>
<div id="map"></div>
<script type="text/javascript">
document.write('<h1>' + i18n.t('texts.heading map') + '</h1>');
document.title = i18n.t('texts.heading map');
document.write(getUserSelectTranslateHTMLCode());
function submitenter(myfield,e) {
var keycode;
if (window.event) {
keycode = window.event.keyCode;
}
else if (e) {
keycode = e.which;
}
else {
return true;
}
if (keycode == 13) {
useUserKey(document.getElementById(myfield.id).value);
keyChanged();
return false;
} else {
return true;
}
}
</script>
<div id="tag_selector">
<script type="text/javascript">
document.write('<strong>' + i18n.t('texts.config POIs') + '</strong>:');
</script>
<select id="tag_selector_input" name="tag_selector_input">
</select>
<form id="userKey" action="">
<input id="key" style="width:20%" name="key" onKeyPress="return submitenter(this,event)" />
</form>
<script type="text/javascript">
var select = document.getElementById('tag_selector_input');
for (var tag_ind = 0; tag_ind < related_tags.length; tag_ind++) {
select.options[select.options.length] = new Option(related_tags[tag_ind], select.options.length);
}
</script>
</div>
<script type="text/javascript">
document.write(i18n.t('texts.map is showing', { wikiUrl: wiki_url }));
document.write('<ul>');
document.write('<li>' + i18n.t('words.green') + ': ' + i18n.t('texts.open now') + '</li>');
document.write('<li>' + i18n.t('words.yellow') + ': ' + i18n.t('texts.unknown now') + '</li>');
document.write('<li>' + i18n.t('words.red') + ': ' + i18n.t('texts.closed now') + '</li>');
document.write('<li>' + i18n.t('words.violet') + ': ' + i18n.t('texts.error') + '</li>');
document.write('</ul>');
document.write(i18n.t('texts.warning', { sign: '<q>W</q>' }));
</script>
</p>
<div id="filter_selector"><p>
<script type="text/javascript">
document.write(i18n.t('texts.map filter'));
document.write('<form name="filter_form">');
var showFilterOptions = ['none', 'error', 'warnOnly', 'errorOnly', 'open', 'unknown', 'closed', 'openOrUnknown'];
for (var i = 0; i < showFilterOptions.length; i++) {
var filter_id = showFilterOptions[i];
document.write('<label><input type="radio" name="filter"'
+ ' value="' + filter_id + '"'
+ ' id="filter_form_' + filter_id + '"'
+ ' onclick="applyNewFilter(this)">' + i18n.t('texts.filter.' + filter_id) + '</input></label><br>');
}
document.write('</form>');
document.getElementById('filter_form_none').checked = true;
</script>
</p></div>
<script type="text/javascript">
document.write('</p><p>');
document.write(i18n.t('texts.data source', {
APIaTag: '<a href="https://overpass-api.de/">Overpass API</a>',
OSMaTag: '<a href="https://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a>',
OSMStartaTag: '<a href="https://www.openstreetmap.org/">OpenStreetMap</a>',
}) + '<br />');
document.write(i18n.t('texts.this website', { url: repo_url, hoster: 'GitHub' }));
document.write('</p>');
</script>
</body><!-- }}} -->
</html>