Browse Source

Changed to localStorage

Christian 5 years ago
parent
commit
825b3c31dc
56 changed files with 138 additions and 252 deletions
  1. 0
    1
      platforms/android/app/src/main/assets/www/Server/AROMATIZACIÓN.json
  2. 0
    1
      platforms/android/app/src/main/assets/www/Server/BAMBÚ.json
  3. 0
    1
      platforms/android/app/src/main/assets/www/Server/BARRO.json
  4. 0
    1
      platforms/android/app/src/main/assets/www/Server/CARETAS.json
  5. 0
    1
      platforms/android/app/src/main/assets/www/Server/CRISTAL.json
  6. 0
    1
      platforms/android/app/src/main/assets/www/Server/CUERO.json
  7. 0
    1
      platforms/android/app/src/main/assets/www/Server/DESECHOS MARINOS.json
  8. 0
    1
      platforms/android/app/src/main/assets/www/Server/DULCES TÍPICOS.json
  9. 0
    1
      platforms/android/app/src/main/assets/www/Server/FIBRAS .json
  10. 0
    1
      platforms/android/app/src/main/assets/www/Server/HIGÜERA.json
  11. 0
    1
      platforms/android/app/src/main/assets/www/Server/INSTRUMENTOS TÍPICOS.json
  12. 0
    1
      platforms/android/app/src/main/assets/www/Server/JUGUETES TRADICIONALES.json
  13. 0
    1
      platforms/android/app/src/main/assets/www/Server/LABORES EN AGUJA.json
  14. 0
    1
      platforms/android/app/src/main/assets/www/Server/MADERA.json
  15. 0
    1
      platforms/android/app/src/main/assets/www/Server/METAL.json
  16. 0
    1
      platforms/android/app/src/main/assets/www/Server/PAPEL CARTÓN.json
  17. 0
    1
      platforms/android/app/src/main/assets/www/Server/PIEDRAS.json
  18. 0
    1
      platforms/android/app/src/main/assets/www/Server/PORCELANICRÓN.json
  19. 0
    1
      platforms/android/app/src/main/assets/www/Server/SEMILLAS.json
  20. 0
    1
      platforms/android/app/src/main/assets/www/Server/TABACOS.json
  21. 0
    1
      platforms/android/app/src/main/assets/www/Server/TEXTILES.json
  22. 0
    76
      platforms/android/app/src/main/assets/www/Server/driveToJson.php
  23. 0
    1
      platforms/android/app/src/main/assets/www/Server/renglones.json
  24. 21
    0
      platforms/android/app/src/main/assets/www/index.html
  25. 19
    17
      platforms/android/app/src/main/assets/www/js/renglones.js
  26. 0
    1
      platforms/android/app/src/main/assets/www/json/MADERA.json
  27. 0
    1
      platforms/android/app/src/main/assets/www/json/renglones.json
  28. 39
    1
      platforms/browser/www/index.html
  29. 19
    17
      platforms/browser/www/js/renglones.js
  30. 0
    1
      www/Server/AROMATIZACIÓN.json
  31. 0
    1
      www/Server/BAMBÚ.json
  32. 0
    1
      www/Server/BARRO.json
  33. 0
    1
      www/Server/CARETAS.json
  34. 0
    1
      www/Server/CRISTAL.json
  35. 0
    1
      www/Server/CUERO.json
  36. 0
    1
      www/Server/DESECHOS MARINOS.json
  37. 0
    1
      www/Server/DULCES TÍPICOS.json
  38. 0
    1
      www/Server/FIBRAS .json
  39. 0
    1
      www/Server/HIGÜERA.json
  40. 0
    1
      www/Server/INSTRUMENTOS TÍPICOS.json
  41. 0
    1
      www/Server/JUGUETES TRADICIONALES.json
  42. 0
    1
      www/Server/LABORES EN AGUJA.json
  43. 0
    1
      www/Server/MADERA.json
  44. 0
    1
      www/Server/METAL.json
  45. 0
    1
      www/Server/PAPEL CARTÓN.json
  46. 0
    1
      www/Server/PIEDRAS.json
  47. 0
    1
      www/Server/PORCELANICRÓN.json
  48. 0
    1
      www/Server/SEMILLAS.json
  49. 0
    1
      www/Server/TABACOS.json
  50. 0
    1
      www/Server/TEXTILES.json
  51. 0
    76
      www/Server/driveToJson.php
  52. 0
    1
      www/Server/renglones.json
  53. 21
    0
      www/index.html
  54. 19
    17
      www/js/renglones.js
  55. 0
    1
      www/json/MADERA.json
  56. 0
    1
      www/json/renglones.json

+ 0
- 1
platforms/android/app/src/main/assets/www/Server/AROMATIZACIÓN.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/BAMBÚ.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/BARRO.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/CARETAS.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/CRISTAL.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/CUERO.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/DESECHOS MARINOS.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/DULCES TÍPICOS.json View File

@@ -1 +0,0 @@
1
-[{"Nombre":"Daphne L. Labault Romero","Especificaciones":"Joyer\u00eda, Resina","Tel\u00e9fono 1":"(787) 671-3101","E-mail":"petalobydaphne@gmail.com","Municipio":"San Juan PR","id":0},{"Nombre":"El\u00ed J. David Cede\u00f1o","Especificaciones":"Cera, Figuras y simbolos indigenas, Im\u00e1genes Religiosas, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 795-2890","E-mail":"","Municipio":"Toa Baja PR","id":1},{"Nombre":"H\u00e9ctor L. Pe\u00f1a Gonz\u00e1lez","Especificaciones":"Cemento, S\u00edmbolos Patrios","Tel\u00e9fono 1":"","E-mail":"","Municipio":"","id":2},{"Nombre":"Nancy Laureano Figueroa","Especificaciones":"Cascarones  de frutas, Joyer\u00eda","Tel\u00e9fono 1":"(787) 451-9375","E-mail":"nancylaureano@yahoo.com","Municipio":"Bayam\u00f3n PR","id":3},{"Nombre":"Josefina Mart\u00ednez Campos","Especificaciones":"Cascarones de huevos, Figuras, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(939) 216-3500","E-mail":"yamanay3@gmail.com","Municipio":"Arecibo PR","id":4},{"Nombre":"Lizzette M. Santiago Agosto","Especificaciones":"Velas","Tel\u00e9fono 1":"(787) 214-3393","E-mail":"lizziesan622@gmail.com","Municipio":"Yabucoa PR","id":5},{"Nombre":"Luis G. S\u00e1nchez Cruz","Especificaciones":"Pique","Tel\u00e9fono 1":"(787) 412-0205","E-mail":"","Municipio":"Gurabo PR","id":6},{"Nombre":"Mar\u00eda M. Rivera V\u00e1zquez","Especificaciones":"Cabello (Pelo), Figuras","Tel\u00e9fono 1":"(787) 672-9872","E-mail":"","Municipio":"Salinas PR","id":7},{"Nombre":"Ram\u00f3n Buchamp","Especificaciones":"Cemento","Tel\u00e9fono 1":"(787) 831-1434","E-mail":"","Municipio":"Mayag\u00fcez PR","id":8},{"Nombre":"Ram\u00f3n F. Lugo Silva","Especificaciones":"","Tel\u00e9fono 1":"(787) 368-0582","E-mail":"mochoreciklarte@gmail.com","Municipio":"Ponce PR","id":9},{"Nombre":"Silvia Solorzano Cede\u00f1o","Especificaciones":"Resina","Tel\u00e9fono 1":"(787) 636-0073","E-mail":"","Municipio":"","id":10}]

