-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
65 lines (57 loc) · 2.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Saner Sogral</title>
<link rel="stylesheet" href="index.css" />
<link rel="icon" type="image/png" sizes="16x16" href="images/icon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/icon-32x32.png">
<link rel="manifest" href="manifest.json">
</head>
<body>
<header>
<h1>Saner Sogral</h1>
<p>
A saner alternative to Sogral's
<a href="https://www.sogral.dz/index.php/fr/planning-des-departs-2" target="_blank" rel="noreferrer">official bus timetable app</a>.
</p>
</header>
<main>
<form>
<label>Departure <select name="depart" id="depart"></select></label>
<label>Destination <select name="dest" id="dest"></select></label>
</form>
<table>
<thead>
<tr>
<th>Time</th>
<th>Price</th>
<th>Route</th>
<th>Transporter</th>
</tr>
</thead>
<tbody id="output">
<!-- ... -->
</tbody>
</table>
</main>
<footer>
<h2>Credits</h2>
<ul>
<li>Data extracted from <a href="https://www.sogral.dz/app_sogral/app/fr.php">Sogral's official website</a>.</li>
<li>Duck icon by <a href="https://www.flaticon.com/authors/freepik" target="_blank" rel="noreferrer" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>.</li>
<li>Built by <a href="https://twitter.com/djalilhebal">Abdeldjalil Hebal</a> and released under WTFPL, source code available<a href="https://github.com/djalilhebal/saner-sogral" target="_blank"> on GitHub</a>.</li>
</ul>
</footer>
<script src="index.min.js"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('service-worker.js', {scope: '/saner-sogral/'})
.then((registration) => console.log('[Service Worker] Registration successful, scope is:' + registration.scope) )
.catch((error) => console.log('[Service Worker] Registration failed', error) );
}
</script>
</body>
</html>