瀏覽代碼

Changed the kays that it fetches the email and tecnicas with 'Email' and 'Tecnica' instead of 'E-mail' and 'Tecnica 1' so that its the same as the ones used int he json

carlos.diaz44 3 年之前
父節點
當前提交
84f9c6e09c

二進制
platforms/android/app/src/main/assets/www/.index.html.swp 查看文件


二進制
platforms/android/app/src/main/assets/www/img/BARRO.jpg 查看文件


二進制
platforms/android/app/src/main/assets/www/img/CRISTAL.jpg 查看文件


二進制
platforms/android/app/src/main/assets/www/img/CUERO.jpg 查看文件


二進制
platforms/android/app/src/main/assets/www/img/FIBRAS.jpg 查看文件


二進制
platforms/android/app/src/main/assets/www/img/INSTRUMENTOS TÍPICOS.jpg 查看文件


二進制
platforms/android/app/src/main/assets/www/img/JUGUETES TRADICIONALES.jpg 查看文件


二進制
platforms/android/app/src/main/assets/www/img/LABORES EN AGUJA.jpg 查看文件


二進制
platforms/android/app/src/main/assets/www/img/METAL.jpg 查看文件


二進制
platforms/android/app/src/main/assets/www/img/MÁSCARAS.jpg 查看文件


二進制
platforms/android/app/src/main/assets/www/img/TABACOS.jpg 查看文件


+ 12
- 87
platforms/android/app/src/main/assets/www/index.html 查看文件

@@ -253,17 +253,14 @@
253 253
                             if (Artesano.Especificacion.trim().length != 0) {
254 254
                                 cont ++;
255 255
                             }
256
-
256
+                            
257
+                            Artesano.Nombre = Artesano.Nombre + " " + Artesano["Apellido Paterno"] + " " + Artesano["Apellido Materno"];
257 258
 
258 259
                             //info a pasar
259 260
                             //'title':'${Artesano.Nombre}','esp': '${info}'
260 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 262
                             //And puts this into the 'item' variable
262
-<<<<<<< HEAD
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["Email"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}' } })" tappable>
264
-=======
265
-                            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>
266
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
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["Email"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}', tecnicas: '${Artesano["Tecnica"]}' } })" tappable>
267 264
                         <div class="title">${Artesano.Nombre}</div>
268 265
                     </ons-list-item>`);
269 266
 
@@ -370,12 +367,10 @@
370 367
                              for(var i=0; i<results.length; i++) {
371 368
 
372 369
                                  //if(Esp[num] in artesanos_json.) {}
373
-                                 Artesanos+=`${results[i].Nombre}|`
374
-<<<<<<< HEAD
375
-                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["Email"]}|${results[i].Especificacion}&&`
376
-=======
377
-                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}|${results[i]["Tecnica 1"]}&&`
378
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
370
+                                 //results[i].Nombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
371
+                                 ANombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
372
+                                 Artesanos+=`${ANombre}|`
373
+                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["Email"]}|${results[i].Especificacion}|${results[i]["Tecnica"]}&&`
379 374
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
380 375
                              }
381 376
 
@@ -555,12 +550,9 @@
555 550
                     //This is basically declaring what we refer to as informacion in the filter() function
556 551
                     //It iterates though each artists in the all_artesanos json file from before, it displays their name in the "Buscar" page, and it gets prepared so that when its clicked it redirects to the "artesano.html" page with the other aditional information that we have other than the name.
