forked from OpenRailwayMap/OpenRailwayMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile.php
153 lines (139 loc) · 6.55 KB
/
mobile.php
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
<?php
/*
OpenRailwayMap Copyright (C) 2012 Alexander Matheisen
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
See https://wiki.openstreetmap.org/wiki/OpenRailwayMap for details.
*/
require_once("functions.php");
if (isset($_GET['lang']) && array_key_exists($_GET['lang'], $langs))
$lang = $_GET['lang'];
else
$lang = getUserLang();
includeLocale($lang);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="<?php echo $lang; ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>OpenRailwayMap</title>
<meta name="title" content="OpenRailwayMap" />
<meta name="application-name" content="OpenRailwayMap" />
<meta name="page-topic" content="OpenRailwayMap" />
<meta name="description" content="OpenRailwayMap - An OpenStreetMap-based project for creating a map of the world's railway infrastructure." />
<meta name="keywords" content="openstreetmap, openrailwaymap, alexander matheisen, rurseekatze, openlayers, osm, matheisen, orm, eisenbahnkarte, bahnkarte, railmap, railway, railways, eisenbahn, streckenkarte" />
<meta name="robots" content="index,follow" />
<link rel="alternate" type="application/rss+xml" title="OpenRailwayMap Deutsch" href="https://blog.openrailwaymap.org/de.rss" hreflang="de" />
<link rel="alternate" type="application/rss+xml" title="OpenRailwayMap English" href="https://blog.openrailwaymap.org/en.rss" hreflang="en" />
<link rel="search" type="application/opensearchdescription+xml" href="opensearch.xml" title="OpenRailwayMap" />
<link rel="shortcut icon" href="img/openrailwaymap-16.png" type="image/png" />
<link rel="icon" href="img/openrailwaymap-16.png" type="image/png" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<link rel="stylesheet" type="text/css" href="css/mobile.css" />
<link rel="stylesheet" type="text/css" href="css/leaflet.css" />
<script type="text/javascript" src="js/leaflet.js"></script>
<link rel="stylesheet" href="css/Leaflet.EditInOSM.css" />
<script src="js/Leaflet.EditInOSM.js"></script>
<script type="text/javascript" src="js/L.TileLayer.Grayscale.js"></script>
<script>L_DISABLE_3D = true;</script>
<?php
urlArgsToParam(true, $urlbase);
?>
<script type="text/javascript" src="js/search.js"></script>
<script type="text/javascript" src="js/startposition.js"></script>
<script type="text/javascript" src="js/timestamp.js"></script>
<script type="text/javascript" src="js/mobilemenu.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
<script type="text/javascript" src="js/mobile.js"></script>
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="OpenRailwayMap">
<link rel="manifest" href="webapp-manifest.json">
<meta name="theme-color" content="#4e9a06">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@openrailwaymap" />
<meta name="twitter:title" content="OpenRailwayMap" />
<meta name="twitter:description" content="OpenRailwayMap - An OpenStreetMap-based project for creating a map of the world&#39;s railway infrastructure." />
<meta name="twitter:url" content="https://www.openrailwaymap.org/">
<meta name="twitter:image" content="https://www.openrailwaymap.org/img/openrailwaymap-310.png" />
</head>
<body onload="createMap(false);">
<div id="header">
<b>OpenRailwayMap</b>
<div id="menuButton"></div>
</div>
<div id="menu" class="menuOut">
<div class="box">
<div class="headEntry"><?=_("Style")?></div>
<div id="styleSelectionBar"></div>
</div>
<div class="box">
<div class="headEntry"><?=_("Search")?></div>
<div class="headEntry">
<div>
<input type="text" id="searchBox" size="21" placeholder="<?=_('Search')?>" />
</div>
<div id="clearButton" onclick="Search.clear();">
<b>❌</b>
</div>
<div id="searchButton" onclick="Search.request();">
<b>↵</b>
</div>
</div>
<div id="searchBar" class="infoBarOut"></div>
</div>
<div class="box">
<div class="headEntry"><?=_("Legend")?></div>
<div id="legendBar">
<iframe id="legend" scrolling="no" onload="setIframeHeight(this.id)" src=""></iframe>
</div>
</div>
<div class="box">
<div class="headEntry"><?=_("Last update")?></div>
<p id="info"></p>
</div>
<div class="box">
<div class="headEntry"><?=_("Language")?></div>
<?php
foreach ($langs as $short => $name)
{
if ($short == $lang)
echo '<div class="resultEntry">'.$name[1].'<small>✓</small></div>';
else
echo '<div class="resultEntry" onclick="changeLanguage(\''.$short.'\')">'.$name[1].'</div>';
}
?>
</div>
<hr class="separator" />
<div class="box">
<a style="display:block" class="resultEntry" id="infoButton" href="https://wiki.openstreetmap.org/wiki/OpenRailwayMap"><?=_("More Info")?></a>
<a style="display:block" class="resultEntry" id="infoButton" href="https://blog.openrailwaymap.org/"><?=_("Blog")?></a>
<a style="display:block" class="resultEntry" id="contactButton" href="#"><?=_("Contact")?></a>
<a style="display:block" class="resultEntry" id="paypalButton" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9KCKT39N7AGL8"><?=_("Donate")?></a>
<a style="display:block" class="resultEntry" id="imprintButton" href="/imprint"><?=_("Imprint & Privacy Policy")?></a>
<a style="display:block" class="resultEntry" id="permalinkButton" href=""><?=_("Permalink")?></a>
<a style="display:block" class="resultEntry" id="desktopButton" href=""><?=_("Desktop version")?></a>
<script language="javascript">
var usr = "info";
var dom = "openrailwaymap";
var tld = "org";
gEBI("contactButton").href = "mailto:"+usr+"@"+dom+"."+tld;
</script>
</div>
</div>
<div id="locateButton"></div>
<script language="javascript">
if (isMobileDevice())
gEBI("locateButton").className = "leaflet-touch";
</script>
<div id="mapFrame">
<noscript>
<p><b><?=_("Javascript is not activated")?></b><br /><?=_("Javascript is needed to show the map and run this website. Please turn on Javascript in your browser settings.")?></p>
</noscript>
</div>
</body>
</html>