|
@@ -53,10 +53,9 @@
|
53
|
53
|
|
54
|
54
|
<script type="text/javascript" src="js/saveLocal.js"></script>
|
55
|
55
|
|
56
|
|
- <script> console.log(window.localStorage.getItem("MADERA")); </script>
|
57
|
56
|
|
58
|
57
|
|
59
|
|
- <ons-navigator swipeable animation="slide" id="myNavigator">
|
|
58
|
+
|
60
|
59
|
<ons-page>
|
61
|
60
|
<ons-toolbar>
|
62
|
61
|
<div class="center">Directorio Artesanal</div>
|
|
@@ -200,7 +199,6 @@
|
200
|
199
|
<div class="expandable-content"> Municipio: ${Artesano.Municipio}<br>
|
201
|
200
|
Tel\u00e9fono: ${Artesano["Telefono 1"]}<br>
|
202
|
201
|
Correo Electr\u00f3nico: ${Artesano["E-mail"]}<br>
|
203
|
|
- Red Social: ${Artesano["E-mail"]} <br>
|
204
|
202
|
</div>
|
205
|
203
|
</ons-list-item>`
|
206
|
204
|
);
|
|
@@ -231,11 +229,7 @@
|
231
|
229
|
|
232
|
230
|
//info a pasar
|
233
|
231
|
//'title':'${Artesano.Nombre}','esp': '${info}'
|
234
|
|
-<<<<<<< HEAD
|
235
|
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"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}' } })" tappable>
|
236
|
|
-=======
|
237
|
|
- 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>
|
238
|
|
->>>>>>> 14e5cd074daf97094f534be2284dd3318186d299
|
239
|
233
|
<div class="title">${Artesano.Nombre}</div>
|
240
|
234
|
</ons-list-item>`);
|
241
|
235
|
|
|
@@ -342,7 +336,7 @@
|
342
|
336
|
|
343
|
337
|
//if(Esp[num] in artesanos_json.) {}
|
344
|
338
|
Artesanos+=`${results[i].Nombre}|`
|
345
|
|
- ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}|${results[i]["E-Commerce 1"]}&&`
|
|
339
|
+ ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}&&`
|
346
|
340
|
//`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
|
347
|
341
|
}
|
348
|
342
|
|
|
@@ -372,11 +366,7 @@
|
372
|
366
|
mun = lot[0],
|
373
|
367
|
tel = lot[1],
|
374
|
368
|
email = lot[2],
|
375
|
|
-<<<<<<< HEAD
|
376
|
369
|
esp = lot[3],
|
377
|
|
-=======
|
378
|
|
- esp = lot[3]
|
379
|
|
->>>>>>> 14e5cd074daf97094f534be2284dd3318186d299
|
380
|
370
|
redes = lot[4];
|
381
|
371
|
|
382
|
372
|
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>`;
|
|
@@ -485,6 +475,7 @@
|
485
|
475
|
</script>
|
486
|
476
|
|
487
|
477
|
<template id="search.html">
|
|
478
|
+ <ons-navigator swipeable animation="slide" id="SNavigator">
|
488
|
479
|
<ons-page id="Buscar">
|
489
|
480
|
<p style="text-align: center; margin-top: 10px;">
|
490
|
481
|
<ons-search-input placeholder="Search anything" id = "searchbar"
|
|
@@ -501,11 +492,7 @@
|
501
|
492
|
<script>
|
502
|
493
|
for (i = 0; i < all_artesanos.length;i++){
|
503
|
494
|
var artesano = ons.createElement(`<ons-list-item class = "artists"
|
504
|
|
-<<<<<<< HEAD
|
505
|
495
|
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"]}', esp: '${all_artesanos[i].Especificacion}', redes: '${all_artesanos[i]["E-Commerce 1"]}' } })" tappable>
|
506
|
|
-=======
|
507
|
|
- 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>
|
508
|
|
->>>>>>> 14e5cd074daf97094f534be2284dd3318186d299
|
509
|
496
|
<div>${all_artesanos[i].Nombre}</div>
|
510
|
497
|
</ons-list-item>`);
|
511
|
498
|
// var artesano = ons.createElement(`
|
|
@@ -539,11 +526,7 @@
|
539
|
526
|
mun = this.data.mun,
|
540
|
527
|
tel = this.data.tel,
|
541
|
528
|
em = this.data.email,
|
542
|
|
-<<<<<<< HEAD
|
543
|
529
|
esp = this.data.esp,
|
544
|
|
-=======
|
545
|
|
- esp = this.data.esp
|
546
|
|
->>>>>>> 14e5cd074daf97094f534be2284dd3318186d299
|
547
|
530
|
redes = this.data.redes;
|
548
|
531
|
|
549
|
532
|
email = em.slice(0, em.search("#"));
|
|
@@ -574,7 +557,6 @@
|
574
|
557
|
data+='Tel\u00e9fono: <a style="color:blue" href="tel: '+ tel +'"><u>'+ tel +'</u></a><br>';
|
575
|
558
|
}
|
576
|
559
|
|
577
|
|
-<<<<<<< HEAD
|
578
|
560
|
console.log("Redes: "+redes);
|
579
|
561
|
|
580
|
562
|
if(redes.includes("facebook")){
|
|
@@ -602,11 +584,6 @@
|
602
|
584
|
console.log("no tiene nada");
|
603
|
585
|
}
|
604
|
586
|
|
605
|
|
-=======
|
606
|
|
- if (redes.trim() != "") {
|
607
|
|
- data+='Red Social: ' + redes + '<br>';
|
608
|
|
- }
|
609
|
|
->>>>>>> 14e5cd074daf97094f534be2284dd3318186d299
|
610
|
587
|
|
611
|
588
|
document.getElementById("all").innerHTML = `${data}`;
|
612
|
589
|
|
|
@@ -618,6 +595,7 @@
|
618
|
595
|
<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
|
619
|
596
|
|
620
|
597
|
<template id="renglones.html">
|
|
598
|
+ <ons-navigator swipeable animation="slide" id="myNavigator">
|
621
|
599
|
<ons-page id="renglones">
|
622
|
600
|
|
623
|
601
|
<!--div class="search-bar">
|