|
@@ -53,9 +53,10 @@
|
53
|
53
|
|
54
|
54
|
<script type="text/javascript" src="js/saveLocal.js"></script>
|
55
|
55
|
|
|
56
|
+ <script> console.log(window.localStorage.getItem("MADERA")); </script>
|
56
|
57
|
|
57
|
58
|
|
58
|
|
-
|
|
59
|
+ <ons-navigator swipeable animation="slide" id="myNavigator">
|
59
|
60
|
<ons-page>
|
60
|
61
|
<ons-toolbar>
|
61
|
62
|
<div class="center">Directorio Artesanal</div>
|
|
@@ -199,6 +200,7 @@
|
199
|
200
|
<div class="expandable-content"> Municipio: ${Artesano.Municipio}<br>
|
200
|
201
|
Tel\u00e9fono: ${Artesano["Telefono 1"]}<br>
|
201
|
202
|
Correo Electr\u00f3nico: ${Artesano["E-mail"]}<br>
|
|
203
|
+ Red Social: ${Artesano["E-mail"]} <br>
|
202
|
204
|
</div>
|
203
|
205
|
</ons-list-item>`
|
204
|
206
|
);
|
|
@@ -229,7 +231,7 @@
|
229
|
231
|
|
230
|
232
|
//info a pasar
|
231
|
233
|
//'title':'${Artesano.Nombre}','esp': '${info}'
|
232
|
|
- var item = ons.createElement(`<ons-list-item onclick="myNavigator.pushPage('artesano.html', { data: { title: '${Artesano.Nombre}', mun: '${Artesano.Municipio}', tel: '${Artesano["Telefono 1"]}', email: '${Artesano["E-mail"]}', redes: '${Artesano["E-Commerce1"]}', esp: '${Artesano.Especificacion}' } })" tappable>
|
|
234
|
+ var item = ons.createElement(`<ons-list-item onclick="myNavigator.pushPage('artesano.html', { data: { title: '${Artesano.Nombre}', mun: '${Artesano.Municipio}', tel: '${Artesano["Telefono 1"]}', email: '${Artesano["E-mail"]}', redes: '${Artesano["E-Commerce 1"]}', esp: '${Artesano.Especificacion}' } })" tappable>
|
233
|
235
|
<div class="title">${Artesano.Nombre}</div>
|
234
|
236
|
</ons-list-item>`);
|
235
|
237
|
|
|
@@ -336,7 +338,7 @@
|
336
|
338
|
|
337
|
339
|
//if(Esp[num] in artesanos_json.) {}
|
338
|
340
|
Artesanos+=`${results[i].Nombre}|`
|
339
|
|
- ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}&&`
|
|
341
|
+ ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}|${results[i]["E-Commerce 1"]}&&`
|
340
|
342
|
//`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
|
341
|
343
|
}
|
342
|
344
|
|
|
@@ -366,9 +368,10 @@
|
366
|
368
|
mun = lot[0],
|
367
|
369
|
tel = lot[1],
|
368
|
370
|
email = lot[2],
|
369
|
|
- esp = lot[3];
|
|
371
|
+ esp = lot[3]
|
|
372
|
+ redes = lot[4];
|
370
|
373
|
|
371
|
|
- listaArt += `<ons-item tappable onclick="myNavigator.pushPage('artesano.html', {data: {title:'${arts[i]}', mun: '${mun}', tel: '${tel}', email: '${email}', esp: '${esp}'}} )" ><div class="center">`+ arts[i] +`</div></ons-item><br>`;
|
|
374
|
+ listaArt += `<ons-item tappable onclick="myNavigator.pushPage('artesano.html', {data: {title:'${arts[i]}', mun: '${mun}', tel: '${tel}', email: '${email}', esp: '${esp}', redes: '${redes}'}} )" ><div class="center">`+ arts[i] +`</div></ons-item><br>`;
|
372
|
375
|
}
|
373
|
376
|
|
374
|
377
|
|
|
@@ -474,7 +477,6 @@
|
474
|
477
|
</script>
|
475
|
478
|
|
476
|
479
|
<template id="search.html">
|
477
|
|
- <ons-navigator swipeable animation="slide" id="SNavigator">
|
478
|
480
|
<ons-page id="Buscar">
|
479
|
481
|
<p style="text-align: center; margin-top: 10px;">
|
480
|
482
|
<ons-search-input placeholder="Search anything" id = "searchbar"
|
|
@@ -491,7 +493,7 @@
|
491
|
493
|
<script>
|
492
|
494
|
for (i = 0; i < all_artesanos.length;i++){
|
493
|
495
|
var artesano = ons.createElement(`<ons-list-item class = "artists"
|
494
|
|
- onclick="SNavigator.pushPage('artesano.html', { data: {title: '${all_artesanos[i].Nombre}', mun: '${all_artesanos[i].Municipio}', tel: '${all_artesanos[i]["Telefono 1"]}', email: '${all_artesanos[i]["E-mail"]}', redes: '${all_artesanos[i]["E-Commerce"]}', esp: '${all_artesanos[i].Especificacion}' } })" tappable>
|
|
496
|
+ onclick="myNavigator.pushPage('artesano.html', { data: {title: '${all_artesanos[i].Nombre}', mun: '${all_artesanos[i].Municipio}', tel: '${all_artesanos[i]["Telefono 1"]}', email: '${all_artesanos[i]["E-mail"]}', redes: '${all_artesanos[i]["E-Commerce"]}', esp: '${all_artesanos[i].Especificacion}' } })" tappable>
|
495
|
497
|
<div>${all_artesanos[i].Nombre}</div>
|
496
|
498
|
</ons-list-item>`);
|
497
|
499
|
// var artesano = ons.createElement(`
|
|
@@ -525,7 +527,8 @@
|
525
|
527
|
mun = this.data.mun,
|
526
|
528
|
tel = this.data.tel,
|
527
|
529
|
em = this.data.email,
|
528
|
|
- esp = this.data.esp;
|
|
530
|
+ esp = this.data.esp
|
|
531
|
+ redes = this.data.redes;
|
529
|
532
|
|
530
|
533
|
email = em.slice(0, em.search("#"));
|
531
|
534
|
if(esp.trim() != ""){
|
|
@@ -555,6 +558,10 @@
|
555
|
558
|
data+='Tel\u00e9fono: <a style="color:blue" href="tel: '+ tel +'"><u>'+ tel +'</u></a><br>';
|
556
|
559
|
}
|
557
|
560
|
|
|
561
|
+ if (redes.trim() != "") {
|
|
562
|
+ data+='Red Social: ' + redes + '<br>';
|
|
563
|
+ }
|
|
564
|
+
|
558
|
565
|
document.getElementById("all").innerHTML = `${data}`;
|
559
|
566
|
|
560
|
567
|
}
|
|
@@ -565,7 +572,6 @@
|
565
|
572
|
<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
|
566
|
573
|
|
567
|
574
|
<template id="renglones.html">
|
568
|
|
- <ons-navigator swipeable animation="slide" id="myNavigator">
|
569
|
575
|
<ons-page id="renglones">
|
570
|
576
|
|
571
|
577
|
<!--div class="search-bar">
|