-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (67 loc) · 4.44 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
<!DOCTYPE html>
<html lang="fr" data-theme="light">
<head>
<meta name="viewport" content="width=device-width">
<meta name="description" content="Graphiques des résultats de prélèvements règlementaires des réseaux d'eau potable en France.">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chartjs-adapter-luxon.umd.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chartjs-plugin-annotation.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chartjs-plugin-zoom.min.js" defer></script>
<script src="main.js" defer></script>
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@1.*/css/pico.min.css">
<link rel="stylesheet" href="style.css">
<title>Explorateur des prélèvements d'eau potable par commune</title>
</head>
<header class="container">
<h1>Explorateur des prélèvements d'eau potable par commune</h1>
<p>Graphiques des résultats de prélèvements règlementaires des réseaux d'eau potable en France.
</p>
<progress value="0" max="100"></progress>
</header>
<aside class="container">
<form>
<label>Code postal
<span class="inputmsg alert invalidcp" hidden>Le code postal doit être composé de cinq chiffres. Ex : 27183</span>
<span class="inputmsg alert unknowncp" hidden>Ce code postal est inconnu</span>
<input id="code_postal" type="text" pattern="(\d\s*){5}" required/>
</label>
<div class="grid">
<label>Commune
<select id="communes" disabled></select>
</label>
<label>Réseau d'eau
<select id="reseaux" disabled></select>
</label>
</div>
<label>Analyse
<select id="paramSelect" disabled></select>
</label>
</form>
</aside>
<div class="container">
<article>
<canvas id="chart" class="hidden" ></canvas>
</article>
</div>
<footer class="container">
<p>
<a href="https://github.com/nliautaud/grapheau/discussions" role="button" class="secondary outline">J'ai un avis</a>
</p>
<p>Jeux de données & APIs :
<a href="https://www.data.gouv.fr/fr/datasets/resultats-du-controle-sanitaire-de-leau-distribuee-commune-par-commune/">data.gouv.fr</a>,
<a href="https://hubeau.eaufrance.fr/">EauFrance Hub'eau</a>,
<a href="https://apicarto.ign.fr/">IGN API Carto</a>
<br>
Librairies :
<a href="https://picocss.com">Pico CSS</a>,
<a href="https://www.chartjs.org">ChartJS</a>,
<a href="https://github.com/chartjs/chartjs-adapter-date-fns">chartjs-adapter-date-fns</a>
</p>
<p class="credits">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24"><path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm0 22c-5.514 0-10-4.486-10-10 0-2.397.85-4.6 2.262-6.324l14.062 14.062c-1.724 1.412-3.927 2.262-6.324 2.262zm7.738-3.676l-9.587-9.587c.549-.319 1.174-.519 1.855-.519 1.171 0 2.306.523 3.136 1.669l1.858-1.217c-1.281-1.826-3.133-2.67-4.994-2.67-1.295 0-2.49.42-3.471 1.122l-2.86-2.86c1.725-1.412 3.928-2.262 6.325-2.262 5.514 0 10 4.486 10 10 0 2.397-.85 4.6-2.262 6.324zm-5.352-.827c-.758.331-1.564.503-2.38.503-3.308 0-6-2.692-6-6 0-.847.179-1.653.497-2.385l1.783 1.783c-.032.197-.06.396-.06.602 0 2.085 1.696 3.781 3.781 3.781.205 0 .408-.022.609-.055l1.77 1.771z"/></svg>
<a class="github" href="https://github.com/nliautaud/grapheau" aria-label="Github"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg></a>
</p>
</footer>
</html>