-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (45 loc) · 1.96 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
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Python Divia API — démo</title>
<link rel="stylesheet" href="style.css"/>
<link rel="icon" href="favicon.ico"/>
<script src="brython.js" type="text/javascript"></script>
<script src="brython_stdlib.js" type="text/javascript"></script>
</head>
<body onload="brython()">
<div class="title">
<h1>Python Divia API — démo</h1>
</div>
<div class="search">
<div>
<input value="🚌 Ligne" data-default-value="🚌 Ligne" onfocus="elementFocus(this);" id="ligne_input"/>
<select id="sens_dropdown" selected="none">
<option value="none" disabled selected>🔄 Sens</option>
<option value="a">Sens A</option>
<option value="r">Sens R</option>
</select>
<input value="🚏 Arrêt" data-default-value="🚏 Arrêt" onfocus="elementFocus(this);" id="arret_input"/>
</div>
<div>
<button onclick="searchDivia();" type="submit">Rechercher</button>
</div>
</div>
<div id="spinner_wrapper">
<div class="spinner">
<img class="spinner_img" src="img/spinner.svg"/>
</div>
</div>
<div id="result_wrapper">
<div class="result">
<span id="res1">—</span>
<span id="res2">—</span>
</div>
</div>
<div class="footer">
🚀 Powered by <a href="https://brython.info/" target="_blank">Brython</a> and a slightly modified version of <a href="https://pypi.org/project/divia-api" target="_blank">divia-api</a> (requests are handled by Brython’s Ajax plugin).
</div>
<script src="script.js" type="text/javascript"></script>
<script src="divia_req.py" type="text/python"></script>
</body>
</html>