forked from Landeronini/ChecaCDMX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ruta_pape.html
310 lines (289 loc) · 9.01 KB
/
Ruta_pape.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" type="image/x-icon" href="imagenes/ICONO.png" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="stylesheets/bootstrap.min.css">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Checa CDMX</title>
<style>
img{
height: auto;
width: 90%;
}
html, body {
height: 100%;
margin: 0;
padding: 1.3%;
background-color: #0c0612;
}
#map {
height: 40%;
float: left;
width: 100%;
}
#right-panel {
font-family: 'Roboto','sans-serif';
line-height: 30px;
padding-left: 10px;
}
#right-panel select, #right-panel input {
font-size: 15px;
}
#right-panel select {
width: 100%;
}
#right-panel i {
font-size: 12px;
}
#right-panel {
margin: 20px;
border-width: 2px;
width: 90%;
float: left;
text-align: left;
padding-top: 20px;
}
#directions-panel {
margin-top: 20px;
background-color: #FFEE77;
padding: 10px;
}
select {
height: 25px;
}
button {
width: 100%;
display: block;
margin:auto;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color: #fff;
background-color: #010225;
border: none;
border-radius: 8px;
box-shadow: 0 9px #999;
}
button:hover {background-color: #05205b}
button:active {
background-color: #010225;
box-shadow: 0 5px #666;
transform: translateY(4px);
transform: translateY(4px);
}
/*_________________________________________________*/
input[type=text] {
width: 100%;
height: auto;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 3px solid #ccc;
-webkit-transition: 0.5s;
transition: 0.5s;
outline: none;
}
input[type=text]:focus {
border: 3px solid #05205b;
}
.divBoton{
width: 100%
height: 300px;
color: #fff;
position: relative;
padding-bottom: 10px;
}
.tituloG{
font-weight: 900;
margin-bottom: 8px;
margin-top: 10px;
color: #fff;
}
.logo{
padding-top: 10px;
padding-right: 10px;
height: 100px;
width: 100px;
}
.checa{
font-weight: 900;
}
.complemento{
font-weight: 500;
}
@media only screen and (max-width: 1280px) {
.tituloG{
font-size: 26px;
}
.des{
font-size: 20px;
}
.logo{
padding-left: 10px;
}
}
@media only screen and (min-width: 415px){
.tituloG{
font-size: 36px;
}
.logo{
padding-left: 400px;
}
}
#papeleria{
background-image: url("imagenes/barraPape.gif");
}
</style>
</head>
<body>
<div id="papeleria" class="divBoton">
<button class="botonT" onclick="mapaPapeleria()"></button>
<table>
<tr>
<th>
<img class="logo" src="imagenes/logoPape.gif">
</th>
<th>
<h1 class="tituloG">¿Listo para el regreso a clases?</h1>
<font class="checa des">CHECA</font><font class="complemento des"> la ruta de Papelerías.</font>
</th>
</tr>
</table>
</div>
<table align="center" width="100%">
<tr>
<th><button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">Papelería Mesones</button>
</th>
<th><button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo2">Biblioteca Lerdo de Tejada.</button>
</th>
</tr>
<tr>
<th><button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo3">La Educadora</button>
</th>
<th><button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo4">Casa Vecina.</button>
</th>
</tr>
</table>
<div class="container">
<div id="demo" class="collapse"><br>
Sobre Mesones podrás encontrar papelerías, y es el comienzo de la ruta.
</div>
<div id="demo2" class="collapse"><br>
Ubicada dentro del Antiguo Oratorio de San Felipe Neri, contempla el impresinate mural de Vlady.
</div>
<div id="demo3" class="collapse"><br>
Además de papelerías, hallarás tiendas especializadas en material didáctico.
</div>
<div id="demo4" class="collapse"><br>
Casa Vecina alberga exposiciones y talleres artísticos. Cerca de ahí hallaras murales y restaurantes con propuestas innovadoras.
</div>
</div>
<br><br>
<div id="map"></div>
<div id="right-panel">
<div>
<b>Origen:</b>
<select id="start">
<option value="José María Izazaga 73, Centro, 06000 Ciudad de México, D.F.">Isabel La Católica</option>
<option value="Av. Hidalgo 23, Centro Histórico, Guerrero, 06300 Ciudad de México, D.F.">Bellas Artes</option>
<option value="Plaza de la Constitución, Centro Histórico, Centro, 06000 Ciudad de México, D.F.">Zócalo</option>
</select>
<br>
<b>Puntos Intermedios:</b> <br>
<i>(Solo selecciona los que quieres visitar)</i> <br>
<select multiple id="waypoints">
<option value="Av República de el Salvador 47, Centro, 06000 Ciudad de México, D.F.">Biblioteca Miguel Lerdo de Tejada.</option>
</select>
<select multiple id="waypoints2">
<option value="Av República de el Salvador 44, 06060 D.F."> La Educadora</option>
</select>
<br>
<b>Destino:</b>
<select id="end">
<option value="Santo Domingo 4, Centro Histórico, Centro, 06000 Ciudad de México, D.F.">Casa Vecina.</option>
</select>
<br>
<input type="submit" id="submit">
</div>
</div>
<script>
function initMap() {
var directionsService = new google.maps.DirectionsService;
var directionsDisplay = new google.maps.DirectionsRenderer;
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 13,
center: {lat: 19.4336, lng: -99.1454}
});
directionsDisplay.setMap(map);
document.getElementById('submit').addEventListener('click', function() {
calculateAndDisplayRoute(directionsService, directionsDisplay);
});
}
function calculateAndDisplayRoute(directionsService, directionsDisplay) {
var waypts = [];
var checkboxArray = document.getElementById('waypoints');
var checkboxArray2 = document.getElementById('waypoints2');
for (var i = 0; i < checkboxArray.length; i++) {
if (checkboxArray.options[i].selected) {
waypts.push({
location: checkboxArray[i].value,
stopover: true
});
}
if (checkboxArray2.options[i].selected) {
waypts.push({
location: checkboxArray2[i].value,
stopover: true
});
}
}
directionsService.route({
origin: document.getElementById('start').value,
destination: document.getElementById('end').value,
waypoints: waypts,
optimizeWaypoints: true,
travelMode: google.maps.TravelMode.WALKING
}, function(response, status) {
if (status === google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(response);
var route = response.routes[0];
var summaryPanel = document.getElementById('directions-panel');
summaryPanel.innerHTML = '';
// For each route, display summary information.
for (var i = 0; i < route.legs.length; i++) {
var routeSegment = i + 1;
summaryPanel.innerHTML += '<b>Route Segment: ' + routeSegment +
'</b><br>';
summaryPanel.innerHTML += route.legs[i].start_address + ' to ';
summaryPanel.innerHTML += route.legs[i].end_address + '<br>';
summaryPanel.innerHTML += route.legs[i].distance.text + '<br><br>';
}
} else {
window.alert('Directions request failed due to ' + status);
}
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAUIOAcd8tHlCNzutnDuiiDFMbilqHc2dQ&signed_in=true&callback=initMap"
async defer></script>
<table width=100% height="300px">
<tr>
<th><img src="imagenes/papeleria%201.jpg">
</th>
<th><img src="imagenes/papeleria%202.jpg">
</th>
<th><img src="imagenes/papeleria%203.jpg">
</th>
</tr>
</table>
<br>
<input type="text" id="coment" name="coment" placeholder="Comentarios" maxlength="120">
<button>Comentar</button>
<BR>
<script src="https://code.jquery.com/jquery-2.1.4.js"> </script>
<script src="javascripts/bootstrap.min.js"> </script>
</body>
</html>