forked from cheeaun/busrouter-sg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (133 loc) · 6.58 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
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width,initial-scale=1,viewport-fit=cover"
/>
<title>BusRouter SG - Singapore Bus Routes Explorer</title>
<link rel="stylesheet" href="assets/app.css" />
<link rel="preconnect" href="https://api.mapbox.com" crossorigin />
<link rel="preconnect" href="https://arrivelah2.busrouter.sg" crossorigin />
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
<link rel="dns-prefetch" href="https://api.mapbox.com" crossorigin />
<link rel="dns-prefetch" href="https://arrivelah2.busrouter.sg" crossorigin />
<link
rel="dns-prefetch"
href="https://www.googletagmanager.com"
crossorigin
/>
<link
rel="preload"
as="script"
href="https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.js"
/>
<link
rel="preload"
as="style"
href="https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.css"
/>
<link rel="alternate" href="https://busrouter.sg/?lng=en" hreflang="en" />
<link rel="alternate" href="https://busrouter.sg/?lng=ms" hreflang="ms" />
<link rel="alternate" href="https://busrouter.sg/?lng=zh" hreflang="zh" />
<link rel="alternate" href="https://busrouter.sg/?lng=ta" hreflang="ta" />
<link rel="alternate" href="https://busrouter.sg/?lng=ja" hreflang="ja" />
<meta
name="description"
content="Explore bus stops and routes on the map for all bus services in Singapore, with realtime bus arrival times and per-bus-stop passing routes overview."
/>
<link rel="manifest" href="manifest.webmanifest" />
<link rel="icon" type="image/png" sizes="192x192" href="icons/icon-192.png" />
<link rel="apple-touch-icon" sizes="192x192" href="icons/icon-192.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<meta
name="apple-mobile-web-app-title"
content="BusRouter SG"
data-i18n-key="app.name"
data-i18n-attr="content"
/>
<meta name="theme-color" content="#F9F5ED" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:url" property="og:url" content="https://busrouter.sg/" />
<meta
name="twitter:title"
property="og:title"
content="BusRouter SG - Singapore Bus Routes Explorer"
/>
<meta
name="twitter:description"
property="og:description"
content="Explore bus stops and routes on the map for all bus services in Singapore, with realtime bus arrival times and per-bus-stop passing routes overview."
/>
<meta
name="twitter:image"
property="og:image"
content="https://i.imgur.com/Khk2gmX.png"
/>
<div id="map"></div>
<header id="logo">
<h1>
<svg viewBox="0 0 120 120" width="48" height="48">
<title data-i18n-key="app.name">BusRouter SG</title>
<circle
cx="60"
cy="60"
r="56.7"
fill="#fff"
stroke="#00454d"
stroke-width="6.6"
/>
<path
fill="#00454d"
d="M86.08 36.76c-.8-3.65-3.28-5.1-7.04-6.55-3.66-1.45-12.5-3.15-19.03-3.2-6.54.05-15.37 1.76-19.06 3.2-3.73 1.44-6.24 2.9-7 6.54l-2.8 20.15v27.77h4.84V89c-.02 5.33 8.3 5.33 8.32.02v-4.35h31.42V89c-.02 5.33 8.3 5.33 8.3.02v-4.35h4.85V56.9l-2.8-20.14zM48.12 32.1H71.9c2.32 0 2.32 3.27 0 3.28H48.13c-2.35 0-2.35-3.24 0-3.24v-.04zm-8 43.87c-2.2 0-4-1.67-4-3.74 0-2.05 1.78-3.72 3.94-3.72 2.18 0 4 1.68 4 3.73-.03 2.08-1.82 3.73-4.03 3.74h.08zM59.7 59h-21.2c-2.1.02-2.5-1.38-2.32-2.76l2.2-14.63c.3-1.76.94-2.92 3.44-2.94H78.2c2.53 0 3.14 1.18 3.45 2.94l2.24 14.63c.2 1.4-.25 2.77-2.3 2.77H59.73zm20.16 16.97c-2.15 0-4-1.67-4-3.74 0-2.05 1.84-3.72 4-3.72 2.23 0 4 1.68 4.08 3.73 0 2.08-1.78 3.73-4 3.74h-.08z"
/>
<circle cx="96" cy="96" r="24" fill="#ef2c2e" />
<path
fill="#fff"
d="M87.6 105.38c-1.4 0-2.75-.24-4.03-.72-1.3-.48-2.48-1.2-3.57-2.2l1.92-2.3c.9.77 1.8 1.36 2.7 1.77.9.4 1.92.6 3.06.6 1 0 1.78-.2 2.36-.62.58-.4.87-.96.87-1.65v-.06c0-.34-.04-.63-.16-.88-.1-.25-.32-.5-.62-.7-.3-.24-.73-.45-1.26-.64-.53-.2-1.22-.38-2.08-.57-.97-.22-1.84-.47-2.6-.76-.75-.3-1.4-.63-1.9-1.04-.5-.4-.9-.9-1.18-1.5-.26-.6-.4-1.3-.4-2.14v-.05c0-.77.15-1.5.46-2.14.3-.65.74-1.2 1.28-1.67.55-.47 1.2-.83 1.96-1.1.76-.25 1.6-.38 2.5-.38 1.34 0 2.54.2 3.6.6 1.08.38 2.08.95 3.02 1.7l-1.72 2.42c-.83-.6-1.66-1.08-2.48-1.4-.8-.32-1.64-.48-2.47-.48-.94 0-1.67.2-2.2.63-.5.4-.77.92-.77 1.52v.05c0 .35.06.66.18.93s.34.5.67.73c.32.22.76.42 1.33.6.57.2 1.28.4 2.15.6.97.25 1.82.52 2.56.82.74.3 1.36.66 1.84 1.08.5.42.86.92 1.1 1.48.27.58.4 1.23.4 1.98v.05c0 .86-.17 1.62-.5 2.3-.3.67-.75 1.25-1.32 1.72-.56.46-1.25.82-2.05 1.06-.8.26-1.67.38-2.63.38M104.4 105.43c-1.44 0-2.73-.24-3.9-.72-1.16-.46-2.15-1.12-2.98-1.97-.82-.84-1.46-1.83-1.9-2.97-.46-1.13-.7-2.37-.7-3.7V96c0-1.27.24-2.48.7-3.62.47-1.15 1.12-2.15 1.96-3 .84-.87 1.84-1.55 3-2.06 1.15-.5 2.4-.75 3.78-.75.8 0 1.53.06 2.18.17.65.1 1.25.27 1.8.48.56.2 1.1.47 1.58.77.5.3.98.64 1.45 1.04l-2.03 2.43c-.35-.3-.7-.57-1.07-.8-.37-.25-.75-.46-1.15-.62-.4-.17-.83-.3-1.3-.4-.5-.1-1-.14-1.6-.14-.82 0-1.6.2-2.32.54-.72.34-1.35.8-1.88 1.4-.53.57-.94 1.26-1.25 2.04-.3.78-.45 1.6-.45 2.48V96c0 .95.14 1.82.44 2.62s.7 1.5 1.26 2.07c.55.56 1.2 1 1.95 1.34.75.33 1.6.5 2.53.5.87 0 1.68-.13 2.43-.38.76-.25 1.4-.6 1.97-1V97.7h-4.67v-2.8H112v7.67c-.46.37-.96.74-1.5 1.1-.55.33-1.14.64-1.77.9-.64.26-1.32.46-2.05.6-.73.16-1.5.23-2.3.23"
/>
</svg>
</h1>
</header>
<noscript>
<p>BusRouter SG only works with JavaScript</p>
</noscript>
<div id="app"></div>
<div id="tooltip"></div>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.js"></script>
<script src="assets/app.js" type="module"></script>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-D34FLYKNNR"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
window._GA_TRACKING_ID = 'G-D34FLYKNNR';
gtag('config', window._GA_TRACKING_ID, { send_page_view: false });
window.gtag = gtag;
</script>
<script>
function bsa() {
var bsa_optimize = document.createElement('script');
bsa_optimize.type = 'text/javascript';
bsa_optimize.async = true;
bsa_optimize.src =
'https://cdn4.buysellads.net/pub/busrouter.js?' +
(new Date() - (new Date() % 600000));
(
document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]
).appendChild(bsa_optimize);
}
bsa();
</script>
</html>