Browse Source

red social

christian 4 years ago
parent
commit
14e5cd074d

platforms/android/app/src/main/assets/www/img/INSTRUMENTO TÍPICO.jpg → platforms/android/app/src/main/assets/www/img/INSTRUMENTOS TÍPICOS.jpg View File


platforms/android/app/src/main/assets/www/img/JUGUETES TRADICIONAL.jpg → platforms/android/app/src/main/assets/www/img/JUGUETES TRADICIONALES.jpg View File


+ 3
- 4
platforms/android/app/src/main/assets/www/index.html View File

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 View File

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

+ 15
- 9
platforms/browser/www/index.html View File

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}'
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
                         <div class="title">${Artesano.Nombre}</div>
235
                         <div class="title">${Artesano.Nombre}</div>
234
                     </ons-list-item>`);
236
                     </ons-list-item>`);
235
 
237
 
336
 
338
 
337
                                  //if(Esp[num] in artesanos_json.) {}
339
                                  //if(Esp[num] in artesanos_json.) {}
338
                                  Artesanos+=`${results[i].Nombre}|`
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
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
342
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
341
                              }
343
                              }
342
 
344
 
366
                                      mun = lot[0],
368
                                      mun = lot[0],
367
                                      tel = lot[1],
369
                                      tel = lot[1],
368
                                      email = lot[2],
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
         </script>
477
         </script>
475
 
478
 
476
         <template id="search.html">
479
         <template id="search.html">
477
-          <ons-navigator swipeable animation="slide" id="SNavigator">
478
             <ons-page id="Buscar">
480
             <ons-page id="Buscar">
479
                 <p style="text-align: center; margin-top: 10px;">
481
                 <p style="text-align: center; margin-top: 10px;">
480
                     <ons-search-input placeholder="Search anything" id = "searchbar"
482
                     <ons-search-input placeholder="Search anything" id = "searchbar"
491
                 <script>
493
                 <script>
492
                     for (i = 0; i < all_artesanos.length;i++){
494
                     for (i = 0; i < all_artesanos.length;i++){
493
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
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
                         <div>${all_artesanos[i].Nombre}</div>
497
                         <div>${all_artesanos[i].Nombre}</div>
496
                     </ons-list-item>`);
498
                     </ons-list-item>`);
497
                         // var artesano = ons.createElement(`
499
                         // var artesano = ons.createElement(`
525
                             mun = this.data.mun,
527
                             mun = this.data.mun,
526
                             tel = this.data.tel,
528
                             tel = this.data.tel,
527
                             em = this.data.email,
529
                             em = this.data.email,
528
-                            esp = this.data.esp;
530
+                            esp = this.data.esp
531
+                            redes = this.data.redes;
529
 
532
 
530
                         email = em.slice(0, em.search("#"));
533
                         email = em.slice(0, em.search("#"));
531
                         if(esp.trim() != ""){
534
                         if(esp.trim() != ""){
555
                             data+='Tel\u00e9fono: <a style="color:blue" href="tel: '+ tel +'"><u>'+ tel +'</u></a><br>';
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
                         document.getElementById("all").innerHTML = `${data}`;
565
                         document.getElementById("all").innerHTML = `${data}`;
559
 
566
 
560
                     }
567
                     }
565
 <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
572
 <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
566
 
573
 
567
         <template id="renglones.html">
574
         <template id="renglones.html">
568
-          <ons-navigator swipeable animation="slide" id="myNavigator">
569
             <ons-page id="renglones">
575
             <ons-page id="renglones">
570
 
576
 
571
             <!--div class="search-bar">
577
             <!--div class="search-bar">

+ 1
- 1
platforms/browser/www/js/saveLocal.js View File

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

+ 15
- 9
www/index.html View File

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}'
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
                         <div class="title">${Artesano.Nombre}</div>
235
                         <div class="title">${Artesano.Nombre}</div>
234
                     </ons-list-item>`);
236
                     </ons-list-item>`);
235
 
237
 
336
 
338
 
337
                                  //if(Esp[num] in artesanos_json.) {}
339
                                  //if(Esp[num] in artesanos_json.) {}
338
                                  Artesanos+=`${results[i].Nombre}|`
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
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
342
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
341
                              }
343
                              }
342
 
344
 
366
                                      mun = lot[0],
368
                                      mun = lot[0],
367
                                      tel = lot[1],
369
                                      tel = lot[1],
368
                                      email = lot[2],
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
         </script>
477
         </script>
475
 
478
 
476
         <template id="search.html">
479
         <template id="search.html">
477
-          <ons-navigator swipeable animation="slide" id="SNavigator">
478
             <ons-page id="Buscar">
480
             <ons-page id="Buscar">
479
                 <p style="text-align: center; margin-top: 10px;">
481
                 <p style="text-align: center; margin-top: 10px;">
480
                     <ons-search-input placeholder="Search anything" id = "searchbar"
482
                     <ons-search-input placeholder="Search anything" id = "searchbar"
491
                 <script>
493
                 <script>
492
                     for (i = 0; i < all_artesanos.length;i++){
494
                     for (i = 0; i < all_artesanos.length;i++){
493
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
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
                         <div>${all_artesanos[i].Nombre}</div>
497
                         <div>${all_artesanos[i].Nombre}</div>
496
                     </ons-list-item>`);
498
                     </ons-list-item>`);
497
                         // var artesano = ons.createElement(`
499
                         // var artesano = ons.createElement(`
525
                             mun = this.data.mun,
527
                             mun = this.data.mun,
526
                             tel = this.data.tel,
528
                             tel = this.data.tel,
527
                             em = this.data.email,
529
                             em = this.data.email,
528
-                            esp = this.data.esp;
530
+                            esp = this.data.esp
531
+                            redes = this.data.redes;
529
 
532
 
530
                         email = em.slice(0, em.search("#"));
533
                         email = em.slice(0, em.search("#"));
531
                         if(esp.trim() != ""){
534
                         if(esp.trim() != ""){
555
                             data+='Tel\u00e9fono: <a style="color:blue" href="tel: '+ tel +'"><u>'+ tel +'</u></a><br>';
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
                         document.getElementById("all").innerHTML = `${data}`;
565
                         document.getElementById("all").innerHTML = `${data}`;
559
 
566
 
560
                     }
567
                     }
565
 <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
572
 <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
566
 
573
 
567
         <template id="renglones.html">
574
         <template id="renglones.html">
568
-          <ons-navigator swipeable animation="slide" id="myNavigator">
569
             <ons-page id="renglones">
575
             <ons-page id="renglones">
570
 
576
 
571
             <!--div class="search-bar">
577
             <!--div class="search-bar">

+ 1
- 1
www/js/saveLocal.js View File

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