-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
119 lines (110 loc) · 6.56 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
<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="opening_hours.js/site/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 src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha384-rY/jv8mMhqDabXSo+UCggqKtdmBfd3qC2/KvyTDNQ6PcUJXaxK1tMepoQda4g5vB" crossorigin="anonymous"></script>
<script type="text/javascript" src="opening_hours.js/build/opening_hours+deps.min.js"></script>
<script type="text/javascript" src="opening_hours.js/node_modules/i18next/i18next.min.js"></script>
<script src="opening_hours.js/node_modules/i18next-browser-languagedetector/i18nextBrowserLanguageDetector.min.js"></script>
<script type="text/javascript" src="opening_hours.js/site/js/i18n-resources.js"></script>
<script type="text/javascript" src="opening_hours.js/site/js/opening_hours_table.js"></script>
<script type="text/javascript" src="opening_hours.js/site/js/helpers.js"></script>
<script type="text/javascript" src="opening_hours.js/site/js/countryToLanguageMapping.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<link rel="stylesheet" href="opening_hours.js/site/css/table.css"/>
<link rel="stylesheet" href="css/default.css"/>
<script type="text/javascript">
if (document.title !== i18next.t('texts.heading map')) {
document.title = i18next.t('texts.heading map');
}
</script>
</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>' + i18next.t('texts.heading map') + '</h1>');
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>' + i18next.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>
<p>
<script type="text/javascript">
document.write(i18next.t('texts.map is showing', { wikiUrl: wiki_url }));
document.write('<ul>');
document.write('<li>' + i18next.t('words.green') + ': ' + i18next.t('texts.open now') + '</li>');
document.write('<li>' + i18next.t('words.yellow') + ': ' + i18next.t('texts.unknown now') + '</li>');
document.write('<li>' + i18next.t('words.red') + ': ' + i18next.t('texts.closed now') + '</li>');
document.write('<li>' + i18next.t('words.violet') + ': ' + i18next.t('texts.error') + '</li>');
document.write('</ul>');
document.write(i18next.t('texts.warning', { sign: '<q>W</q>' }));
</script>
</p>
<div id="filter_selector"><p>
<script type="text/javascript">
document.write(i18next.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)">' + i18next.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(i18next.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(i18next.t('texts.this website', { url: repo_url, hoster: 'GitHub' }));
document.write('</p>');
</script>
</body><!-- }}} -->
</html>