557 552
                     for (i = 0; i < all_artesanos.length;i++){
553
+                        all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
558 554
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
559
-<<<<<<< HEAD
560
-                        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>
561
-=======
562
-                        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>
563
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
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"]}', tecnicas: '${all_artesanos[i]["Tecnica"]}' } })" tappable>
564 556
                         <div>${all_artesanos[i].Nombre}</div>
565 557
                     </ons-list-item>`);
566 558
                         document.getElementById('results').appendChild(artesano);
@@ -598,7 +590,7 @@
598 590
                             tecnicas = this.data.tecnicas;
599 591
 
600 592
                         //here the email is the string made from the start to where the '#' is.
601
-                        email = em.slice(0, em.search("#"));
593
+                        
602 594
 
603 595
                         //Here it's dividing all the especificaciones and writing them into the page (data) and then goes to the next line
604 596
                         //if it has many especificaciones then it will replace all the ';' in it with ',' and writes it into the page
@@ -630,8 +622,8 @@
630 622
 
631 623
                         //Here it's writing their email, in blue color and its used as a link to send one when it's clicked, then it goes to the next line
632 624
                         //Whenever the variable is empty or if it has "NO TIENE" then it doesnt write anything
633
-                        if(email.trim() != "" & email.toUpperCase().trim() != "NO TIENE"){
634
-                            data+='Correo Electr\u00f3nico: <a style="color:blue" href="mailto: '+email+'"><u>'+email+'</u></a><br>';
625
+                        if(em.trim() != "" & em.toUpperCase().trim() != "NO TIENE"){
626
+                            data+='Correo Electr\u00f3nico: <a style="color:blue" href="mailto: '+em+'"><u>'+em+'</u></a><br>';
635 627
                         }
636 628
 
637 629
                         //Here it's writing their phone number into the page,its in blue and whenever its clicked the app will redirect the user to call them, then it goes to the next line
@@ -741,11 +733,6 @@
741 733
                     <script type="text/javascript" src="calendar_files/js/events.js"></script>
742 734
                 </div>
743 735
 
744
-<<<<<<< HEAD
745
-                </ons-card>-->
746
-                <br><br><br>
747
-                <button onclick="redirect()">Pasar a la pagina de eventos</button>
748
-=======
749 736
                 </ons-card>--
750 737
                 <br><br><br>-->
751 738
                 <ons-card>
@@ -761,7 +748,6 @@
761 748
                     El Instituto de Cultura Puertorriqueña, el Gobierno de Puerto Rico, los Colaboradores de esta aplicación, así como los funcionarios, empleados y contratistas de los anteriores, no se hacen responsables de los mensajes, imágenes, opiniones, servicios, declaraciones, representaciones o cualquier forma de contenido incluido en cualquiera de los enlaces accesibles, vinculados o referidos a través de ArtesaníasICP.
762 749
                 </div>
763 750
                 </ons-card>
764
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
765 751
 
766 752
               <script>
767 753
               function redirect() {
@@ -794,60 +780,6 @@
794 780
                         <br><br>
795 781
                         En esta plataforma agrupamos herramientas que permitirán que tu organización adquiera mayor visibilidad, recursos, conexiones, capacidad para una operación más eficiente y efectiva.
796 782
                         <br><br>
797
-<<<<<<< HEAD
798
-                    </body>
799
-                    
800
-
801
-
802
-                    Visita nuestra <a href="https://www.icp.pr.gov/">Página Web</a> o síguenos en nuestras redes sociales: <br> <br> 
803
-                    <a href="https://twitter.com/icppr"><img src="img/twitter.png" alt="Twitter" style="width:35px;height:35px;border:0;">
804
-                    </a> 
805
-                    <a href="https://facebook.com/icppr"><img src="img/facebook.png" alt="Facebook" style="width:35px;height:35px;border:0;">
806
-=======
807
-                        Saludos Cordiales,
808
-                                Aziria
809
-                    </div>   
810
-                    <div class = "column"> 
811
-                        <img src="img/sfpr.svg" style="width:150px;height:100px">
812
-                    </div>
813
-                    <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
814
-                    Visita nuesta Página Web o siguenos en nuestras redes sociales<br>
815
-                    <a href="https://twitter.com/SINFINESPR"><img src="img/twitter.png" alt="Twitter" style="width:35px;height:35px;border:0;">
816
-                    </a>
817
-                    <a href="https://www.facebook.com/sinfinespr"><img src="img/facebook.png" alt="Facebook" style="width:35px;height:35px;border:0;">
818
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
819
-                    </a>
820
-                    <a href="https://www.linkedin.com/company/sinfinespr/"><img src="img/linkedin.png" alt="Linkedin" style="width:35px;height:35px;border:0;">
821
-                    </a>
822
-                    <a href="https://www.instagram.com/sinfinespr/"><img src="img/instagram.png" alt="Instagram" style="width:35px;height:35px;border:0;">
823
-                    </a>
824
-<<<<<<< HEAD
825
-                    
826
-                    <br><br><br>
827
-                    <button onclick="redirect()">Pasar a la pagina de eventos</button>
828
-
829
-                    <script>
830
-                        function redirect() {
831
-                            location.replace("https://facebook.com/icppr")
832
-                        }
833
-                    </script>
834
-                    
835
-                    <br><br>
836
-                    <style>
837
-                        .column {
838
-                            float: left;
839
-                            width: 50%;
840
-                        }
841
-                        .row {
842
-                            width: 100%;
843
-                        }
844
-                    </style>
845
-                    <h2>SINFINESPR</h2>
846
-                    <div class = "column">
847
-                        SINFINESPR es un programa de Titín Foundation que responde a nuestro interés y compromiso con el fortalecimiento del tercer sector.
848
-                        <br><br>
849
-                        En esta plataforma agrupamos herramientas que permitirán que tu organización adquiera mayor visibilidad, recursos, conexiones, capacidad para una operación más eficiente y efectiva.
850
-                        <br><br>
851 783
                         Saludos Cordiales,
852 784
                                 Aziria
853 785
                     </div>   
@@ -865,12 +797,6 @@
865 797
                     <a href="https://www.instagram.com/sinfinespr/"><img src="img/instagram.png" alt="Instagram" style="width:35px;height:35px;border:0;">
866 798
                     </a>
867 799
                     <br><br>
868
-                    <h2>Centro de Desarrollo y Consultoria Computacional</h2>
869
-                    El Centro de Desarrollo y Consultoría Computacional está compuesto por profesores y estudiantes del departamento de Ciencia de Cómputos de la Universidad de Puerto Rico Recinto de Río Piedras. Nuestra meta es aportar al desarrollo computacional de la Universidad y de Puerto Rico al proveer servicios al día, de calidad y con precios accesibles, a la misma vez que se le ofrece experiencias prácticas a los estudiantes del departamento de Ciencia de Cómputos.
870
-                    <br><br>
871
-                    Si tiene alguna duda nos puede conactar por:
872
-=======
873
-                    <br><br>
874 800
                     <h2>Centro de Desarrollo y Consultoría Computacional</h2>
875 801
                     El Centro de Desarrollo y Consultoría Computacional está compuesto por profesores y estudiantes del departamento de Ciencia de Cómputos de la Universidad de Puerto Rico Recinto de Río Piedras. Nuestra meta es aportar al desarrollo computacional de la Universidad y de Puerto Rico al proveer servicios al día, de calidad y con precios accesibles, a la misma vez que se le ofrece experiencias prácticas a los estudiantes del departamento de Ciencia de Cómputos.
876 802
                     <br><br>
@@ -879,7 +805,6 @@
879 805
                     
880 806
                     <br><br>
881 807
                     Si tiene alguna duda nos puede contactar por:
882
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
883 808
                     <br>
884 809
                     Teléfono: 787-764-0000 Ext. 88341, 88349
885 810
                     <br>

+ 0
- 4
platforms/android/app/src/main/assets/www/js/azar.js 查看文件

@@ -6,11 +6,7 @@ var data = JSON.parse(localStorage.getItem("AZAR"));
6 6
 var page = document.getElementById("home");
7 7
 
8 8
 var aleatorio = Math.floor(Math.random()*52);
9
-<<<<<<< HEAD
10
-document.getElementById("image").innerHTML = `<img src="img/${aleatorio}.jpg" width="100%" height="300">`;
11
-=======
12 9
 document.getElementById("image").innerHTML = `<img src="img/${aleatorio}.jpg" width="100%" height="auto">`;
13
->>>>>>> 37c3d6cd46f4836cbf2145a6b7b02f3478ec5a4c
14 10
 document.getElementById("Content").innerHTML = "<h4>" + data[aleatorio].titulo + "</h4>" + data[aleatorio].texto; 
15 11
 
16 12
 page.addEventListener("show", function(event){

+ 2
- 2
platforms/android/app/src/main/assets/www/js/searchfunctions.js 查看文件

@@ -123,7 +123,7 @@ function find_artesania(i,input){
123 123
 
124 124
 
125 125
 function find_tecnicas(i,input){
126
-    var tecnicas = all_artesanos[i]["Tecnica 1"];
126
+    var tecnicas = all_artesanos[i]["Tecnica"];
127 127
     tecnicas = tecnicas.trim().toLowerCase();
128 128
     tecnicas = acento_replace(tecnicas);
129 129
     if(tecnicas.search(input) != -1){
@@ -170,7 +170,7 @@ function find_telefono(i,input){
170 170
 //trata de ver si el input es parte del email del artista i
171 171
 //Mayuscula and acento proof
172 172
 function find_email(i,input){
173
-    var email = all_artesanos[i]["E-mail"];
173
+    var email = all_artesanos[i]["Email"];
174 174
     email = email.trim().toLowerCase();
175 175
     email = acento_replace(email);
176 176
     if(email.search(input) != -1){

二進制
platforms/android/app/src/main/res/mipmap-xhdpi-v26/ic_launcher_background.png 查看文件


二進制
platforms/browser/www/.index.html.swp 查看文件


二進制
www/.index.html.swp 查看文件


+ 6
- 5
www/index.html 查看文件

@@ -260,7 +260,7 @@
260 260
                             //'title':'${Artesano.Nombre}','esp': '${info}'
261 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 262
                             //And puts this into the 'item' variable
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>
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["Email"]}', esp: '${Artesano.Especificacion}', redes: '${Artesano["E-Commerce 1"]}', tecnicas: '${Artesano["Tecnica"]}' } })" tappable>
264 264
                         <div class="title">${Artesano.Nombre}</div>
265 265
                     </ons-list-item>`);