+ 0
- 1
platforms/android/app/src/main/assets/www/Server/FIBRAS .json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/HIGÜERA.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/INSTRUMENTOS TÍPICOS.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/JUGUETES TRADICIONALES.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/LABORES EN AGUJA.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/MADERA.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/METAL.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/PAPEL CARTÓN.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/PIEDRAS.json View File

@@ -1 +0,0 @@
1
-[{"Nombre":"Andr\u00e9s Mel\u00e9ndez Cosme","Especificaciones":"Cuadros, Figuras, Placas, S\u00edmbolos","Tel\u00e9fono 1":"(787) 373-9225","E-mail":"talladepiedrasarte@gmail.com","Municipio":"Comer\u00edo PR","id":0},{"Nombre":"\u00c1ngel R. Medina Mart\u00ednez","Especificaciones":"Figuras y simbolos indigenas, Instrumentos de percusi\u00f3n, Maracas","Tel\u00e9fono 1":"(787) 635-6354","E-mail":"","Municipio":"Toa Alta PR","id":1},{"Nombre":"Carlos A. Ramos Camilo","Especificaciones":"","Tel\u00e9fono 1":"(787) 531-7358","E-mail":"","Municipio":"Trujillo Alto PR","id":2},{"Nombre":"Edgar Gand\u00eda Torres","Especificaciones":"Figuras y simbolos indigenas, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 315-0123","E-mail":"","Municipio":"San Juan PR","id":3},{"Nombre":"Eduardo G\u00f3mez","Especificaciones":"Dise\u00f1os, Figuras y simbolos indigenas, Quijotes, Reyes, S\u00edmbolos Patrios","Tel\u00e9fono 1":"","E-mail":"","Municipio":"Barranquitas PR","id":4},{"Nombre":"Evelyn M. Rivera Cancel","Especificaciones":"Figuras","Tel\u00e9fono 1":"(787) 884-4851","E-mail":"evelyn.rivera.cancel@gmail.com","Municipio":"Mayag\u00fcez PR","id":5},{"Nombre":"Hailie Rivera Ortiz","Especificaciones":"Figuras y simbolos indigenas, Muebles, S\u00edmbolos Patrios","Tel\u00e9fono 1":"","E-mail":"","Municipio":"Trujillo Alto PR","id":6},{"Nombre":"H\u00e9ctor de Le\u00f3n","Especificaciones":"Reyes, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 232-2314","E-mail":"eneidariosaponte@gmail.com","Municipio":"Florida PR","id":7},{"Nombre":"Jeannette Rosa Carrero","Especificaciones":"Figuras, Flores, Nacimientos, Reyes","Tel\u00e9fono 1":"(787) 299-7667","E-mail":"fifososa@gmail.com","Municipio":"Bayam\u00f3n PR","id":8},{"Nombre":"Jorge L. Col\u00f3n Reyes","Especificaciones":"Figuras y simbolos indigenas, Im\u00e1genes Religiosas, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 506-3388","E-mail":"","Municipio":"Barceloneta PR","id":9},{"Nombre":"Jos\u00e9 A. Rodr\u00edguez D\u00e1vila","Especificaciones":"Escultura, Figuras","Tel\u00e9fono 1":"(787) 502-7987","E-mail":"esculturasenpiedra@gmail.com","Municipio":"Salinas PR","id":10},{"Nombre":"Luoisa Torres Hern\u00e1ndez","Especificaciones":"","Tel\u00e9fono 1":"(787) 795-9147","E-mail":"","Municipio":"Toa Baja PR","id":11},{"Nombre":"Mar\u00eda S. del  Valle","Especificaciones":"","Tel\u00e9fono 1":"(787) 747-4229","E-mail":"","Municipio":"Caguas PR","id":12},{"Nombre":"Maritza de Jes\u00fas Vel\u00e1zquez","Especificaciones":"","Tel\u00e9fono 1":"(787) 815-1241","E-mail":"","Municipio":"","id":13},{"Nombre":"Teresa P\u00e9rez V\u00e1zquez","Especificaciones":"Cuadros, Figuras y simbolos indigenas, Im\u00e1genes Religiosas, Llaveros, Paisajes, Placas, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 951-0025","E-mail":"terearte518@gmail.com","Municipio":"Cabo Rojo PR","id":14},{"Nombre":"Marysel Cab\u00e1n Marrero","Especificaciones":"Cuadros","Tel\u00e9fono 1":"(787) 425-3938","E-mail":"marycm626@gmail.com","Municipio":"Cidra PR","id":15}]

+ 0
- 1
platforms/android/app/src/main/assets/www/Server/PORCELANICRÓN.json View File

