-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
60 lines (56 loc) · 2.42 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
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Gare la plus proche</title>
<meta name="keywords" content="gare, proche, train, proximité, plus" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="icon" type="image/png" href="./img/tchou.png" />
<link rel="stylesheet" type="text/css" href="index.css" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ=="
crossorigin="" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log=="
crossorigin=""></script>
</head>
<body>
<header id="header">
<a href="/"><h1>Trouvez la <span class="highlight">gare</span><br />la plus <span class="highlight">proche</span></h1></a>
</header>
<section class="station-search-container">
<br>
<div id="stations"></div>
<div id="share-link" style="visibility: hidden;"><button onclick="copyLink()">📋🔗 Copier/partager ce résultat</button><div id="copied"></div></div>
<div id="mapcontainer">
<div id="mapid"></div>
</div>
<div id="trainLoader-buttonSearch-container">
<div id="station-search-container-by-city">
<div id="error-city"></div>
<p class="detail mobile">Activez votre géolocalisation et cliquez sur ce bouton : </p>
<p class="detail desktop">Pour trouver la gare la plus proche, cliquez sur ce bouton : </p>
<div id="search-btn-container" class="search-btn-container" onclick="searchByGeolocation()">
<button id="search-button"><img src="./img/search.svg" alt=""></button>
</div>
<br>
<p class="detail"><b>ou</b> saisissez et sélectionnez votre commune :</p>
<input id="station-search-container-by-city-input" list="filtered-cities" placeholder="Commune de France" oninput="searchByCity()" />
<datalist id="filtered-cities"></datalist>
</div>
<span id="train-station"></span>
</div>
</section>
<footer>
<br><br>
<span>
Ce site n'est ni affilié à la SNCF ni à trainline |
</span>
<a href="https://github.com/glae/lagarelaplusproche.fr">
Code source sur GitHub
</a>
</footer>
<script src="main.js"></script>
<script src="index.js"></script>
</body>
</html>