266 266
 
@@ -367,9 +367,10 @@
367 367
                              for(var i=0; i<results.length; i++) {
368 368
 
369 369
                                  //if(Esp[num] in artesanos_json.) {}
370
-                                 results[i].Nombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
371
-                                 Artesanos+=`${results[i].Nombre}|`
372
-                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["E-mail"]}|${results[i].Especificacion}|${results[i]["Tecnica 1"]}&&`
370
+                                 //results[i].Nombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
371
+                                 ANombre = results[i].Nombre + " " + results[i]["Apellido Paterno"] + " " + results[i]["Apellido Materno"]
372
+                                 Artesanos+=`${ANombre}|`
373
+                                 ArtesanosInfo+=`${results[i].Municipio}|${results[i]["Telefono 1"]}|${results[i]["Email"]}|${results[i].Especificacion}|${results[i]["Tecnica"]}&&`
373 374
                                  //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
374 375
                              }
375 376
 
@@ -551,7 +552,7 @@
551 552
                     for (i = 0; i < all_artesanos.length;i++){
552 553
                         all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
553 554
                         var artesano = ons.createElement(`<ons-list-item class = "artists"
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>
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"]}', tecnicas: '${all_artesanos[i]["Tecnica"]}' } })" tappable>
555 556
                         <div>${all_artesanos[i].Nombre}</div>
556 557
                     </ons-list-item>`);
557 558
                         document.getElementById('results').appendChild(artesano);

+ 2
- 2
www/js/searchfunctions.js 查看文件

@@ -123,7 +123,7 @@ function find_artesania(i,input){
123 123
 
124 124
 
125 125
 function find_tecnicas(i,input){
126
-    var tecnicas = all_artesanos[i]["Tecnica 1"];
126
+    var tecnicas = all_artesanos[i]["Tecnica"];
127 127
     tecnicas = tecnicas.trim().toLowerCase();
128 128
     tecnicas = acento_replace(tecnicas);
129 129
     if(tecnicas.search(input) != -1){
@@ -170,7 +170,7 @@ function find_telefono(i,input){
170 170
 //trata de ver si el input es parte del email del artista i
171 171
 //Mayuscula and acento proof
172 172
 function find_email(i,input){
173
-    var email = all_artesanos[i]["E-mail"];
173
+    var email = all_artesanos[i]["Email"];
174 174
     email = email.trim().toLowerCase();
175 175
     email = acento_replace(email);
176 176
     if(email.search(input) != -1){