christian пре 4 година
родитељ
комит
91e49ee873

+ 9
- 8
platforms/android/app/src/main/assets/www/index.html Прегледај датотеку

@@ -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>

+ 5
- 3
platforms/android/app/src/main/assets/www/js/renglones.js Прегледај датотеку

@@ -5,11 +5,13 @@ var info = JSON.parse(window.localStorage.getItem("RENGLONES"));
5 5
 var list = document.getElementById("list");
6 6
 
7 7
   for (var i = 0; i < info.length; i++) {
8
+          var renglonLower = info[i].Renglones.toLowerCase()
9
+          var renglonCap = renglonLower.charAt(0).toUpperCase() + renglonLower.slice(1)
10
+
8 11
 
9
-          
10 12
 
11 13
           var item = ons.createElement(`<ons-list-item expandable onclick="hideAll()">
12
-                      <div class="center">${info[i].Renglones}</div>
14
+                      <div class="center">${renglonCap}</div>
13 15
                       <div class="right"><img class="list-item__thumbnail" src="img/${info[i].Renglones}.jpg"></div>
14 16
                       <div class="expandable-content">
15 17
                       <ons-list>
@@ -24,4 +26,4 @@ var list = document.getElementById("list");
24 26
   /*`<ons-card onclick="fn.pushPage({'id':'artesanias.html','title':'${info[i].Renglones}','esp': '${info[i].Especificaciones}'})">
25 27
                         <div class="title">${info[i].Renglones}</div>
26 28
                         <div class="content"><img class="list-item__thumbnail" src="img/${info[i].Renglones}.png"></div>
27
-                    </ons-card>`*/
29
+                    </ons-card>`*/

www/img/INSTRUMENTO TÍPICO.jpg → platforms/browser/www/img/INSTRUMENTOS TÍPICOS.jpg Прегледај датотеку


www/img/JUGUETES TRADICIONAL.jpg → platforms/browser/www/img/JUGUETES TRADICIONALES.jpg Прегледај датотеку


platforms/browser/www/img/INSTRUMENTO TÍPICO.jpg → www/img/INSTRUMENTOS TÍPICOS.jpg Прегледај датотеку


platforms/browser/www/img/JUGUETES TRADICIONAL.jpg → www/img/JUGUETES TRADICIONALES.jpg Прегледај датотеку