forked from CursosWeb/X-Nav-Practica-Hoteles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
342 lines (328 loc) · 19 KB
/
index2.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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1">
<title>Alojamientos Madrid</title>
<link rel="icon" href="images/favicon.png">
<!-- CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<link href="css/MadridAccom.css" rel="stylesheet">
<!--<link href="css/MadridAccom.min.css" rel="stylesheet">-->
<link rel=stylesheet href=http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css />
<!--<link href=css/leaflet.css rel=stylesheet>-->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/es_ES/sdk.js#xfbml=1&version=v2.6";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class="alerts">
<div class="container" id="alerts-list">
</div>
</div>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<a class="navbar-brand">Alojamientos Madrid</a>
<button id="load-save-btn" type="button" class="btn btn-default navbar-btn navbar-right">
<span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span>
<span class="glyphicon glyphicon-floppy-open" aria-hidden="true"></span>
</button>
</div>
</nav>
<div class="container">
<!-- Main container -->
<div id="tabs">
<ul class="nav nav-tabs nav-justified" role="tablist" id="mainTabs">
<li role="presentation" class="active" role="tab" data-toggle="tab" aria-controls="principalTab" aria-expanded="true">
<a href="#principalTab">Principal</a>
</li>
<li role="presentation" role="tab" data-toggle="tab" aria-controls="gestionTab" aria-expanded="true">
<a href="#gestionTab">Gestión</a>
</li>
<li role="presentation" role="tab" data-toggle="tab" aria-controls="alojadosTab" aria-expanded="true">
<a href="#alojadosTab">Alojados</a>
</li>
</ul>
<!-- Tabs container -->
<div class="tab-content">
<!--Principal tab -->
<div role="tabpanel" class="tab-pane active" id="principalTab">
<div class="row container-tab">
<div class="col-md-3">
<div class="panel panel-default accomodspanel actualCollectionPanel">
<div class="panel-body">
<h4 class="paneltitle">Colección actual: </h4>
<h4 class="actualCollectionTitle"></h4>
<ul class="list-group listItems collecAccomList">
<li class="list-group-item list-group-item-warning">No se ha seleccionado ninguna colección</li>
</ul>
<input type="text" class="filterList" placeholder="Nombre del alojamiento">
</div>
</div>
</div>
<div class="col-md-6">
<div id="map"></div>
<div id="nominatim-container">
<form class="form-group">
<div class="input-group">
<input class="form-control" id="nominatim-input" placeholder="Realiza una búsqueda en Madrid" type="text">
<div class="input-group-btn">
<button type="submit" class="btn btn-default" id="nominatim-search"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
</div>
</div>
</form>
<div id="nominatim-result">
<ul id="nominatim-list-result" class="list-group listItems">
</ul>
</div>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-default accomodspanel">
<div class="panel-body">
<h4 class="paneltitle">Alojamientos:</h4>
<button type="button" class="btn btn-info loadAccommodBtn" data-loading-text="Cargando..." data-complete-text="Cargados" autocomplete="off">
Cargar alojamientos
</button>
<ul class="list-group allaccomods listItems">
<li class="list-group-item list-group-item-warning">Tienes que cargar los alojamientos</li>
</ul>
<input type="text" class="filterList" placeholder="Nombre del alojamiento">
</div>
</div>
</div>
</div>
</div>
<!-- Gestion tab -->
<div role="tabpanel" class="tab-pane" id="gestionTab">
<div class="row container-tab">
<!-- All collections -->
<div class="col-md-4">
<div class="panel panel-default accomodspanel">
<div class="panel-body">
<h4 class="paneltitle">Mis colecciones: </h4>
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" id="nameNewCollect" placeholder="Nueva colección">
<div class="input-group-btn">
<button type="button" class="btn btn-primary" id="createCollectBtn"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
</div>
</div>
</div>
<ul class="list-group listItems" id="collectionslist">
<li class="list-group-item list-group-item-warning">No hay colecciones, crea una</li>
</ul>
<input type="text" class="filterList" placeholder="Nombre de la colección">
</div>
</div>
</div>
<!-- Collection selected -->
<div class="col-md-4">
<div class="panel panel-default accomodspanel actualCollectionPanel">
<div class="panel-body">
<h4 class="paneltitle">Colección actual: </h4>
<h4 class="actualCollectionTitle"></h4>
<ul class="list-group listItems collecAccomList">
<li class="list-group-item list-group-item-warning">No se ha seleccionado ninguna colección</li>
</ul>
<input type="text" class="filterList" placeholder="Nombre del alojamiento">
</div>
</div>
</div>
<!-- All accommodations -->
<div class="col-md-4">
<div class="panel panel-default accomodspanel">
<div class="panel-body">
<h4 class="paneltitle">Alojamientos:</h4>
<button type="button" class="btn btn-info loadAccommodBtn" data-loading-text="Cargando..." data-complete-text="Cargados" autocomplete="off">
Cargar alojamientos
</button>
<ul class="list-group allaccomods listItems">
<li class="list-group-item list-group-item-warning">Tienes que cargar los alojamientos</li>
</ul>
<input type="text" class="filterList" placeholder="Nombre del alojamiento">
</div>
</div>
</div>
</div>
</div>
<!-- Alojados tab -->
<div role="tabpanel" class="tab-pane" id="alojadosTab">
<div class="container-tab">
<div id="accommodate">
<h3>¿Tú también te has alojado?</h3>
<form class="form-inline">
<input id="google-id-new" type="text" value="" class="form-control" placeholder="Id Google+">
<button type="submit" class="btn btn-info google-id-new-btn">Alojado</button>
</form>
<hr>
</div>
<h3>Los siguientes usuarios ya se han alojado:</h3>
<div class="container-fluid" id="accommodated-list">
<p>
Ningún usuario se ha alojado.
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Description -->
<div class="row">
<div class="col-md-12">
<div class="panel panel-default hotel-info" hidden="">
<div class="panel-body container-fluid">
<div class="row">
<div class="page-header col-md-12">
<h2><a class="titleAccommodShow" href='' target="_blank"></a> <small class="starsAccommodShow"></small></h2><h5 class="directionAccommod"></h5>
</div>
</div>
<div class="row">
<div class="hotel-text col-md-8">No info</div>
<div class="col-md-4">
<div class="panel panel-default images-panel">
<h5><strong>Fotos</strong></h5>
<div class="images container-fluid"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Load/save modal -->
<div class="modal fade" id="load-save-modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h2 class="modal-title">Carga o guarda tu configuración de Github</h2>
</div>
<div class="modal-body">
<form class="form-horizontal row">
<div class="col-md-6">
<h3>Token Github*</h3>
<div class="form-group">
<label class="col-sm-3 control-label">Token:</label>
<div class="col-sm-9">
<input type="text" id="auth-token" class="form-control" placeholder="Token Github" required="">
</div>
</div>
<hr>
<h3>Usuario y contraseña Github*</h3>
<div class="form-group">
<label class="col-sm-3 control-label">Usuario:</label>
<div class="col-sm-9">
<input type="text" id="auth-user" class="form-control" placeholder="Usuario Github" required="">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Contraseña:</label>
<div class="col-sm-9">
<input type="password" id="auth-password" class="form-control" placeholder="Contraseña" required="">
</div>
</div>
<hr>
<h3>Oauth Github*</h3>
<div class="form-group">
<button type="button" id="oauth" class="btn btn-default btn-lg col-sm-9 col-xs-12 col-sm-offset-3">
<img src="images/github-icon.png" alt="Github" height="50" width="50" />
<span id="result-oauth" class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
</div>
<hr>
<h4>* Elija una de las opciones.</h4>
</div>
<div class="col-md-6">
<h3>¿Dónde quiere cargar/guardar?</h3>
<br>
<div class="form-group">
<label class="col-sm-3 control-label">Usuario:</label>
<div class="col-sm-9">
<input type="text" id="user-repo" class="form-control" placeholder="Nombre de usuario" required="">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Repositorio:</label>
<div class="col-sm-9">
<input type="text" id="repo" class="form-control" placeholder="Nombre de repositorio" required="">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Fichero:</label>
<div class="col-sm-9">
<input type="text" id="file" class="form-control" placeholder="Nombre de fichero" required="">
</div>
</div>
<div class="form-group">
<div class="controls col-sm-9 col-sm-offset-3">
<button type="button" id="load-btn" class="btn btn-success">Cargar</button>
<button type="button" id="save-btn" class="btn btn-success">Guardar</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Images carousel -->
<div class="modal fade" id="img-modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div id="carousel-images" class="carousel slide">
<ol id="indicatorsSlider" class="carousel-indicators">
</ol>
<!-- Wrapper for slides -->
<div id='imagesUrlSlider' class="carousel-inner" role="listbox">
<div class="item active"></div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-images" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Anterior</span>
</a>
<a class="right carousel-control" href="#carousel-images" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Siguiente</span>
</a>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<div class="pull-right fb-like" data-href="http://jjmerchante.github.io/X-Nav-Practica-Hoteles/index.html" data-layout="button" data-action="like" data-show-faces="true" data-share="false"></div>
<div class="pull-left">
<g:plusone data-href="https://jjmerchante.github.io/X-Nav-Practica-Hoteles/"></g:plusone>
</div>
<p class="text-info">© 2016 Alojamientos Madrid</p>
</div>
</footer>
<script src="js/storage.min.js"></script><!--Localstorage in older browsers-->
<script src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
<script src=http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js></script>
<!--<script src="js/leaflet.js"></script>-->
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="js/github.min.js"></script>
<script src="js/hello.min.js"></script>
<script src="js/max/MadridAccom.js"></script>
<!--<script src="js/MadridAccom.min.js"></script>-->
<script src="https://apis.google.com/js/client.js?onload=initGooglePlus" async defer></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
</body>
</html>