This repository has been archived by the owner on Jul 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
184 lines (176 loc) · 6.78 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0">
<title>France Services</title>
<link rel="stylesheet" href="lib/leaflet.css">
<link rel="stylesheet" href="lib/leaflet-sidebar.min.css">
<link rel="stylesheet" href="lib/awesomplete.css">
<link rel="stylesheet" href="lib/L.Control.ZoomMin.css">
<link rel="stylesheet" href="css/font.css">
<link rel="stylesheet" href="css/style.css">
<style>
#popup {
position: fixed;
z-index: 10000;
left: 0;
top: 0;
background-color: rgba(0,0,0,0.75);
width: 100%;
height: 100%;
}
#popup-text {
background-color: rgba(255,255,255,.85);
width: 22%;
border-radius: 5px;
font-size: 1.2em;
text-align: center;
margin: 15% auto;
padding: 25px;
padding-bottom: 40px;
}
.close-popup {
margin-top: -10px;
float: right;
font-family: 'Arial';
font-size: 1.5em;
font-weight: bolder;
}
.close-popup:hover,
.close-popup:focus {
color: rgba(0,0,0,0.5);
text-decoration: none;
cursor: pointer;
}
</style>
<script src='lib/tabletop.min.js'></script>
<script src="lib/leaflet.js"></script>
<script src="lib/leaflet-sidebar.min.js"></script>
<script src="lib/L.Control.ZoomMin.js"></script>
<script src="lib/awesomplete.min.js"></script>
<script src="lib/feather.min.js"></script>
</head>
<body>
<div id="popup">
<div id="popup-text">
<span class="close-popup">×</span>
<h3>Attention</h3>
<span>
Cette carte interactive sera bientôt désactivée. Une nouvelle version, dotée d'une entrée de recherche par adresse et par département, est disponible <a href="http://anct-carto.github.io/france_services">ici</a>.
</span>
</div>
</div>
<select type="menu" id = "goTo">
<option value="">-- Zoomer sur un territoire</option>
<option value="met">Métropole</option>
<option value="reu">La Réunion</option>
<option value="glp">Guadeloupe</option>
<option value="mtq">Martinique</option>
<option value="guf">Guyane</option>
<option value="myt">Mayotte</option>
</select>
<div id="sidebar" class="leaflet-sidebar collapsed">
<!-- nav tabs -->
<div class="leaflet-sidebar-tabs">
<!-- top aligned tabs -->
<ul role="tablist">
<li><a href="#home" role="tab">
<i data-feather="home" class = "feather-icons"></i>
</a>
</li>
<li><a href="#autopan" role="tab">
<i data-feather="search" class = "feather-icons"></i>
</a>
</li>
</ul>
<!-- bottom aligned tabs -->
<ul role="tablist">
<li><a href="#a-propos" role="tab">
<i data-feather="info" class = "feather-icons"></i>
</a>
</li>
<li><a href="https://github.com/cget-carto/France-services" target="_blank">
<i data-feather="github" class = "feather-icons"></i>
</a></li>
</ul>
</div>
<!-- panel content -->
<div class="leaflet-sidebar-content">
<div class="leaflet-sidebar-pane" id="home">
<h1 class="leaflet-sidebar-header">
Accueil
<span class="leaflet-sidebar-close">
<i data-feather="skip-back" class="feather-icons"></i>
</span>
</h1>
<h3><i>Carte interactive</i> <br>
<img src="img/logo_FranceServices-01.png" id = "logo_fs">
</h3>
<div id = "legende">
</div>
<p>
Piloté par le ministère de la Cohésion des territoires et des Relations avec les collectivités territoriales via l'ANCT,
ce réseau vise à faciliter l’accès des citoyens à un panier de services publics de qualité. Les usagers pourront effectuer
diverses démarches administratives dans un lieu unique et se renseigner auprès d’agents polyvalents, formés de manière pointue et efficace.
</p>
<button type="button" name="button" id = "trouvez-moi">
<i data-feather="search" id = 'trouvez-moi-feather'></i>
Trouver une France Services
</button>
</div>
<div class="leaflet-sidebar-pane" id="autopan">
<h2 class="leaflet-sidebar-header">
Recherche
<span class="leaflet-sidebar-close">
<i data-feather="skip-back" class="feather-icons"></i>
</span>
</h2>
<p>Rechercher une France Services</p>
<div id = 'search-bar-container'>
<input type="text" placeholder="Nom de commune ou code postal" id = "searchField">
<button id = "resetSearch">
<i data-feather="x" class="feather-icons"></i>
</button>
</div>
</div>
<div class="leaflet-sidebar-pane" id="a-propos">
<h2 class="leaflet-sidebar-header">
À propos
<span class="leaflet-sidebar-close">
<i data-feather="skip-back" class="feather-icons"></i>
</span>
</h2>
<p>
<b>Sources :</b> ANCT 2020, Banque des territoires 2020</p>
<p>
<b>Réalisation :</b>
<a href = 'https://cartotheque.cget.gouv.fr/cartes' target="_blank">
Service cartographie de l'ANCT</a>, 01/2020
</p>
<img src="img/logo_anct.png" width="80%">
<p><i>En partenariat avec</i></p>
<img src="img/logo_bdt.png" width="80%">
</div>
</div>
</div>
</div>
<div id="mapid"></div>
<!-- chargement script js -->
<!-- <script src= "js/app_spreadsheet.js"></script> -->
<script src="js/app.js"></script>
<script src= "js/legend.js"></script>
<script type="javascript">feather.replace()</script>
<script>
let popup = document.getElementById('popup');
let closePopupCross = document.getElementsByClassName('close-popup')[0];
closePopupCross.addEventListener('click', () => {
popup.style.display = 'none';
});
window.addEventListener('click', e => {
if (e.target == popup) {
popup.style.display = 'none';
}
});
</script>
</body>
</html>