Browse Source

fix in search

Christian Matos 3 years ago
parent
commit
3e37077f57
2 changed files with 0 additions and 51 deletions
  1. 0
    47
      platforms/browser/www/index.html
  2. 0
    4
      www/index.html

+ 0
- 47
platforms/browser/www/index.html View File

260
                             //'title':'${Artesano.Nombre}','esp': '${info}'
260
                             //'title':'${Artesano.Nombre}','esp': '${info}'
261
                             //Tries to pass all the info of each artesano into a new page, the page that display this information is 'artesano.html', not to be confused with 'artesanias.html' or 'artesanos.html'(current page)
261
                             //Tries to pass all the info of each artesano into a new page, the page that display this information is 'artesano.html', not to be confused with 'artesanias.html' or 'artesanos.html'(current page)
262
                             //And puts this into the 'item' variable
262
                             //And puts this into the 'item' variable
263
-<<<<<<< HEAD
264
-                            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["Email"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}' } })" tappable>
265
-=======
266
                             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"]}', tecnicas: '${Artesano["Tecnica 1"]}' } })" tappable>
263
                             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"]}', tecnicas: '${Artesano["Tecnica 1"]}' } })" tappable>
267
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
268
                         <div class="title">${Artesano.Nombre}</div>
264
                         <div class="title">${Artesano.Nombre}</div>
269
                     </ons-list-item>`);
265
                     </ons-list-item>`);
270
 
266
 
373
                                  //if(Esp[num] in artesanos_json.) {}
369
                                  //if(Esp[num] in artesanos_json.) {}
374
                                  results[i].Nombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
370
                                  results[i].Nombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
375
                                  Artesanos+=`${results[i].Nombre}|`
371
                                  Artesanos+=`${results[i].Nombre}|`
376
-<<<<<<< HEAD
377
-                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["Email"]}|${results[i].Especificacion}&&`
378
-=======
379
                                  ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}|${results[i]["Tecnica 1"]}&&`
372
                                  ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}|${results[i]["Tecnica 1"]}&&`
380
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
381
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
373
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
382
                              }
374
                              }
383
 
375
 
411
                                      redes = lot[4],
403
                                      redes = lot[4],
412
                                      tecnicas = lot[5];
404
                                      tecnicas = lot[5];
413
 
405
 
414
-<<<<<<< HEAD
415
-                                 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>`;
416
-                                 console.log(listaArt)
417
-=======
418
                                  listaArt += `<ons-item tappable onclick="myNavigator.pushPage('artesano.html', {data: {title:'${arts[i]}', mun: '${mun}', tel: '${tel}', email: '${email}', esp: '${esp}', redes: '${redes}', tecnicas: '${tecnicas}' }} )" ><div class="center">`+ arts[i] +`</div></ons-item><br>`;
406
                                  listaArt += `<ons-item tappable onclick="myNavigator.pushPage('artesano.html', {data: {title:'${arts[i]}', mun: '${mun}', tel: '${tel}', email: '${email}', esp: '${esp}', redes: '${redes}', tecnicas: '${tecnicas}' }} )" ><div class="center">`+ arts[i] +`</div></ons-item><br>`;
419
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
420
                              }
407
                              }
421
 
408
 
422
                              if (Artesania.name == "Figuras y simbolos indigenas") {
409
                              if (Artesania.name == "Figuras y simbolos indigenas") {
564
                     for (i = 0; i < all_artesanos.length;i++){
551
                     for (i = 0; i < all_artesanos.length;i++){
565
                         all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
552
                         all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
566
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
553
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
567
-<<<<<<< HEAD
568
-                        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]["Email"]}', esp: '${all_artesanos[i].Especificacion}', redes: '${all_artesanos[i]["E-Commerce 1"]}' } })" tappable>
569
-=======
570
                         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"]}', tecnicas: '${all_artesanos[i]["Tecnica 1"]}' } })" tappable>
554
                         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"]}', tecnicas: '${all_artesanos[i]["Tecnica 1"]}' } })" tappable>
571
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
572
                         <div>${all_artesanos[i].Nombre}</div>
555
                         <div>${all_artesanos[i].Nombre}</div>
573
                     </ons-list-item>`);
556
                     </ons-list-item>`);
574
                         document.getElementById('results').appendChild(artesano);
557
                         document.getElementById('results').appendChild(artesano);
602
                             tel = this.data.tel,
585
                             tel = this.data.tel,
603
                             em = this.data.email,
586
                             em = this.data.email,
604
                             esp = this.data.esp,
587
                             esp = this.data.esp,
605
-<<<<<<< HEAD
606
-                            redes = this.data.redes;
607
-                    
608
-=======
609
                             redes = this.data.redes,
588
                             redes = this.data.redes,
610
                             tecnicas = this.data.tecnicas;
589
                             tecnicas = this.data.tecnicas;
611
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
612
 
590
 
613
                         //here the email is the string made from the start to where the '#' is.
591
                         //here the email is the string made from the start to where the '#' is.
614
                         
592
                         
786
 
764
 
787
                     <h1>Colaboradores</h1>
765
                     <h1>Colaboradores</h1>
788
                     
766
                     
789
-<<<<<<< HEAD
790
-
791
-
792
-                    Visita nuestra <a href="https://www.icp.pr.gov/">Página Web</a> o síguenos en nuestras redes sociales: <br> <br> 
793
-                    <a href="https://twitter.com/icppr"><img src="img/twitter.png" alt="Twitter" style="width:35px;height:35px;border:0;">
794
-                    </a> 
795
-                    <a href="https://facebook.com/icppr"><img src="img/facebook.png" alt="Facebook" style="width:35px;height:35px;border:0;">
796
-                    </a>
797
-                    <a href="https://youtube.com/user/icppr"><img src="img/youtube.png" alt="Youtube" style="width:35px;height:35px;border:0;">
798
-                    </a>
799
-                    <a href="https://instagram.com/icppr"><img src="img/instagram.png" alt="Instagram" style="width:35px;height:35px;border:0;">
800
-                    </a>
801
-                    
802
-                    <br><br><br>
803
-                    <button onclick="redirect()">Pasar a la pagina de eventos</button>
804
-
805
-                    <script>
806
-                        function redirect() {
807
-                            location.replace("https://facebook.com/icppr")
808
-                        }
809
-                    </script>
810
-                    
811
-                    <br><br>
812
-=======
813
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
814
                     <style>
767
                     <style>
815
                         .column {
768
                         .column {
816
                             float: left;
769
                             float: left;

+ 0
- 4
www/index.html View File

551
                     for (i = 0; i < all_artesanos.length;i++){
551
                     for (i = 0; i < all_artesanos.length;i++){
552
                         all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
552
                         all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
553
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
553
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
554
-<<<<<<< HEAD
555
-                        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]["Email"]}', esp: '${all_artesanos[i].Especificacion}', redes: '${all_artesanos[i]["E-Commerce 1"]}' } })" tappable>
556
-=======
557
                         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"]}', tecnicas: '${all_artesanos[i]["Tecnica 1"]}' } })" tappable>
554
                         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"]}', tecnicas: '${all_artesanos[i]["Tecnica 1"]}' } })" tappable>
558
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
559
                         <div>${all_artesanos[i].Nombre}</div>
555
                         <div>${all_artesanos[i].Nombre}</div>
560
                     </ons-list-item>`);
556
                     </ons-list-item>`);
561
                         document.getElementById('results').appendChild(artesano);
557
                         document.getElementById('results').appendChild(artesano);