|
@@ -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>
|
|
@@ -413,7 +412,7 @@
|
413
|
412
|
<!----------------------------------------------------------------------------------->
|
414
|
413
|
<script src = "js/searchfunctions.js"></script>
|
415
|
414
|
<script>
|
416
|
|
- //JSON file that has all the artesanos
|
|
415
|
+ //JSON file that has all the artesanos
|
417
|
416
|
var all_artesanos = JSON.parse(window.localStorage.getItem("TODOS"));
|
418
|
417
|
function filter(){
|
419
|
418
|
var input = document.getElementById('searchbar').value;
|
|
@@ -471,15 +470,16 @@
|
471
|
470
|
break;
|
472
|
471
|
}
|
473
|
472
|
}
|
474
|
|
- }
|
|
473
|
+ }
|
475
|
474
|
</script>
|
476
|
475
|
|
477
|
476
|
<template id="search.html">
|
|
477
|
+ <ons-navigator swipeable animation="slide" id="SNavigator">
|
478
|
478
|
<ons-page id="Buscar">
|
479
|
479
|
<p style="text-align: center; margin-top: 10px;">
|
480
|
480
|
<ons-search-input placeholder="Search anything" id = "searchbar"
|
481
|
481
|
onkeyup = "filter()"></ons-search-input>
|
482
|
|
- <ons-search-input placeholder="Tipo de artesania" id = "searchartesania"
|
|
482
|
+ <ons-search-input placeholder="Tipo de artesania" id = "searchartesania"
|
483
|
483
|
onkeyup = "filter()"></ons-search-input>
|
484
|
484
|
<ons-search-input placeholder = "Municipio" id = "searchbarmunicipio"
|
485
|
485
|
onkeyup = "filter()"></ons-search-input>
|
|
@@ -491,7 +491,7 @@
|
491
|
491
|
<script>
|
492
|
492
|
for (i = 0; i < all_artesanos.length;i++){
|
493
|
493
|
var artesano = ons.createElement(`<ons-list-item class = "artists"
|
494
|
|
- 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>
|
|
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>
|
495
|
495
|
<div>${all_artesanos[i].Nombre}</div>
|
496
|
496
|
</ons-list-item>`);
|
497
|
497
|
// var artesano = ons.createElement(`
|
|
@@ -543,7 +543,7 @@
|
543
|
543
|
if(mun.trim() != ""){
|
544
|
544
|
data+='Municipio: '+ mun +'<br>';
|
545
|
545
|
}
|
546
|
|
-
|
|
546
|
+
|
547
|
547
|
if(email.trim() != "" & email.toUpperCase().trim() != "NO TIENE"){
|
548
|
548
|
data+='Correo Electr\u00f3nico: <a style="color:blue" href="mailto: '+email+'"><u>'+email+'</u></a><br>';
|
549
|
549
|
}
|
|
@@ -565,6 +565,7 @@
|
565
|
565
|
<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
|
566
|
566
|
|
567
|
567
|
<template id="renglones.html">
|
|
568
|
+ <ons-navigator swipeable animation="slide" id="myNavigator">
|
568
|
569
|
<ons-page id="renglones">
|
569
|
570
|
|
570
|
571
|
<!--div class="search-bar">
|
|
@@ -679,4 +680,4 @@
|
679
|
680
|
<script type="text/javascript" src="cordova.js"></script>
|
680
|
681
|
<script type="text/javascript" src="js/index.js"></script>
|
681
|
682
|
</body>
|
682
|
|
-</html>
|
|
683
|
+</html>
|