@@ -1 +0,0 @@
1
-[{"Nombre":"Ada L. Robles Rivera","T\u00e9cnica":"Fabricantes, Manual","Especificaciones":"Figuras, Mu\u00f1ecas de Trapo","Tel\u00e9fono 1":"(787) 854-7446","E-mail":"","Municipio":"Manat\u00ed PR","id":0},{"Nombre":"Betzaida Ramos Rosado","T\u00e9cnica":"Esculpir","Especificaciones":"Figuras","Tel\u00e9fono 1":"(787) 202-5760","E-mail":"tallernuestropueblo@hotmail.com","Municipio":"San Sebast\u00edan PR","id":1},{"Nombre":"Carmen A. Rivera Acevedo","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"","E-mail":"","Municipio":"","id":2},{"Nombre":"Carmen E. Resto Col\u00f3n","T\u00e9cnica":"Esculpir","Especificaciones":"Figuras","Tel\u00e9fono 1":"","E-mail":"","Municipio":"","id":3},{"Nombre":"Carmen M. L\u00f3pez Cruz","T\u00e9cnica":"Manual","Especificaciones":"Figuras","Tel\u00e9fono 1":"(787) 439-4927","E-mail":"","Municipio":"Salinas PR","id":4},{"Nombre":"Casilda Negr\u00f3n Tejera","T\u00e9cnica":"Esculpir","Especificaciones":"Figuras","Tel\u00e9fono 1":"","E-mail":"","Municipio":"","id":5},{"Nombre":"Edna S. Malabet R\u00edos","T\u00e9cnica":"Dise\u00f1ar, Ensamblar, Manual","Especificaciones":"Joyer\u00eda","Tel\u00e9fono 1":"(787) 593-6932","E-mail":"sally227@gmail.com","Municipio":"Carolina PR","id":6},{"Nombre":"Elsa D. Berr\u00edos Padilla","T\u00e9cnica":"Al horno, Manual","Especificaciones":"Figuras, Im\u00e1genes Religiosas, Paisajes, Quijotes","Tel\u00e9fono 1":"(787) 857-9328","E-mail":"","Municipio":"Barranquitas PR","id":7},{"Nombre":"Evelyn R. Cintr\u00f3n V\u00e9lez","T\u00e9cnica":"Dise\u00f1ar, Ensamblar, Manual","Especificaciones":"Alambre, Joyer\u00eda","Tel\u00e9fono 1":"(787) 439-1547","E-mail":"","Municipio":"Guayanilla PR","id":8},{"Nombre":"Jonathan U. Ortiz Aponte","T\u00e9cnica":"Manual, Pintura","Especificaciones":"Aves","Tel\u00e9fono 1":"(787) 529-6202","E-mail":"","Municipio":"Carolina PR","id":9},{"Nombre":"Luisa Y. Candelaria Estrella","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 399-9001","E-mail":"iliremaria17@gmail.com","Municipio":"Carolina PR","id":10},{"Nombre":"Magdalena Gonz\u00e1lez Avil\u00e9s","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 231-6597","E-mail":"mgonzalezavilesriv@hotmail.com","Municipio":"Aguadilla PR","id":11},{"Nombre":"Norma Agr\u00f3n Santiago","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 877-6081","E-mail":"normasclay@yahoo.com","Municipio":"Moca PR","id":12},{"Nombre":"Virgen M. Rodr\u00edguez Rivera","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(939) 717-1028","E-mail":"","Municipio":"Yauco PR","id":13},{"Nombre":"Wilfredo Cab\u00e1n Vega","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 818-8662","E-mail":"laartesana01@yahoo.com","Municipio":"Moca PR","id":14},{"Nombre":"Zorimar D. Rivera Nieves","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 404-0543","E-mail":"zorimardenisse@gmail.com","Municipio":"San Juan PR","id":15},{"Nombre":"Rafael Cruz Collazo","T\u00e9cnica":"Dise\u00f1ar","Especificaciones":"Joyer\u00eda","Tel\u00e9fono 1":"(787) 315-3491","E-mail":"artesaniasguasabara3618@gmail.com","Municipio":"Utuado PR","id":16},{"Nombre":"Lydia Santiago Toledo","T\u00e9cnica":"Esculpir","Especificaciones":"Figuras","Tel\u00e9fono 1":"(787) 599-7653","E-mail":"lydia655@gmail.com","Municipio":"Lares PR","id":17},{"Nombre":"Ciryanis V\u00e1zquez Lezcano","T\u00e9cnica":"Dise\u00f1ar","Especificaciones":"Joyer\u00eda","Tel\u00e9fono 1":"(787) 452-4778","E-mail":"ciry.vazquez@gmail.com","Municipio":"Arecibo PR","id":18}]

+ 0
- 1
platforms/android/app/src/main/assets/www/Server/SEMILLAS.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/Server/TABACOS.json View File

@@ -1 +0,0 @@
1
-[{"Nombre":"\u00c1ngel Otero Cotto","Especificaciones":"Cigarros, Mascadura","Tel\u00e9fono 1":"(939) 350-4999","E-mail":"papiroscigars@gmail.com","Municipio":"Cidra PR","id":0},{"Nombre":"\u00c1ngel Otero Vicente","Especificaciones":"Cigarros, Mascadura","Tel\u00e9fono 1":"(787) 595-1431","E-mail":"papiroscigars@gmail.com","Municipio":"Cidra PR","id":1},{"Nombre":"Angelo Vel\u00e1zquez Santiago","Especificaciones":"Cigarros","Tel\u00e9fono 1":"(787) 396-0941","E-mail":"velazquezcigars@hotmail.com","Municipio":"Aguas Buenas PR","id":2},{"Nombre":"Carlos M. Del Valle Mel\u00e9ndez","Especificaciones":"Cigarros","Tel\u00e9fono 1":"(787) 380-9122","E-mail":"cdelvalle1229@yahoo.com","Municipio":"Gu\u00e1nica PR","id":3},{"Nombre":"Jos\u00e9 A. V\u00e9lez Burgos","Especificaciones":"Cigarros, Muebles, Restaurador","Tel\u00e9fono 1":"(787) 648-2858","E-mail":"velez.jose751@gmail.com","Municipio":"Yauco PR","id":4},{"Nombre":"Patricio A. Pe\u00f1a","Especificaciones":"","Tel\u00e9fono 1":"(787) 785-8619","E-mail":"","Municipio":"Bayam\u00f3n PR","id":5}]

+ 0
- 1
platforms/android/app/src/main/assets/www/Server/TEXTILES.json
File diff suppressed because it is too large
View File


+ 0
- 76
platforms/android/app/src/main/assets/www/Server/driveToJson.php View File

@@ -1,76 +0,0 @@
1
-<?php
2
-header('Content-type: application/json');
3
- 
4
-
5
- 
6
-// Function to convert CSV into associative array
7
-function csvToArray($file, $delimiter) { 
8
-  if (($handle = fopen($file, 'r')) !== FALSE) { 
9
-    $i = 0; 
10
-    while (($lineArray = fgetcsv($handle, 4000, $delimiter, '"')) !== FALSE) { 
11
-      for ($j = 0; $j < count($lineArray); $j++) { 
12
-        $arr[$i][$j] = $lineArray[$j]; 
13
-      } 
14
-      $i++; 
15
-    } 
16
-    fclose($handle); 
17
-  } 
18
-  return $arr; 
19
-} 
20
- 
21
-function formatArray ($feed) {
22
-
23
-  $keys = array();
24
-  $newArray = array();
25
-  $data = csvToArray($feed, ',');
26
- 
27
-  $count = count($data) - 1;
28
- 
29
-  $labels = array_shift($data);  
30
- 
31
-  foreach ($labels as $label) {
32
-    $keys[] = $label;
33
-  }
34
- 
35
-  $keys[] = 'id';
36
- 
37
-  for ($i = 0; $i < $count; $i++) {
38
-    $data[$i][] = $i;
39
-  }
40
- 
41
-  for ($j = 0; $j < $count; $j++) {
42
-    $d = array_combine($keys, $data[$j]);
43
-    $newArray[$j] = $d;
44
-  }
45
-
46
-  return $newArray;
47
-
48
-}
49
- 
50
-$feed = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vQUspPunAmkZrtfhMgMvGYGTK_4ONsCnSoe6OcTFc-4ILRHTatdPIwgRx1eRM1qFTkYFMrvcx8OI4cv/pub?output=csv';
51
-
52
-$data = formatArray($feed);
53
-
54
-$info = json_encode($data);
55
-
56
-$infoAsJson = json_decode($info);
57
-
58
-
59
-
60
-$handle = fopen("renglones.json", 'w');
61
-fwrite($handle, $info);
62
-
63
-
64
-
65
-for ($i = 0; $i < count($infoAsJson); $i++) {
66
-  $renglon = formatArray($infoAsJson[$i]->Link);
67
-  $renglonInfo = json_encode($renglon);
68
-  $renglonAsJson = json_decode($renglonInfo);
69
-  
70
-  $my_file = $infoAsJson[$i]->Renglones . ".json";
71
-  $handle = fopen($my_file, 'w') or die ('Cannot open file');
72
-  fwrite($handle, $renglonInfo);
73
-
74
-}
75
-
76
-?>

+ 0
- 1
platforms/android/app/src/main/assets/www/Server/renglones.json
File diff suppressed because it is too large
View File


+ 21
- 0
platforms/android/app/src/main/assets/www/index.html View File

@@ -51,6 +51,8 @@
51 51
     </head>
52 52
     <body>
53 53
 
54
+
55
+
54 56
       <script type="text/javascript" src="js/saveLocal.js"></script>
55 57
       
56 58
         <ons-navigator swipeable animation="slide" id="myNavigator">
@@ -63,6 +65,7 @@
63 65
                 <ons-tab page="renglones.html" label="Artesanias"active></ons-tab>
64 66
                 <ons-tab page="ferias.html" label="Ferias"></ons-tab>
65 67
                 <ons-tab page="instituto.html" label="Instituto"></ons-tab>
68
+                <ons-tab page ="search.html" label="Buscar"> </ons-tab>
66 69
             </ons-tabbar>
67 70
         </ons-page>
68 71
         </ons-navigator>
@@ -267,6 +270,21 @@
267 270
 
268 271
 
269 272
 
273
+    <template id="search.html">
274
+      <ons-page id="Buscar">
275
+
276
+        <p style="text-align: center; margin-top: 10px;">
277
+          <ons-search-input placeholder="Search"
278
+            onchange="
279
+
280
+            sayHi();
281
+            "
282
+        ></ons-search-input>
283
+  </p>
284
+
285
+
286
+      </ons-page>
287
+    </template>
270 288
 
271 289
 
272 290
 
@@ -290,6 +308,8 @@
290 308
                 <p style="text-align: center;">
291 309
           Pagina Principal
292 310
                 </p>
311
+
312
+              
293 313
             </ons-page>
294 314
         </template>
295 315
 
@@ -298,6 +318,7 @@
298 318
         <template id="renglones.html">
299 319
             <ons-page id="renglones">
300 320
 
321
+
301 322
             <!--div class="search-bar">
302 323
                  <p style="text-align: center; margin-top: 10px;">
303 324
                     <ons-search-input placeholder="Search" onchange="ons.notification.alert('Searched for: ' + this.value)"

+ 19
- 17
platforms/android/app/src/main/assets/www/js/renglones.js View File

@@ -1,21 +1,23 @@
1
-var request = new XMLHttpRequest()
2 1
 
3
-request.open('GET', 'json/renglones.json', true)
2
+                
3
+                    var list = document.getElementById("list");
4 4
 
5
-request.onload = function() {
6
-  // begin accessing JSON data here
7
-  var info = JSON.parse(this.response)
8
-        
9
-  var list = document.getElementById("list");
5
+                    var renglones = JSON.parse(window.localStorage.getItem("RENGLONES"));
10 6
     
11
-    for (var i = 0; i < info.length; i++) {
7
+                    for (var i = 0; i < renglones.length; i++) {
12 8
 
13
-            var item = ons.createElement(`<ons-card onclick="fn.pushPage({'id':'artesanias.html','title':'${info[i].Renglones}','esp': '${info[i].Especificaciones}'})">
14
-                        <div class="title">${info[i].Renglones}</div>
15
-                        <div class="content"><img class="list-item__thumbnail" src="img/${info[i].Renglones}.png"></div>
16
-                    </ons-card>`);
17
-            list.appendChild(item);
18
-            }
19
-        }
20
-    
21
-request.send()  
9
+                        var item = ons.createElement(`<ons-list-item expandable>
10
+                        <div class="center">${renglones[i].Renglones}</div>
11
+                        <div class="right"><img class="list-item__thumbnail" src="img/${renglones[i].Renglones}.png"></div>
12
+                        <div class="expandable-content">
13
+                        <ons-list>
14
+                        <ons-list-item onclick="fn.pushPage({'id':'artesanos.html','title':'${renglones[i].Renglones}','esp': '${renglones[i].Especificaciones}'})">Artesanos</ons-list-item>
15
+                        <ons-list-item onclick="fn.pushPage({'id':'artesanias.html','title':'${renglones[i].Renglones}','esp': '${renglones[i].Especificaciones}'})">Especificaciones</ons-list-item>
16
+                        </ons-list></div>
17
+                    </ons-list-item>`);
18
+                        list.appendChild(item);
19
+                    }
20
+                    
21
+                
22
+                    
23
+              

+ 0
- 1
platforms/android/app/src/main/assets/www/json/MADERA.json
File diff suppressed because it is too large
View File


+ 0
- 1
platforms/android/app/src/main/assets/www/json/renglones.json
File diff suppressed because it is too large
View File


+ 39
- 1
platforms/browser/www/index.html View File

@@ -63,6 +63,7 @@
63 63
                 <ons-tab page="renglones.html" label="Artesanias"active></ons-tab>
64 64
                 <ons-tab page="ferias.html" label="Ferias"></ons-tab>
65 65
                 <ons-tab page="instituto.html" label="Instituto"></ons-tab>
66
+                <ons-tab page ="search.html" label="Buscar"> </ons-tab>
66 67
             </ons-tabbar>
67 68
         </ons-page>
68 69
         </ons-navigator>
@@ -265,9 +266,24 @@
265 266
     </template>
266 267
 
267 268
 
269
+    
270
+
271
+    <template id="search.html">
272
+      <ons-page id="Buscar">
273
+
274
+        <p style="text-align: center; margin-top: 10px;">
275
+          <ons-search-input placeholder="Search"
276
+            onchange="
268 277
 
278
+            sayHi();
279
+            "
280
+        ></ons-search-input>
281
+  </p>
269 282
 
270 283
 
284
+      </ons-page>
285
+    </template>
286
+
271 287
 
272 288
 
273 289
 
@@ -290,6 +306,8 @@
290 306
                 <p style="text-align: center;">
291 307
           Pagina Principal
292 308
                 </p>
309
+
310
+              
293 311
             </ons-page>
294 312
         </template>
295 313
 
@@ -306,7 +324,27 @@
306 324
             </div-->
307 325
 
308 326
             <ons-card id="list">
309
-              <script type="text/javascript" src="js/renglones.js"></script>
327
+              <script>
328
+                
329
+                    var list = document.getElementById("list");
330
+    
331
+                    for (var i = 0; i < renglones.length; i++) {
332
+
333
+                        var item = ons.createElement(`<ons-list-item expandable>
334
+                        <div class="center">${renglones[i].Renglones}</div>
335
+                        <div class="right"><img class="list-item__thumbnail" src="img/${renglones[i].Renglones}.png"></div>
336
+                        <div class="expandable-content">
337
+                        <ons-list>
338
+                        <ons-list-item onclick="fn.pushPage({'id':'artesanos.html','title':'${renglones[i].Renglones}','esp': '${renglones[i].Especificaciones}'})">Artesanos</ons-list-item>
339
+                        <ons-list-item onclick="fn.pushPage({'id':'artesanias.html','title':'${renglones[i].Renglones}','esp': '${renglones[i].Especificaciones}'})">Especificaciones</ons-list-item>
340
+                        </ons-list></div>
341
+                    </ons-list-item>`);
342
+                        list.appendChild(item);
343
+                    }
344
+                    
345
+                
346
+                    
347
+                </script>
310 348
             </ons-card>
311 349
 
312 350
           <style>

+ 19
- 17
platforms/browser/www/js/renglones.js View File

@@ -1,21 +1,23 @@
1
-var request = new XMLHttpRequest()
2 1
 
3
-request.open('GET', 'json/renglones.json', true)
2
+                
3
+                    var list = document.getElementById("list");
4 4
 
5
-request.onload = function() {
6
-  // begin accessing JSON data here
7
-  var info = JSON.parse(this.response)
8
-        
9
-  var list = document.getElementById("list");
5
+                    var renglones = window.localStorage.getItem("RENGLONES");
10 6
     
11
-    for (var i = 0; i < info.length; i++) {
7
+                    for (var i = 0; i < renglones.length; i++) {
12 8
 
13
-            var item = ons.createElement(`<ons-card onclick="fn.pushPage({'id':'artesanias.html','title':'${info[i].Renglones}','esp': '${info[i].Especificaciones}'})">
14
-                        <div class="title">${info[i].Renglones}</div>
15
-                        <div class="content"><img class="list-item__thumbnail" src="img/${info[i].Renglones}.png"></div>
16
-                    </ons-card>`);
17
-            list.appendChild(item);
18
-            }
19
-        }
20
-    
21
-request.send()  
9
+                        var item = ons.createElement(`<ons-list-item expandable>
10
+                        <div class="center">${renglones[i].Renglones}</div>
11
+                        <div class="right"><img class="list-item__thumbnail" src="img/${renglones[i].Renglones}.png"></div>
12
+                        <div class="expandable-content">
13
+                        <ons-list>
14
+                        <ons-list-item onclick="fn.pushPage({'id':'artesanos.html','title':'${renglones[i].Renglones}','esp': '${renglones[i].Especificaciones}'})">Artesanos</ons-list-item>
15
+                        <ons-list-item onclick="fn.pushPage({'id':'artesanias.html','title':'${renglones[i].Renglones}','esp': '${renglones[i].Especificaciones}'})">Especificaciones</ons-list-item>
16
+                        </ons-list></div>
17
+                    </ons-list-item>`);
18
+                        list.appendChild(item);
19
+                    }
20
+                    
21
+                
22
+                    
23
+              

+ 0
- 1
www/Server/AROMATIZACIÓN.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/BAMBÚ.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/BARRO.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/CARETAS.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/CRISTAL.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/CUERO.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/DESECHOS MARINOS.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/DULCES TÍPICOS.json View File

@@ -1 +0,0 @@
1
-[{"Nombre":"Daphne L. Labault Romero","Especificaciones":"Joyer\u00eda, Resina","Tel\u00e9fono 1":"(787) 671-3101","E-mail":"petalobydaphne@gmail.com","Municipio":"San Juan PR","id":0},{"Nombre":"El\u00ed J. David Cede\u00f1o","Especificaciones":"Cera, Figuras y simbolos indigenas, Im\u00e1genes Religiosas, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 795-2890","E-mail":"","Municipio":"Toa Baja PR","id":1},{"Nombre":"H\u00e9ctor L. Pe\u00f1a Gonz\u00e1lez","Especificaciones":"Cemento, S\u00edmbolos Patrios","Tel\u00e9fono 1":"","E-mail":"","Municipio":"","id":2},{"Nombre":"Nancy Laureano Figueroa","Especificaciones":"Cascarones  de frutas, Joyer\u00eda","Tel\u00e9fono 1":"(787) 451-9375","E-mail":"nancylaureano@yahoo.com","Municipio":"Bayam\u00f3n PR","id":3},{"Nombre":"Josefina Mart\u00ednez Campos","Especificaciones":"Cascarones de huevos, Figuras, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(939) 216-3500","E-mail":"yamanay3@gmail.com","Municipio":"Arecibo PR","id":4},{"Nombre":"Lizzette M. Santiago Agosto","Especificaciones":"Velas","Tel\u00e9fono 1":"(787) 214-3393","E-mail":"lizziesan622@gmail.com","Municipio":"Yabucoa PR","id":5},{"Nombre":"Luis G. S\u00e1nchez Cruz","Especificaciones":"Pique","Tel\u00e9fono 1":"(787) 412-0205","E-mail":"","Municipio":"Gurabo PR","id":6},{"Nombre":"Mar\u00eda M. Rivera V\u00e1zquez","Especificaciones":"Cabello (Pelo), Figuras","Tel\u00e9fono 1":"(787) 672-9872","E-mail":"","Municipio":"Salinas PR","id":7},{"Nombre":"Ram\u00f3n Buchamp","Especificaciones":"Cemento","Tel\u00e9fono 1":"(787) 831-1434","E-mail":"","Municipio":"Mayag\u00fcez PR","id":8},{"Nombre":"Ram\u00f3n F. Lugo Silva","Especificaciones":"","Tel\u00e9fono 1":"(787) 368-0582","E-mail":"mochoreciklarte@gmail.com","Municipio":"Ponce PR","id":9},{"Nombre":"Silvia Solorzano Cede\u00f1o","Especificaciones":"Resina","Tel\u00e9fono 1":"(787) 636-0073","E-mail":"","Municipio":"","id":10}]

+ 0
- 1
www/Server/FIBRAS .json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/HIGÜERA.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/INSTRUMENTOS TÍPICOS.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/JUGUETES TRADICIONALES.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/LABORES EN AGUJA.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/MADERA.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/METAL.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/PAPEL CARTÓN.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/PIEDRAS.json View File

@@ -1 +0,0 @@
1
-[{"Nombre":"Andr\u00e9s Mel\u00e9ndez Cosme","Especificaciones":"Cuadros, Figuras, Placas, S\u00edmbolos","Tel\u00e9fono 1":"(787) 373-9225","E-mail":"talladepiedrasarte@gmail.com","Municipio":"Comer\u00edo PR","id":0},{"Nombre":"\u00c1ngel R. Medina Mart\u00ednez","Especificaciones":"Figuras y simbolos indigenas, Instrumentos de percusi\u00f3n, Maracas","Tel\u00e9fono 1":"(787) 635-6354","E-mail":"","Municipio":"Toa Alta PR","id":1},{"Nombre":"Carlos A. Ramos Camilo","Especificaciones":"","Tel\u00e9fono 1":"(787) 531-7358","E-mail":"","Municipio":"Trujillo Alto PR","id":2},{"Nombre":"Edgar Gand\u00eda Torres","Especificaciones":"Figuras y simbolos indigenas, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 315-0123","E-mail":"","Municipio":"San Juan PR","id":3},{"Nombre":"Eduardo G\u00f3mez","Especificaciones":"Dise\u00f1os, Figuras y simbolos indigenas, Quijotes, Reyes, S\u00edmbolos Patrios","Tel\u00e9fono 1":"","E-mail":"","Municipio":"Barranquitas PR","id":4},{"Nombre":"Evelyn M. Rivera Cancel","Especificaciones":"Figuras","Tel\u00e9fono 1":"(787) 884-4851","E-mail":"evelyn.rivera.cancel@gmail.com","Municipio":"Mayag\u00fcez PR","id":5},{"Nombre":"Hailie Rivera Ortiz","Especificaciones":"Figuras y simbolos indigenas, Muebles, S\u00edmbolos Patrios","Tel\u00e9fono 1":"","E-mail":"","Municipio":"Trujillo Alto PR","id":6},{"Nombre":"H\u00e9ctor de Le\u00f3n","Especificaciones":"Reyes, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 232-2314","E-mail":"eneidariosaponte@gmail.com","Municipio":"Florida PR","id":7},{"Nombre":"Jeannette Rosa Carrero","Especificaciones":"Figuras, Flores, Nacimientos, Reyes","Tel\u00e9fono 1":"(787) 299-7667","E-mail":"fifososa@gmail.com","Municipio":"Bayam\u00f3n PR","id":8},{"Nombre":"Jorge L. Col\u00f3n Reyes","Especificaciones":"Figuras y simbolos indigenas, Im\u00e1genes Religiosas, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 506-3388","E-mail":"","Municipio":"Barceloneta PR","id":9},{"Nombre":"Jos\u00e9 A. Rodr\u00edguez D\u00e1vila","Especificaciones":"Escultura, Figuras","Tel\u00e9fono 1":"(787) 502-7987","E-mail":"esculturasenpiedra@gmail.com","Municipio":"Salinas PR","id":10},{"Nombre":"Luoisa Torres Hern\u00e1ndez","Especificaciones":"","Tel\u00e9fono 1":"(787) 795-9147","E-mail":"","Municipio":"Toa Baja PR","id":11},{"Nombre":"Mar\u00eda S. del  Valle","Especificaciones":"","Tel\u00e9fono 1":"(787) 747-4229","E-mail":"","Municipio":"Caguas PR","id":12},{"Nombre":"Maritza de Jes\u00fas Vel\u00e1zquez","Especificaciones":"","Tel\u00e9fono 1":"(787) 815-1241","E-mail":"","Municipio":"","id":13},{"Nombre":"Teresa P\u00e9rez V\u00e1zquez","Especificaciones":"Cuadros, Figuras y simbolos indigenas, Im\u00e1genes Religiosas, Llaveros, Paisajes, Placas, S\u00edmbolos Patrios","Tel\u00e9fono 1":"(787) 951-0025","E-mail":"terearte518@gmail.com","Municipio":"Cabo Rojo PR","id":14},{"Nombre":"Marysel Cab\u00e1n Marrero","Especificaciones":"Cuadros","Tel\u00e9fono 1":"(787) 425-3938","E-mail":"marycm626@gmail.com","Municipio":"Cidra PR","id":15}]

+ 0
- 1
www/Server/PORCELANICRÓN.json View File

@@ -1 +0,0 @@
1
-[{"Nombre":"Ada L. Robles Rivera","T\u00e9cnica":"Fabricantes, Manual","Especificaciones":"Figuras, Mu\u00f1ecas de Trapo","Tel\u00e9fono 1":"(787) 854-7446","E-mail":"","Municipio":"Manat\u00ed PR","id":0},{"Nombre":"Betzaida Ramos Rosado","T\u00e9cnica":"Esculpir","Especificaciones":"Figuras","Tel\u00e9fono 1":"(787) 202-5760","E-mail":"tallernuestropueblo@hotmail.com","Municipio":"San Sebast\u00edan PR","id":1},{"Nombre":"Carmen A. Rivera Acevedo","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"","E-mail":"","Municipio":"","id":2},{"Nombre":"Carmen E. Resto Col\u00f3n","T\u00e9cnica":"Esculpir","Especificaciones":"Figuras","Tel\u00e9fono 1":"","E-mail":"","Municipio":"","id":3},{"Nombre":"Carmen M. L\u00f3pez Cruz","T\u00e9cnica":"Manual","Especificaciones":"Figuras","Tel\u00e9fono 1":"(787) 439-4927","E-mail":"","Municipio":"Salinas PR","id":4},{"Nombre":"Casilda Negr\u00f3n Tejera","T\u00e9cnica":"Esculpir","Especificaciones":"Figuras","Tel\u00e9fono 1":"","E-mail":"","Municipio":"","id":5},{"Nombre":"Edna S. Malabet R\u00edos","T\u00e9cnica":"Dise\u00f1ar, Ensamblar, Manual","Especificaciones":"Joyer\u00eda","Tel\u00e9fono 1":"(787) 593-6932","E-mail":"sally227@gmail.com","Municipio":"Carolina PR","id":6},{"Nombre":"Elsa D. Berr\u00edos Padilla","T\u00e9cnica":"Al horno, Manual","Especificaciones":"Figuras, Im\u00e1genes Religiosas, Paisajes, Quijotes","Tel\u00e9fono 1":"(787) 857-9328","E-mail":"","Municipio":"Barranquitas PR","id":7},{"Nombre":"Evelyn R. Cintr\u00f3n V\u00e9lez","T\u00e9cnica":"Dise\u00f1ar, Ensamblar, Manual","Especificaciones":"Alambre, Joyer\u00eda","Tel\u00e9fono 1":"(787) 439-1547","E-mail":"","Municipio":"Guayanilla PR","id":8},{"Nombre":"Jonathan U. Ortiz Aponte","T\u00e9cnica":"Manual, Pintura","Especificaciones":"Aves","Tel\u00e9fono 1":"(787) 529-6202","E-mail":"","Municipio":"Carolina PR","id":9},{"Nombre":"Luisa Y. Candelaria Estrella","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 399-9001","E-mail":"iliremaria17@gmail.com","Municipio":"Carolina PR","id":10},{"Nombre":"Magdalena Gonz\u00e1lez Avil\u00e9s","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 231-6597","E-mail":"mgonzalezavilesriv@hotmail.com","Municipio":"Aguadilla PR","id":11},{"Nombre":"Norma Agr\u00f3n Santiago","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 877-6081","E-mail":"normasclay@yahoo.com","Municipio":"Moca PR","id":12},{"Nombre":"Virgen M. Rodr\u00edguez Rivera","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(939) 717-1028","E-mail":"","Municipio":"Yauco PR","id":13},{"Nombre":"Wilfredo Cab\u00e1n Vega","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 818-8662","E-mail":"laartesana01@yahoo.com","Municipio":"Moca PR","id":14},{"Nombre":"Zorimar D. Rivera Nieves","T\u00e9cnica":"","Especificaciones":"","Tel\u00e9fono 1":"(787) 404-0543","E-mail":"zorimardenisse@gmail.com","Municipio":"San Juan PR","id":15},{"Nombre":"Rafael Cruz Collazo","T\u00e9cnica":"Dise\u00f1ar","Especificaciones":"Joyer\u00eda","Tel\u00e9fono 1":"(787) 315-3491","E-mail":"artesaniasguasabara3618@gmail.com","Municipio":"Utuado PR","id":16},{"Nombre":"Lydia Santiago Toledo","T\u00e9cnica":"Esculpir","Especificaciones":"Figuras","Tel\u00e9fono 1":"(787) 599-7653","E-mail":"lydia655@gmail.com","Municipio":"Lares PR","id":17},{"Nombre":"Ciryanis V\u00e1zquez Lezcano","T\u00e9cnica":"Dise\u00f1ar","Especificaciones":"Joyer\u00eda","Tel\u00e9fono 1":"(787) 452-4778","E-mail":"ciry.vazquez@gmail.com","Municipio":"Arecibo PR","id":18}]

+ 0
- 1
www/Server/SEMILLAS.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/Server/TABACOS.json View File

@@ -1 +0,0 @@
1
-[{"Nombre":"\u00c1ngel Otero Cotto","Especificaciones":"Cigarros, Mascadura","Tel\u00e9fono 1":"(939) 350-4999","E-mail":"papiroscigars@gmail.com","Municipio":"Cidra PR","id":0},{"Nombre":"\u00c1ngel Otero Vicente","Especificaciones":"Cigarros, Mascadura","Tel\u00e9fono 1":"(787) 595-1431","E-mail":"papiroscigars@gmail.com","Municipio":"Cidra PR","id":1},{"Nombre":"Angelo Vel\u00e1zquez Santiago","Especificaciones":"Cigarros","Tel\u00e9fono 1":"(787) 396-0941","E-mail":"velazquezcigars@hotmail.com","Municipio":"Aguas Buenas PR","id":2},{"Nombre":"Carlos M. Del Valle Mel\u00e9ndez","Especificaciones":"Cigarros","Tel\u00e9fono 1":"(787) 380-9122","E-mail":"cdelvalle1229@yahoo.com","Municipio":"Gu\u00e1nica PR","id":3},{"Nombre":"Jos\u00e9 A. V\u00e9lez Burgos","Especificaciones":"Cigarros, Muebles, Restaurador","Tel\u00e9fono 1":"(787) 648-2858","E-mail":"velez.jose751@gmail.com","Municipio":"Yauco PR","id":4},{"Nombre":"Patricio A. Pe\u00f1a","Especificaciones":"","Tel\u00e9fono 1":"(787) 785-8619","E-mail":"","Municipio":"Bayam\u00f3n PR","id":5}]

+ 0
- 1
www/Server/TEXTILES.json
File diff suppressed because it is too large
View File


+ 0
- 76
www/Server/driveToJson.php View File

@@ -1,76 +0,0 @@
1
-<?php
2
-header('Content-type: application/json');
3
- 
4
-
5
- 
6
-// Function to convert CSV into associative array
7
-function csvToArray($file, $delimiter) { 
8
-  if (($handle = fopen($file, 'r')) !== FALSE) { 
9
-    $i = 0; 
10
-    while (($lineArray = fgetcsv($handle, 4000, $delimiter, '"')) !== FALSE) { 
11
-      for ($j = 0; $j < count($lineArray); $j++) { 
12
-        $arr[$i][$j] = $lineArray[$j]; 
13
-      } 
14
-      $i++; 
15
-    } 
16
-    fclose($handle); 
17
-  } 
18
-  return $arr; 
19
-} 
20
- 
21
-function formatArray ($feed) {
22
-
23
-  $keys = array();
24
-  $newArray = array();
25
-  $data = csvToArray($feed, ',');
26
- 
27
-  $count = count($data) - 1;
28
- 
29
-  $labels = array_shift($data);  
30
- 
31
-  foreach ($labels as $label) {
32
-    $keys[] = $label;
33
-  }
34
- 
35
-  $keys[] = 'id';
36
- 
37
-  for ($i = 0; $i < $count; $i++) {
38
-    $data[$i][] = $i;
39
-  }
40
- 
41
-  for ($j = 0; $j < $count; $j++) {
42
-    $d = array_combine($keys, $data[$j]);
43
-    $newArray[$j] = $d;
44
-  }
45
-
46
-  return $newArray;
47
-
48
-}
49
- 
50
-$feed = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vQUspPunAmkZrtfhMgMvGYGTK_4ONsCnSoe6OcTFc-4ILRHTatdPIwgRx1eRM1qFTkYFMrvcx8OI4cv/pub?output=csv';
51
-
52
-$data = formatArray($feed);
53
-
54
-$info = json_encode($data);
55
-
56
-$infoAsJson = json_decode($info);
57
-
58
-
59
-
60
-$handle = fopen("renglones.json", 'w');
61
-fwrite($handle, $info);
62
-
63
-
64
-
65
-for ($i = 0; $i < count($infoAsJson); $i++) {
66
-  $renglon = formatArray($infoAsJson[$i]->Link);
67
-  $renglonInfo = json_encode($renglon);
68
-  $renglonAsJson = json_decode($renglonInfo);
69
-  
70
-  $my_file = $infoAsJson[$i]->Renglones . ".json";
71
-  $handle = fopen($my_file, 'w') or die ('Cannot open file');
72
-  fwrite($handle, $renglonInfo);
73
-
74
-}
75
-
76
-?>

+ 0
- 1
www/Server/renglones.json
File diff suppressed because it is too large
View File


+ 21
- 0
www/index.html View File

@@ -51,6 +51,8 @@
51 51
     </head>
52 52
     <body>
53 53
 
54
+
55
+
54 56
       <script type="text/javascript" src="js/saveLocal.js"></script>
55 57
       
56 58
         <ons-navigator swipeable animation="slide" id="myNavigator">
@@ -63,6 +65,7 @@
63 65
                 <ons-tab page="renglones.html" label="Artesanias"active></ons-tab>
64 66
                 <ons-tab page="ferias.html" label="Ferias"></ons-tab>
65 67
                 <ons-tab page="instituto.html" label="Instituto"></ons-tab>
68
+                <ons-tab page ="search.html" label="Buscar"> </ons-tab>
66 69
             </ons-tabbar>
67 70
         </ons-page>
68 71
         </ons-navigator>
@@ -267,6 +270,21 @@
267 270
 
268 271
 
269 272
 
273
+    <template id="search.html">
274
+      <ons-page id="Buscar">
275
+
276
+        <p style="text-align: center; margin-top: 10px;">
277
+          <ons-search-input placeholder="Search"
278
+            onchange="
279
+
280
+            sayHi();
281
+            "
282
+        ></ons-search-input>
283
+  </p>
284
+
285
+
286
+      </ons-page>
287
+    </template>
270 288
 
271 289
 
272 290
 
@@ -290,6 +308,8 @@
290 308
                 <p style="text-align: center;">
291 309
           Pagina Principal
292 310
                 </p>
311
+
312
+              
293 313
             </ons-page>
294 314
         </template>
295 315
 
@@ -298,6 +318,7 @@
298 318
         <template id="renglones.html">
299 319
             <ons-page id="renglones">
300 320
 
321
+
301 322
             <!--div class="search-bar">
302 323
                  <p style="text-align: center; margin-top: 10px;">
303 324
                     <ons-search-input placeholder="Search" onchange="ons.notification.alert('Searched for: ' + this.value)"

+ 19
- 17
www/js/renglones.js View File

@@ -1,21 +1,23 @@
1
-var request = new XMLHttpRequest()
2 1
 
3
-request.open('GET', 'json/renglones.json', true)
2
+                
3
+                    var list = document.getElementById("list");
4 4
 
5
-request.onload = function() {
6
-  // begin accessing JSON data here
7
-  var info = JSON.parse(this.response)
8
-        
9
-  var list = document.getElementById("list");
5
+                    var renglones = JSON.parse(window.localStorage.getItem("RENGLONES"));
10 6
     
11
-    for (var i = 0; i < info.length; i++) {
7
+                    for (var i = 0; i < renglones.length; i++) {
12 8
 
13
-            var item = ons.createElement(`<ons-card onclick="fn.pushPage({'id':'artesanias.html','title':'${info[i].Renglones}','esp': '${info[i].Especificaciones}'})">
14
-                        <div class="title">${info[i].Renglones}</div>
15
-                        <div class="content"><img class="list-item__thumbnail" src="img/${info[i].Renglones}.png"></div>
16
-                    </ons-card>`);
17
-            list.appendChild(item);
18
-            }
19
-        }
20
-    
21
-request.send()  
9
+                        var item = ons.createElement(`<ons-list-item expandable>
10
+                        <div class="center">${renglones[i].Renglones}</div>
11
+                        <div class="right"><img class="list-item__thumbnail" src="img/${renglones[i].Renglones}.png"></div>
12
+                        <div class="expandable-content">
13
+                        <ons-list>
14
+                        <ons-list-item onclick="fn.pushPage({'id':'artesanos.html','title':'${renglones[i].Renglones}','esp': '${renglones[i].Especificaciones}'})">Artesanos</ons-list-item>
15
+                        <ons-list-item onclick="fn.pushPage({'id':'artesanias.html','title':'${renglones[i].Renglones}','esp': '${renglones[i].Especificaciones}'})">Especificaciones</ons-list-item>
16
+                        </ons-list></div>
17
+                    </ons-list-item>`);
18
+                        list.appendChild(item);
19
+                    }
20
+                    
21
+                
22
+                    
23
+              

+ 0
- 1
www/json/MADERA.json
File diff suppressed because it is too large
View File


+ 0
- 1
www/json/renglones.json
File diff suppressed because it is too large
View File