lyxaira.glass 3 vuotta sitten
vanhempi
commit
cf324b0467

platforms/android/app/src/main/assets/www/img/INSTRUMENTO TÍPICO.jpg → platforms/android/app/src/main/assets/www/img/INSTRUMENTOS TÍPICOS.jpg Näytä tiedosto


platforms/android/app/src/main/assets/www/img/JUGUETES TRADICIONAL.jpg → platforms/android/app/src/main/assets/www/img/JUGUETES TRADICIONALES.jpg Näytä tiedosto


+ 3
- 4
platforms/android/app/src/main/assets/www/index.html Näytä tiedosto

53
 
53
 
54
       <script type="text/javascript" src="js/saveLocal.js"></script>
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
            <ons-page>
60
            <ons-page>
60
             <ons-toolbar>
61
             <ons-toolbar>
61
                 <div class="center">Directorio Artesanal</div>
62
                 <div class="center">Directorio Artesanal</div>
474
         </script>
475
         </script>
475
 
476
 
476
         <template id="search.html">
477
         <template id="search.html">
477
-          <ons-navigator swipeable animation="slide" id="SNavigator">
478
             <ons-page id="Buscar">
478
             <ons-page id="Buscar">
479
                 <p style="text-align: center; margin-top: 10px;">
479
                 <p style="text-align: center; margin-top: 10px;">
480
                     <ons-search-input placeholder="Search anything" id = "searchbar"
480
                     <ons-search-input placeholder="Search anything" id = "searchbar"
491
                 <script>
491
                 <script>
492
                     for (i = 0; i < all_artesanos.length;i++){
492
                     for (i = 0; i < all_artesanos.length;i++){
493
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
493
                         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>
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>
495
                         <div>${all_artesanos[i].Nombre}</div>
495
                         <div>${all_artesanos[i].Nombre}</div>
496
                     </ons-list-item>`);
496
                     </ons-list-item>`);
497
                         // var artesano = ons.createElement(`
497
                         // var artesano = ons.createElement(`
565
 <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
565
 <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
566
 
566
 
567
         <template id="renglones.html">
567
         <template id="renglones.html">
568
-          <ons-navigator swipeable animation="slide" id="myNavigator">
569
             <ons-page id="renglones">
568
             <ons-page id="renglones">
570
 
569
 
571
             <!--div class="search-bar">
570
             <!--div class="search-bar">

+ 1
- 1
platforms/android/app/src/main/assets/www/js/saveLocal.js Näytä tiedosto

38
   }
38
   }
39
   } catch {
39
   } catch {
40
     console.log("error");
40
     console.log("error");
41
-  }
41
+  }

+ 26
- 4
platforms/browser/www/index.html Näytä tiedosto

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

+ 1
- 1
platforms/browser/www/js/saveLocal.js Näytä tiedosto

38
   }
38
   }
39
   } catch {
39
   } catch {
40
     console.log("error");
40
     console.log("error");
41
-  }
41
+  }

+ 24
- 4
www/index.html Näytä tiedosto

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

+ 1
- 1
www/js/saveLocal.js Näytä tiedosto

38
   }
38
   }
39
   } catch {
39
   } catch {
40
     console.log("error");
40
     console.log("error");
41
-  }
41
+  }