Procházet zdrojové kódy

Upload files to 'www'

Carlos J Corrada Bravo před 2 roky
rodič
revize
7471ece0df
3 změnil soubory, kde provedl 1165 přidání a 0 odebrání
  1. 68
    0
      www/artesano.html
  2. 145
    0
      www/extract_files.js
  3. 952
    0
      www/index.html

+ 68
- 0
www/artesano.html Zobrazit soubor

@@ -0,0 +1,68 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+    <title>Artesanos</title>
5
+
6
+    <script src="jquery/dist/jquery.min.js">
7
+    </script>
8
+
9
+
10
+</head>
11
+<body>
12
+
13
+    <ons-toolbar>
14
+        <div class="left">
15
+            <ons-back-button>Back</ons-back-button>
16
+        </div>
17
+    </ons-toolbar>
18
+
19
+
20
+
21
+    <script type="text/javascript">
22
+    function getUrlVars() {
23
+        var vars = [], hash;
24
+        var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
25
+        for(var i = 0; i < hashes.length; i++)
26
+        {
27
+            hash = hashes[i].split('=');
28
+            vars.push(hash[0]);
29
+            vars[hash[0]] = hash[1];
30
+        }
31
+        return vars;
32
+    }
33
+
34
+    nombre = decodeURIComponent(getUrlVars()["nombre"]);
35
+    renglon = "json/MADERA.json";
36
+    
37
+
38
+    $.getJSON(renglon, function(json) {
39
+        for (i = 0; i < json.length; i++) {
40
+            if (json[i].Nombre == nombre) {
41
+                break;
42
+            }
43
+        }
44
+
45
+        console.log("entre a artesano.html...???");
46
+
47
+        document.write("<h1 align='center'>" + json[i].Nombre + "</h1>");
48
+
49
+        document.write("<h2 align='center'>" + json[i].Municipio + "</h1>");
50
+
51
+        document.write("<h2 align='center'>" + json[i].Especificaciones + "</h2>");
52
+
53
+        document.write("<a class='button' href='tel://" + json[i]["Teléfono 1"] + "'>" + "<h2 align='center'>" + json[i]["Teléfono 1"] + "</h2>" + "</a>");
54
+
55
+        document.write("<a href='mailto:" + json[i]["E-mail"] + "'>" + "<h2 align='center'>" + json[i]["E-mail"] + "</h2>" + "</a>");
56
+
57
+        console.log("SE CORRE");
58
+
59
+    });
60
+
61
+
62
+
63
+
64
+    
65
+    </script>
66
+
67
+</body>
68
+</html>

+ 145
- 0
www/extract_files.js Zobrazit soubor

@@ -0,0 +1,145 @@
1
+
2
+//Declare variables
3
+var path = "Server";
4
+var fs = require('fs');
5
+var files = fs.readdirSync(path);
6
+var filenames = [files.length];
7
+//console.log("*******"+filenames);
8
+//Remove space from strings
9
+for(var i=0; i<files.length; i++)  
10
+	if(/\s/.test(files[i]))
11
+	   filenames[i] = files[i].replace(/\s/g, '');
12
+    else
13
+	   filenames[i] = files[i];
14
+
15
+//Extract json files to local folder
16
+for(var i=0; i<files.length; i++)   {
17
+
18
+	//Print filenames
19
+//	console.log(files[i] + " = "+filenames[i]);
20
+    
21
+    fs.copyFile(path+'/'+files[i], 'data/'+filenames[i], (err) => {
22
+		if (err) throw err;
23
+	});
24
+
25
+};
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+/*
46
+var xmlhttp = new XMLHttpRequest();
47
+var url = "http://136.145.231.34/";
48
+
49
+xmlhttp.onreadystatechange = function() {
50
+    if (this.readyState == 4 && this.status == 200) {
51
+        var myArr = JSON.parse(this.responseText);
52
+        myFunction(myArr);
53
+    }
54
+};
55
+xmlhttp.open("GET", url, true);
56
+xmlhttp.send();
57
+
58
+function myFunction(arr) {
59
+    var out = "";
60
+    var i;
61
+    for(i = 0; i < arr.length; i++) {
62
+        out += '<a href="' + arr[i].url + '">' +
63
+        arr[i].display + '</a><br>';
64
+    }
65
+    document.getElementById("id01").innerHTML = out;
66
+}
67
+
68
+
69
+src="http://code.jquery.com/jquery-1.11.0.min.js";
70
+
71
+(function() {
72
+          var URL = "/Json/";
73
+          $.getJSON( URL, {
74
+            format: "json"
75
+          })
76
+            .done(function( data ) {
77
+              $.each( data.items, function( i, item ) {
78
+              
79
+                //copyfile.js
80
+                const fs = require('fs');
81
+
82
+                // destination will be created or overwritten by default.
83
+                fs.copyFile('#.json', '/JsonFiles/#.json', (err) => {
84
+                  if (err) throw err;
85
+                  console.log('File was copied to destination');
86
+                });
87
+              
88
+                if ( i === 3 ) {
89
+                  return false;
90
+                }
91
+              });
92
+            });
93
+        })();
94
+
95
+
96
+*/
97
+
98
+/*
99
+$.ajax({
100
+  url: 'http://136.145.231.34',
101
+  data: data,
102
+  success: null,
103
+  dataType: "json"
104
+});
105
+
106
+
107
+
108
+
109
+$.get( "ajax/test.html", function( data ) {
110
+  $( ".result" ).html( data );
111
+  alert( "Load was performed." );
112
+});
113
+
114
+
115
+// Assign handlers immediately after making the request,
116
+// and remember the jqxhr object for this request
117
+var jqxhr = $.get( "AROMATIZACIÓN.json", function() {
118
+  alert( "success" );
119
+})
120
+  .done(function() {
121
+    alert( "second success" );
122
+  })
123
+  .fail(function() {
124
+    alert( "error" );
125
+  })
126
+  .always(function() {
127
+    alert( "finished" );
128
+  });
129
+ 
130
+// Perform other work here ...
131
+ 
132
+// Set another completion function for the request above
133
+jqxhr.always(function() {
134
+  alert( "second finished" );
135
+});
136
+
137
+
138
+
139
+ftp://ubuntu:BE#u3bFh@136.145.231.34/
140
+
141
+    host: '136.145.231.34',
142
+    username: 'ubuntu',
143
+    password: 'BE#u3bFh'
144
+	jquery get json
145
+*/

+ 952
- 0
www/index.html Zobrazit soubor

@@ -0,0 +1,952 @@
1
+<!DOCTYPE html>
2
+<!--
3
+    Licensed to the Apache Software Foundation (ASF) under one
4
+    or more contributor license agreements.  See the NOTICE file
5
+    distributed with this work for additional information
6
+    regarding copyright ownership.  The ASF licenses this file
7
+    to you under the Apache License, Version 2.0 (the
8
+    "License"); you may not use this file except in compliance
9
+    with the License.  You may obtain a copy of the License at
10
+
11
+    http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+    Unless required by applicable law or agreed to in writing,
14
+    software distributed under the License is distributed on an
15
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+     KIND, either express or implied.  See the License for the
17
+    specific language governing permissions and limitations
18
+    under the License.
19
+-->
20
+<html>
21
+    <head>
22
+        <!--
23
+        Customize this policy to fit your own app's needs. For more guidance, see:
24
+            https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy
25
+        Some notes:
26
+            * gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
27
+            * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
28
+            * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
29
+                * Enable inline JS: add 'unsafe-inline' to default-src
30
+        <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"/>
31
+        -->
32
+		<meta http-equiv="Content-Security-Policy" content="style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com;">
33
+        <!--these three for the calendar-->
34
+        <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
35
+<!--         <link href="css/robotocondensed.css" rel="stylesheet"> -->
36
+        <link rel="stylesheet" href="calendar_files/css/demo.css"/>
37
+        <link rel="stylesheet" href="css/file.css"/>
38
+        <link rel="stylesheet" href="calendar_files/css/theme1.css"/>
39
+        <!--this is for the search bar-->
40
+        <link rel = "stylesheet" href = "css/searchbar1.css">
41
+        <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
42
+        <meta name="format-detection" content="telephone=no">
43
+        <meta name="msapplication-tap-highlight" content="no">
44
+        <meta charset="UTF-8">
45
+        <link rel="stylesheet" type="text/css" href="css/index.css">
46
+        <link rel="stylesheet" href="lib/OnsenUI/css/onsenui.css">
47
+        <link rel="stylesheet" href="lib/OnsenUI/css/onsen-css-components.min.css">
48
+        <script src="lib/OnsenUI/js/onsenui.min.js"></script>
49
+        <script src="js/jquery_.js"></script>
50
+        <script type="text/javascript" src="js/saveLocal.js"></script>
51
+
52
+
53
+    </head>
54
+    <body>
55
+
56
+        <script> 
57
+        
58
+        
59
+        
60
+        </script>
61
+
62
+            <!--the toolbar is where it will have the main name of the app and the ICP logo (top center)-->
63
+           <ons-page>
64
+            <ons-toolbar>
65
+                <div class="center">ArtesaníasICP</div>
66
+                <div class="right"><img class="list-item__thumbnail" src="img/ICP.png"></div>
67
+            </ons-toolbar>
68
+            <!--The tabbar is the place where the user can get acces to the different sections of the app-->
69
+            <!--Each tab will hace a page name (which we use to reference and define them later one), then we have a laber, this is what will be used as a name for that page in the tabbar-->
70
+            <ons-tabbar swipeable position="bottom" modifier="autogrow">
71
+                <ons-tab page="home.html" label="Hogar" icon = "md-home" active></ons-tab>
72
+                <ons-tab page="renglones.html" label="Artesanías" icon = "md-brush"></ons-tab>
73
+                <ons-tab page ="search.html" label="Buscar" icon = "md-search"> </ons-tab>
74
+                <ons-tab page ="ferias.html" label="Eventos" icon = "md-calendar-alt"> </ons-tab>
75
+                <ons-tab page="colaboradores.html" label="Colab" icon = "md-mood"></ons-tab>
76
+            </ons-tabbar>
77
+        </ons-page>
78
+
79
+
80
+<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
81
+
82
+        <template id="home.html">
83
+
84
+            <ons-page id="home" class="red">
85
+
86
+                <ons-card id="azar">
87
+
88
+                    <!--<div class="title" id="Title"></div>-->
89
+                    <div id="image"></div><br>
90
+                    <div class="content" id="Content"></div>
91
+                    <!--This javascript will randomly choose an image and information of a certain type of artesania used by a certain artists-->
92
+                    <!--For now all this information is stored inside a .csv file-->
93
+                    <script type="text/javascript" src="js/azar.js"> </script>
94
+
95
+                </ons-card>
96
+
97
+
98
+            </ons-page>
99
+
100
+        </template>
101
+
102
+<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
103
+        <!-- This is the page that's accesed when someone clicks on a renglon (tipo de material usado) and then artesanos, it will show a list of all theartists that work with that type of material
104
+        -->
105
+        <template id="artesanos.html">
106
+            <ons-page id="artesanos">
107
+                <!-- This button lets the user go back to the previous page of the artesanias tab-->
108
+                <ons-toolbar>
109
+                    <div class="left"><ons-back-button>Atrás</ons-back-button></div>
110
+                    <div class="center"></div>
111
+                </ons-toolbar>
112
+
113
+                <!--Not sure what this does....-->
114
+                <!-- when you pull down and are already at the top of the artesanos list then you see that fa-arrow-down on the top-->
115
+                <ons-pull-hook id="pull-hook" threshold-height="120px">
116
+                    <ons-icon id="pull-hook-icon" size="22px" class="pull-hook-content" icon="md-long-arrow-down"></ons-icon>
117
+                </ons-pull-hook>
118
+
119
+                <!--This is where it will make the list, so the function that puts the artists here should reference this -->
120
+                <ons-list id="artesanos-list" src="">
121
+                    <ons-list-header>Artesanos</ons-list-header>
122
+                </ons-list>
123
+
124
+                <script>
125
+
126
+                    ons.getScriptPage().onInit = function () {
127
+                        //not sure what this does, because I dont really know what this.data.title have inside
128
+                        //But I think what it has is the renglon that the user chose in the previous tab, and then using it as the title on this page
129
+                        this.querySelector('ons-toolbar div.center').textContent = this.data.title;
130
+
131
+
132
+                        //var File = this.data.title.toUpperCase() + '.json' ;
133
+                        //seperates all different types of especificaciones
134
+                        var Esp = this.data.esp.split(', ');
135
+                        //Puts the json file of all the artesanos into this variable
136
+                        var artesanos_json = this.data.json;
137
+
138
+                        //Turns the first character into an upper case
139
+                        //Convertir en mayuscula primera letra del string.
140
+                        for(var i=0; i<Esp.length; i++) {
141
+                            Esp[i] = Esp[i].charAt(0).toUpperCase() + Esp[i].slice(1);
142
+                        };
143
+
144
+                        //This is what happens when you scroll the list of names down when its already at the top
145
+                        //First the arrow faces down, at some point it spins and points to the top, right before the user's finger stops touching the screen
146
+                        //or if their finger goes back down.
147
+                        var pullHook = document.getElementById('pull-hook');
148
+                        var icon = document.getElementById('pull-hook-icon');
149
+                        pullHook.addEventListener('changestate', function (event) {
150
+                            switch (event.state) {
151
+                                case 'initial':
152
+                                    icon.setAttribute('icon', 'md-long-arrow-down');
153
+                                    icon.removeAttribute('rotate');
154
+                                    icon.removeAttribute('spin');
155
+                                    break;
156
+                                case 'preaction':
157
+                                    icon.setAttribute('icon', 'md-long-arrow-down');
158
+                                    icon.setAttribute('rotate', '180');
159
+                                    icon.removeAttribute('spin');
160
+                                    break;
161
+                                case 'action':
162
+                                    icon.setAttribute('icon', 'md-spinner');
163
+                                    icon.removeAttribute('rotate');
164
+                                    icon.setAttribute('spin', true);
165
+                                    break;
166
+                            }
167
+                        });
168
+
169
+                        //This function recieves a number that is tied to a specific Especificacion (type of artesania that artist make like: boligrafos,figuras...) in the variable Esp declared beforehand
170
+                        //Then it finds and copies all the information of the artists that work on that type of artesania
171
+                        //It ends up returning the especificacion in 'name' and retuns all the names and municipios of the artists that it found in 'artesan'
172
+                        var getArtesania = function (num) {
173
+                            //First it empty in case we dont find anyone, this is the variable where the information of the artist's name and municipio will be sent
174
+                            var Artesanos = ``;
175
+
176
+                            console.log('Filtrado de ',Esp[num])
177
+
178
+                            //results: This variable will have all the information about the artists who work with that especificacion, it will look for this in the artesanos_json that has the whole json file of artesanos.
179
+                            //I dont think its using 'searchVal' for anything....
180
+                            var results = [];
181
+                            var searchVal = "my Name";
182
+                            for (var i=0 ; i < artesanos_json.length ; i++)
183
+                            {
184
+                                if (artesanos_json[i].Especificaciones.includes(Esp[num])) {
185
+                                    results.push(artesanos_json[i]);
186
+                                }
187
+                            }
188
+
189
+          /*var arr1=artesanos_json.filter(function(item){
190
+              return item.Nombre=="Ana";
191
+          });*/
192
+                            //After going through the whole json file
193
+                            //It adds the names and municipios of the ones found and later stored in 'results' to the 'Artesanos' variable
194
+                            for(var i=0; i<results.length; i++) {
195
+
196
+                                //if(Esp[num] in artesanos_json.) {}
197
+                                Artesanos=Artesanos+`<a id='home.html'>${results[i].Nombre} | ${results[i].Municipio}<br>`
198
+                                //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
199
+                            }
200
+
201
+
202
+                            return {
203
+                                name: Esp[num],
204
+                                artesan: Artesanos
205
+                            };
206
+                        };
207
+
208
+                        //Then this function returns the name of the Especificacion that was searched in 'name'
209
+                        //And it also returns all the names and municipios of the artesanos that work with that especificacion
210
+                        var getData = function () {
211
+                            const data = [];
212
+                            for (var i = 0; i < Esp.length; i++) {
213
+                                data.push(getArtesania(i));
214
+                            }
215
+                            return data;
216
+                        };
217
+
218
+                        //not sure what this does because the element is also created later on, with even more information so idk if this one is just wrong
219
+                        //This will create a new tab with the information of the arteanos?
220
+                        var createArtesano = function (Artesano) {
221
+
222
+                            return ons.createElement(`
223
+              <ons-list-item expandable tappable>
224
+                <div class="center" >${Artesano.Nombre}</div>
225
+                <div class="expandable-content"> Municipio: ${Artesano.Municipio}<br>
226
+                                                 Tel\u00e9fono: ${Artesano["Telefono 1"]}<br>
227
+                                                 Correo Electr\u00f3nico: ${Artesano["Email"]}<br>
228
+                                                 </div>
229
+              </ons-list-item>`
230
+                                                    );
231
+                        };
232
+
233
+                        //var Artesanias = getData();
234
+                        //artesanos_json
235
+
236
+                        for (Artesano of artesanos_json) {
237
+
238
+                            var cont = 0;
239
+                            var lista = document.getElementById('artesanos-list');
240
+
241
+                            //Recopilar datos no vacios.
242
+                            //Counts all the tyoes of data that the artists don't have
243
+                            //Later on, if you discover that they didn't have 'municipios', telephone numbers, emails and especificaciones then you wont display it.
244
+                            if (Artesano.Municipio.trim().length != 0) {
245
+                                cont ++;
246
+                            }
247
+                            if (Artesano["Telefono 1"].trim().length != 0) {
248
+                                cont ++;
249
+                            }
250
+                            if (Artesano["Email"].trim().length != 0 & Artesano["Email"].toUpperCase().trim() != "NO TIENE") {
251
+                                cont ++;
252
+                            }
253
+                            if (Artesano.Especificacion.trim().length != 0) {
254
+                                cont ++;
255
+                            }
256
+                            
257
+                            Artesano.Nombre = Artesano.Nombre + " " + Artesano["Apellido Paterno"] + " " + Artesano["Apellido Materno"];
258
+
259
+                            //info a pasar
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)
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.replace(/"/g, " ")}', mun: '${Artesano.Municipio}', tel: '${Artesano["Telefono 1"]}', email: '${Artesano["Email"]}', esp: '${Artesano.Especificacion}', red1: '${Artesano["Red Social 1"]}', red2: '${Artesano["Red Social 2"]}', ecom: '${Artesano["E-Commerce 1"]}', tecnicas: '${Artesano["Tecnica"]}' } })" tappable>
264
+                        <div class="title">${Artesano.Nombre}</div>
265
+                    </ons-list-item>`);
266
+
267
+                            //If it didn't find 'municipios', telephone numbers, emails and 'especificaciones' of that artists then it wont include it on the 'artesanos-list' (variable: 'lista')
268
+                            //If it found that it has at least one of them then it will include it into the list.
269
+                            if(cont == 0){
270
+                                //console.log(Artesano.Nombre+' no tiene ningun tipo de informacion.');
271
+                                //return ons.createElement(``);
272
+                            }
273
+                            else {
274
+                                lista.appendChild(item);
275
+                            }
276
+
277
+                        };
278
+
279
+                    };
280
+                </script>
281
+
282
+                <style>
283
+                    .pull-hook-content {
284
+                        color: #333;
285
+                        transition: transform .25s ease-in-out;
286
+                    }
287
+                </style>
288
+
289
+            </ons-page>
290
+
291
+        </template>
292
+
293
+<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
294
+
295
+         <template id="artesanias.html">
296
+             <ons-page id="artesanias">
297
+
298
+                 <ons-toolbar>
299
+                     <div class="left"><ons-back-button>Atrás</ons-back-button></div>
300
+                     <div class="center"></div>
301
+                 </ons-toolbar>
302
+
303
+                 <ons-pull-hook id="pull-hook" threshold-height="120px">
304
+                     <ons-icon id="pull-hook-icon" size="22px" class="pull-hook-content" icon="md-long-arrow-down"></ons-icon>
305
+                 </ons-pull-hook>
306
+
307
+                 <ons-list id="artesania-list" src="">
308
+                     <ons-list-header>Artesanias</ons-list-header>
309
+                 </ons-list>
310
+
311
+                 <script>
312
+
313
+                     ons.getScriptPage().onInit = function () {
314
+                         this.querySelector('ons-toolbar div.center').textContent = this.data.title;
315
+
316
+                         //var File = this.data.title.toUpperCase() + '.json' ;
317
+                         var Esp = this.data.esp.split(', ');
318
+                         var artesanos_json = this.data.json;
319
+
320
+                         //Convertir en mayuscula primera letra del string.
321
+                         for(var i=0; i<Esp.length; i++) {
322
+                             Esp[i] = Esp[i].charAt(0).toUpperCase() + Esp[i].slice(1);
323
+                         };
324
+
325
+                         var pullHook = document.getElementById('pull-hook');
326
+                         var icon = document.getElementById('pull-hook-icon');
327
+                         pullHook.addEventListener('changestate', function (event) {
328
+                             switch (event.state) {
329
+                                 case 'initial':
330
+                                     icon.setAttribute('icon', 'md-long-arrow-down');
331
+                                     icon.removeAttribute('rotate');
332
+                                     icon.removeAttribute('spin');
333
+                                     break;
334
+                                 case 'preaction':
335
+                                     icon.setAttribute('icon', 'md-long-arrow-down');
336
+                                     icon.setAttribute('rotate', '180');
337
+                                     icon.removeAttribute('spin');
338
+                                     break;
339
+                                 case 'action':
340
+                                     icon.setAttribute('icon', 'md-spinner');
341
+                                     icon.removeAttribute('rotate');
342
+                                     icon.setAttribute('spin', true);
343
+                                     break;
344
+                             }
345
+                         });
346
+
347
+                         var getArtesania = function (num) {
348
+
349
+                             var Artesanos = ``,
350
+                                 ArtesanosInfo = ``;
351
+
352
+                             //console.log('Filtrado de ',Esp[num])
353
+
354
+                             var results = [];
355
+                             var searchVal = "my Name";
356
+                             for (var i=0 ; i < artesanos_json.length ; i++)
357
+                             {
358
+                                 if (artesanos_json[i].Especificacion.includes(Esp[num])) {
359
+                                     results.push(artesanos_json[i]);
360
+                                 }
361
+                             }
362
+
363
+                             /*var arr1=artesanos_json.filter(function(item){
364
+                             return item.Nombre=="Ana";
365
+                             });*/
366
+
367
+                             for(var i=0; i<results.length; i++) {
368
+                                
369
+                                 //if(Esp[num] in artesanos_json.) {}
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]["E-Commerce 1"]}|${results[i]["Red Social 1"]}|${results[i]["Red Social 2"]}|${results[i]["Tecnica"]}&&`
374
+                                 //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
375
+                                }
376
+
377
+                             return {
378
+                                 name: Esp[num],
379
+                                 artesan: Artesanos,
380
+                                 info: ArtesanosInfo
381
+                             };
382
+                         };
383
+
384
+                         var getData = function () {
385
+                             const data = [];
386
+                             for (var i = 0; i < Esp.length; i++) {
387
+                                 data.push(getArtesania(i));
388
+                             }
389
+                             return data;
390
+                         };
391
+                         var createArtesania = function (Artesania) {
392
+
393
+                             //console.log('Devuelto elemento')
394
+                             var listaArt=``;
395
+                             var arts = Artesania.artesan.split('|');
396
+                             var artsInfo = Artesania.info.split('&&');
397
+
398
+                             for(var i=0; i<arts.length; i++) {
399
+                                 var lot = artsInfo[i].split('|'),
400
+                                     mun = lot[0],
401
+                                     tel = lot[1],
402
+                                     email = lot[2],
403
+                                     esp = lot[3],
404
+                                     ecom = lot[4],
405
+                                     red1 = lot[5];
406
+                                     red2 = lot[6];
407
+                                     tecnicas = lot[7]
408
+                                     console.log(lot)
409
+
410
+                                 listaArt += `<ons-item tappable onclick="myNavigator.pushPage('artesano.html', {data: {title:'${arts[i].replace(/"/g, " ")}', mun: '${mun}', tel: '${tel}', email: '${email}', esp: '${esp}', red1: '${red1}', red2: '${red2}', ecom: '${ecom}', tecnicas: '${tecnicas}' }} )" ><div class="center">`+ arts[i] +`</div></ons-item><br>`;
411
+                             }
412
+
413
+                             if (Artesania.name == "Figuras y simbolos indigenas") {
414
+                                 Artesania.name = "Figuras y símbolos indígenas";
415
+                             } 
416
+
417
+        
418
+
419
+                             return ons.createElement(`
420
+              <ons-list-item expandable tappable>
421
+                <div class="center" >${Artesania.name}</div>
422
+                <div class="expandable-content">Artesanos que trabajan con ${Artesania.name}
423
+                <ons-card>${listaArt}</ons-card></div>
424
+                </ons-list-item>`
425
+                                                     );
426
+                         };
427
+
428
+                         var Artesanias = getData();
429
+
430
+                         for (Art of Artesanias) {
431
+
432
+                             var Artesania = createArtesania(Art);
433
+                             document.getElementById('artesania-list').appendChild(Artesania);
434
+                         };
435
+                         pullHook.onAction = function (done) {
436
+
437
+                             setTimeout(function() {
438
+                                 document.getElementById('artesania-list').appendChild(createArtesania(getArtesania()));
439
+                                 done();
440
+                             }, 400);
441
+                         }
442
+
443
+                     };
444
+                 </script>
445
+
446
+                 <style>
447
+                     .pull-hook-content {
448
+                         color: #333;
449
+                         transition: transform .25s ease-in-out;
450
+                     }
451
+                 </style>
452
+             </ons-page>
453
+        </template>
454
+
455
+<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
456
+<!----------------------------------------------------------------------------------->
457
+        <!--
458
+            The searchfunctions.js file is just a file that has all the definitions of the functions used later on in the switch
459
+        -->
460
+        <script src = "js/searchfunctions.js"></script>
461
+        <script>
462
+            //'all_artesanos' is the variable containing the JSON file that has all the artesanos with their data
463
+
464
+
465
+            var all_artesanos = JSON.parse(window.localStorage.getItem('TODOS'));
466
+            function filter(){
467
+                //finds the values of the search bar which are sent from the block of code after this script
468
+                //input is the one you use to filter by any parameter
469
+                //inputarte is the one you use to filter by the type of art the artists make
470
+                //inputmuni is the one you use to filter by municipio
471
+                //informacion is the variable that has all the information that will be sent to this tab, what we're going to use here is just to declare which artists are seen (informacion[i].style.display = "list-item") and which are not seen (informacion[i].style.display = "none")
472
+                var input = document.getElementById('searchbar').value;
473
+                var inputarte = document.getElementById('searchartesania').value;
474
+                var inputmuni = document.getElementById('searchbarmunicipio').value;
475
+                var x = document.getElementsByClassName('artists');
476
+
477
+                //validating input so that its not as easy to attack
478
+                //no acepta strings mayores que 40 caracteres y no acepta '>' o '<' en el string
479
+                input = input_validation(input);
480
+                inputarte = input_validation(inputarte);
481
+                inputmuni = input_validation(inputmuni);
482
+                //just making sure everything is at the same format by taking out special characters, trimming it and putting it in lowercase (same thing will be done to the arguments it's being compared to later on)
483
+                //acento_replace(): it's a function I made that takes out any special characters of a word and changes them back to the plain ones (quitar acentos o cosas asi)
484
+                input = input.trim().toLowerCase();
485
+                inputarte = inputarte.trim().toLowerCase();
486
+                inputmuni = inputmuni.trim().toLowerCase();
487
+                input = acento_replace(input);
488
+                inputarte = acento_replace(inputarte);
489
+                inputmuni = acento_replace(inputmuni);
490
+                //default case is where evey one of them has nothing or less than 3 characters (displays every artist until it passes that length)
491
+                if (input.length <= 3 && inputarte.length <= 3 && inputmuni.length <= 3){
492
+                    for (var i = 0; all_artesanos.length; i++){
493
+                        x[i].style.display = "list-item";
494
+                    }
495
+                }
496
+                else{
497
+                    var cases = 0;
498
+                    cases = getcasenum(input,inputarte,inputmuni);
499
+                    //take every one of them out first (dont display any)
500
+                    for (var i = 0; i < all_artesanos.length; i++){
501
+                        x[i].style.display = "none";
502
+                    }
503
+                    switch(cases){
504
+                        //cases == 1 when only inputmuni has been writen on
505
+                        case 1:
506
+                            filter_municipios(inputmuni);
507
+                            break;
508
+                        //cases == 2 when only inputarte has been written on
509
+                        case 2:
510
+                            filter_artesanias(inputarte);
511
+                            break;
512
+                        //cases == 3 when inputarte and inputmuni has been written on
513
+                        case 3:
514
+                            search_art_mun(inputarte,inputmuni);
515
+                            break;
516
+                        //cases == 4 when input has been writen on
517
+                        case 4:
518
+                            filter_any(input);
519
+                            break;
520
+                        //cases == 5 when input and inputmuni has been written on
521
+                        case 5:
522
+                            search_any_mun(input,inputmuni);
523
+                            break;
524
+                        //cases == 6 when input and inputart has been written on
525
+                        case 6:
526
+                            search_any_art(input,inputarte);
527
+                            break;
528
+                        //cases == 7 when input, inputart and inputmuni has been writen on
529
+                        case 7:
530
+                            search_any_art_mun(input,inputarte,inputmuni);
531
+                            break;
532
+                    }
533
+                }
534
+            }
535
+        </script>
536
+
537
+        <template id="search.html">
538
+          <ons-navigator swipeable animation="slide" id="SNavigator">
539
+            <ons-page id="Buscar">
540
+                <!--
541
+                    This is the search bars, each time you type a character into any of the search bars, they will run the filter() function with what they all have as arguments (even if the other search bars have nothing in them)
542
+                    The first search bar is to find by any information related to the artist
543
+                    The second searchbar is to find by the type of artwork they work on
544
+                    The third searchbar is to find by the municipio where the artists works or lives
545
+                -->
546
+                <p style="text-align: center; margin-top: 10px;background-color: white">
547
+                    <ons-search-input placeholder="Búsqueda con cualquier término" id = "searchbar"
548
+                        onkeyup = "filter()" style = "width: 300px;" ></ons-search-input>
549
+                    <ons-search-input placeholder="Búsqueda por artesanías" id = "searchartesania"
550
+                        onkeyup = "filter()" style = "width: 300px;"></ons-search-input>
551
+                    <ons-search-input placeholder = "Búsqueda por municipio" id = "searchbarmunicipio"
552
+                        onkeyup = "filter()" style = "width: 300px;"></ons-search-input>
553
+                </p>
554
+
555
+                <ons-list id="results" src="">
556
+                </ons-list>
557
+
558
+                <script>
559
+                    //This is basically declaring what we refer to as informacion in the filter() function
560
+                    //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.
561
+                    for (i = 0; i < all_artesanos.length;i++){
562
+                        all_artesanos[i].Nombre = all_artesanos[i].Nombre +  " " + all_artesanos[i]["Apellido Paterno"] + " " + all_artesanos[i]["Apellido Materno"];
563
+                        var artesano = ons.createElement(`<ons-list-item class = "artists"
564
+                        onclick="SNavigator.pushPage('artesano_s.html', { data: {title: '${all_artesanos[i].Nombre.replace(/"/g, " ")}', mun: '${all_artesanos[i].Municipio}', tel: '${all_artesanos[i]["Telefono 1"]}', email: '${all_artesanos[i]["Email"]}', esp: '${all_artesanos[i].Especificacion}', red1: '${all_artesanos[i]["Red Social 1"]}', red2: '${all_artesanos[i]["Red Social 2"]}', ecom: '${all_artesanos[i]["E-Commerce 1"]}', tecnicas: '${all_artesanos[i]["Tecnica"]}' } })" tappable>
565
+                        <div>${all_artesanos[i].Nombre}</div>
566
+                    </ons-list-item>`);
567
+                        document.getElementById('results').appendChild(artesano);
568
+                    }
569
+                </script>
570
+
571
+            </ons-page>
572
+            </ons-navigator>
573
+        </template>
574
+
575
+        <!-- ---------------------------------------------------------------------------------------------------------------------------------------- -->
576
+        <!--This page is used so that we can display the information of a specific artists, and whenever the artists is missing information then we just dont include that in the page-->
577
+        <template id= "artesano.html">
578
+            <ons-page id = "artesano">
579
+                <ons-toolbar>
580
+                    <!-- Pretty self explanatory, its a button that goes back to the previous page -->
581
+                    <div class = "left"> <ons-back-button> Atras </ons-back-button></div>
582
+                    <div class = "center"></div>
583
+                </ons-toolbar>
584
+                <body>
585
+                	<font size="+1">
586
+                    	<!-- This is where we'll put all the information of that artsts -->
587
+                    	<ons-card id="all"></ons-card>
588
+                    </font>
589
+                </body>
590
+                <script>
591
+                    //when it opens this page this function starts to run, it first recieves the information that was sent to "artesano.html"
592
+                    ons.getScriptPage().onInit = function () {
593
+                        this.querySelector('ons-toolbar div.center').textContent = this.data.title;
594
+
595
+                        var data = '',
596
+                            mun = this.data.mun,
597
+                            tel = this.data.tel,
598
+                            em = this.data.email,
599
+                            esp = this.data.esp,
600
+                            red1 = this.data.red1,
601
+                            red2 = this.data.red2,
602
+                            ecom = this.data.ecom,
603
+                            tecnicas = this.data.tecnicas;
604
+
605
+                            
606
+
607
+                        //here the email is the string made from the start to where the '#' is.
608
+                        
609
+
610
+                        //Here it's dividing all the especificaciones and writing them into the page (data) and then goes to the next line
611
+                        //if it has many especificaciones then it will replace all the ';' in it with ',' and writes it into the page
612
+                        //but if theres only one then you just write it into the page
613
+                        if(esp.trim() != ""){
614
+
615
+                            //Fixes phrase error in json
616
+                            if(esp.includes("Figuras y simbolos indigenas")) {
617
+                                esp = esp.replace("Figuras y simbolos indigenas", "Figuras y símbolos indígenas")
618
+                            }
619
+
620
+                            if(esp.includes(";", 0)){
621
+                                esp=esp.replace(/;/g,", ");
622
+                                data+='Tipos de artesanías: '+esp+'<br>';
623
+                            }
624
+                            else {
625
+                                data+='Tipo de artesanía: '+esp+'<br>';
626
+                            }
627
+                        }
628
+
629
+                        if(tecnicas.trim() != ''){
630
+                            if(tecnicas.includes(";", 0)){
631
+                                tecnicas = tecnicas.replace(/;/g,", ");
632
+                                data+='Técnicas que usan: '+tecnicas+'<br>';
633
+                            }
634
+                            else {
635
+                                data+='Técnicas que usan: '+tecnicas+'<br>';
636
+                            }
637
+                        }
638
+                        //console.log("Las redes son..."+this.data.redes);
639
+                        //Here it's making sure theres something in municipio and writing their municipio into the page
640
+                        if(mun.trim() != ""){
641
+                            data+='Municipio: '+ mun +'<br>';
642
+                        }
643
+
644
+                        //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
645
+                        //Whenever the variable is empty or if it has "NO TIENE" then it doesnt write anything
646
+                        if(em.trim() != "" & em.toUpperCase().trim() != "NO TIENE"){
647
+                            data+='Correo Electr\u00f3nico: <a style="color:blue" href="mailto: '+em+'"><u>'+em+'</u></a><br>';
648
+                        }
649
+
650
+                        //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
651
+                        if(tel.trim() != "" ){
652
+                            data+='Tel\u00e9fono: <a style="color:blue" href="tel: '+ tel +'"><u>'+ tel +'</u></a><br>';
653
+                        }
654
+
655
+                        
656
+
657
+                        //Here it has to decide what to do depending on the links they give to their social media pages
658
+                        //if the link is to a facebook, instagram or myspace account then it will show the picture of the social media site, and when you click the picture then the app redirects you to their social media.
659
+                        
660
+                        
661
+                        //If it's none of them then it will not display anything
662
+                        //First Social Media
663
+                        if(red1.includes("facebook")){
664
+                            data+='<a style="margin-right:10px;" href="'+ red1 + '"><img src="img/facebook.png" alt="Facebook"style="width:35px;height:35px;border:0;">';
665
+                        }
666
+                        else if(red1.includes("instagram")){
667
+                            data+='<a style="margin-right:10px;" href="'+ red1 + '"><img src="img/instagram.png" alt="Instagram"style="width:35px;height:35px;border:0;">';
668
+                        }
669
+                        else if(red1.includes("myspace")){
670
+                            data+='<a style="margin-right:10px;" href="'+ red1 + '"><img src="img/MySpace.png" alt="MySpace"style="width:35px;height:35px;border:0;">';
671
+                        }
672
+
673
+                        //Second Social Media
674
+                        if(red2.includes("facebook")){
675
+                            data+='<a style="margin-right:10px;" href="'+ red2 + '"><img src="img/facebook.png" alt="Facebook"style="width:35px;height:35px;border:0;">';
676
+                        }
677
+                        else if(red2.includes("instagram")){
678
+                            data+='<a style="margin-right:10px;" href="'+ red2 + '"><img src="img/instagram.png" alt="Instagram"style="width:35px;height:35px;border:0;">';
679
+                        }
680
+                        else if(red2.includes("myspace")){
681
+                            data+='<a style="margin-right:10px;" href="'+ red2 + '"><img src="img/MySpace.png" alt="MySpace"style="width:35px;height:35px;border:0;">';
682
+                        }
683
+                        
684
+                        //E-commerce 
685
+                        if ((ecom.includes(".org") || ecom.includes(".com")) && !ecom.includes("mailto")){
686
+                            ecom = ecom.substr(ecom.indexOf("#")+1,ecom.length);
687
+//                             ecom = ecom.substr(0, ecom.length-1);
688
+                            console.log(ecom);
689
+                            data+='<a target="_blank" href="https://'+ ecom + '"><img src="img/internet.jpg" style="width:35px;height:35px;border:0;">';
690
+                        }
691
+                        
692
+
693
+                        //This is the part that allows eveything (data) to be displayed
694
+                        document.getElementById("all").innerHTML = `${data}`;
695
+
696
+                    }
697
+                </script>
698
+            </ons-page>
699
+        </template>
700
+        
701
+         <template id= "artesano_s.html">
702
+            <ons-page id = "artesano_s">
703
+                <ons-toolbar>
704
+                    <!-- Pretty self explanatory, its a button that goes back to the previous page -->
705
+                    <div class = "left"> <ons-back-button> Atras </ons-back-button></div>
706
+                    <div class = "center"></div>
707
+                </ons-toolbar>
708
+                <body>
709
+                    <!-- This is where we'll put all the information of that artsts -->
710
+                    <font size="+1">
711
+                        <ons-card id="all2"></ons-card>
712
+                    </font>
713
+                </body>
714
+                <script>
715
+                    //when it opens this page this function starts to run, it first recieves the information that was sent to "artesano.html"
716
+                    ons.getScriptPage().onInit = function () {
717
+                        this.querySelector('ons-toolbar div.center').textContent = this.data.title;
718
+
719
+                        var data = '',
720
+                            mun = this.data.mun,
721
+                            tel = this.data.tel,
722
+                            em = this.data.email,
723
+                            esp = this.data.esp,
724
+                            red1 = this.data.red1,
725
+                            red2 = this.data.red2,
726
+                            ecom = this.data.ecom,
727
+                            tecnicas = this.data.tecnicas;
728
+
729
+                        //here the email is the string made from the start to where the '#' is.
730
+                        
731
+
732
+                        //Here it's dividing all the especificaciones and writing them into the page (data) and then goes to the next line
733
+                        //if it has many especificaciones then it will replace all the ';' in it with ',' and writes it into the page
734
+                        //but if theres only one then you just write it into the page
735
+                        if(esp.trim() != ""){
736
+
737
+                            if(esp.includes("Figuras y simbolos indigenas")) {
738
+                                esp = esp.replace("Figuras y simbolos indigenas", "Figuras y símbolos indígenas")
739
+                            }
740
+
741
+                            if(esp.includes(";", 0)){
742
+                                esp=esp.replace(/;/g,", ");
743
+                                data+='Tipos de artesanías: '+esp+'<br>';
744
+                            }
745
+                            else {
746
+                                data+='Tipo de artesanía: '+esp+'<br>';
747
+                            }
748
+                        }
749
+
750
+                        if(tecnicas.trim() != ''){
751
+                            if(tecnicas.includes(";", 0)){
752
+                                tecnicas = tecnicas.replace(/;/g,", ");
753
+                                data+='Técnicas que usan: '+tecnicas+'<br>';
754
+                            }
755
+                            else {
756
+                                data+='Técnicas que usan: '+tecnicas+'<br>';
757
+                            }
758
+                        }
759
+                        //console.log("Las redes son..."+this.data.redes);
760
+                        //Here it's making sure theres something in municipio and writing their municipio into the page
761
+                        if(mun.trim() != ""){
762
+                            data+='Municipio: '+ mun +'<br>';
763
+                        }
764
+
765
+                        //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
766
+                        //Whenever the variable is empty or if it has "NO TIENE" then it doesnt write anything
767
+                        if(em.trim() != "" & em.toUpperCase().trim() != "NO TIENE"){
768
+                            data+='Correo Electr\u00f3nico: <a style="color:blue" href="mailto: '+em+'"><u>'+em+'</u></a><br>';
769
+                        }
770
+
771
+                        //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
772
+                        if(tel.trim() != "" ){
773
+                            data+='Tel\u00e9fono: <a style="color:blue" href="tel: '+ tel +'"><u>'+ tel +'</u></a><br>';
774
+                        }
775
+
776
+                        
777
+
778
+                        //Here it has to decide what to do depending on the links they give to their social media pages
779
+                        //if the link is to a facebook, instagram or myspace account then it will show the picture of the social media site, and when you click the picture then the app redirects you to their social media.
780
+                        //The alt attribute is required for images, it's in case theres no internet connection, then it will display that tet instead, I think screen readers can also read that text
781
+                        //If the link is to another website (but isn't a mailto link) then it will display a default picture we chose to display a default web browser, like the other ones clikcing on it will take you to the link.
782
+                        //If it's none of them then it will not display anything
783
+                        if(red1.includes("facebook")){
784
+                            data+='<a style="margin-right:10px;" href="'+ red1 + '"><img src="img/facebook.png" alt="Facebook"style="width:35px;height:35px;border:0;">';
785
+                        }
786
+                        else if(red1.includes("instagram")){
787
+                            data+='<a style="margin-right:10px;" href="'+ red1 + '"><img src="img/instagram.png" alt="Instagram"style="width:35px;height:35px;border:0;">';
788
+                        }
789
+                        else if(red1.includes("myspace")){
790
+                            data+='<a style="margin-right:10px;" href="'+ red1 + '"><img src="img/MySpace.png" alt="MySpace"style="width:35px;height:35px;border:0;">';
791
+                        }
792
+
793
+                        //Second Social Media
794
+                        if(red2.includes("facebook")){
795
+                            data+='<a style="margin-right:10px;" href="'+ red2 + '"><img src="img/facebook.png" alt="Facebook"style="width:35px;height:35px;border:0;">';
796
+                        }
797
+                        else if(red2.includes("instagram")){
798
+                            data+='<a style="margin-right:10px;" href="'+ red2 + '"><img src="img/instagram.png" alt="Instagram"style="width:35px;height:35px;border:0;">';
799
+                        }
800
+                        else if(red2.includes("myspace")){
801
+                            data+='<a style="margin-right:10px;" href="'+ red2 + '"><img src="img/MySpace.png" alt="MySpace"style="width:35px;height:35px;border:0;">';
802
+                        }
803
+
804
+
805
+                        if((ecom.includes(".org") || ecom.includes(".com")) && !ecom.includes("mailto")){
806
+                            ecom = ecom.substr(ecom.indexOf("#")+1,ecom.length);
807
+//                             ecom = ecom.substr(0, ecom.length-1);
808
+                            console.log(ecom);
809
+
810
+                            data+='<a target="_blank" href="https://'+ ecom + '"><img src="img/internet.jpg" style="width:35px;height:35px;border:0;">';
811
+                        }
812
+                        
813
+
814
+                        //This is the part that allows eveything (data) to be displayed
815
+                        document.getElementById("all2").innerHTML = `${data}`;
816
+
817
+                    }
818
+                </script>
819
+            </ons-page>
820
+        </template>
821
+<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
822
+
823
+        <template id="renglones.html">
824
+          <ons-navigator swipeable animation="slide" id="myNavigator">
825
+            <ons-page id="renglones">
826
+
827
+            <ons-card id="list">
828
+              <script type="text/javascript" src="js/renglones.js"></script>
829
+            </ons-card>
830
+
831
+                <!--Javascript function to hide other open expandables-->
832
+                <script>
833
+                    const hideAll = () => {
834
+                        Array.from(document.querySelector('#list').children)
835
+                            .forEach(item => {
836
+                                if (item.expanded) {
837
+                                    item.hideExpansion();
838
+                                }
839
+                            });
840
+                        };
841
+                </script>
842
+
843
+                <style>
844
+                    .intro {
845
+                        text-align: center;
846
+                        padding: 20px;
847
+                        margin-top: 30px;
848
+                    }
849
+
850
+                    ons-card {
851
+                        cursor: pointer;
852
+                        color: #333;
853
+                    }
854
+
855
+                    .card__title,
856
+                    .card--material__title {
857
+                        font-size: 15px;
858
+                    }
859
+                </style>
860
+            </ons-page>
861
+            </ons-navigator>
862
+
863
+        </template>
864
+
865
+<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- 
866
+-->
867
+
868
+        <template id="ferias.html">
869
+            <ons-page id="ferias">
870
+                
871
+                <ons-card>
872
+                <div id="logo" style="text-align: center">
873
+                    <img src="img/culturalpr1800x3200-2-01.png" style="width:150px;height:100px">
874
+                </div>
875
+                <br><br>
876
+                <div id="button" style="text-align: center">
877
+                <ons-button onclick="redirect()" modifier="large" style="background-color: #00abc1;"> Pasar a la página de eventos </ons-button>
878
+                </div>
879
+                <br><br>
880
+                <div id="Mensaje">
881
+                    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.
882
+                </div>
883
+                </ons-card>
884
+
885
+              <script>
886
+              function redirect() {
887
+                location.replace("https://culturalpr.com/")
888
+              }
889
+              </script>
890
+            </ons-page>
891
+        </template>
892
+
893
+<!-- ------------------------------------------------------------------------------------------------------------------------------------------------------- -->
894
+
895
+        <template id="colaboradores.html">
896
+            <ons-page id="colaboradores">
897
+                <ons-card>
898
+
899
+                    <h1>Colaboradores</h1>
900
+                    
901
+                    <style>
902
+                        .column {
903
+                            float: left;
904
+                            width: 50%;
905
+                        }
906
+                        .row {
907
+                            width: 100%;
908
+                        }
909
+                    </style>
910
+                    <h2>SINFINESPR</h2>
911
+                    <div class = "column">
912
+                        SINFINESPR es un programa de Titín Foundation que responde a nuestro interés y compromiso con el fortalecimiento del tercer sector.
913
+                        <br><br>
914
+                        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.
915
+                    </div>   
916
+                    <div class = "column"> 
917
+                        <img src="img/sfpr.svg" style="width:150px;height:100px">
918
+                    </div>
919
+                    <br><br><br><br><br><br><br><br><br><br><br><br><br><br>
920
+                    Visita nuesta Página Web o siguenos en nuestras redes sociales <br> <br>
921
+                    <a href="https://twitter.com/SINFINESPR"><img src="img/twitter.png" alt="Twitter" style="width:35px;height:35px;border:0;">
922
+                    </a>
923
+                    <a href="https://www.facebook.com/sinfinespr"><img src="img/facebook.png" alt="Facebook" style="width:35px;height:35px;border:0;">
924
+                    </a>
925
+                    <a href="https://www.linkedin.com/company/sinfinespr/"><img src="img/linkedin.png" alt="Linkedin" style="width:35px;height:35px;border:0;">
926
+                    </a>
927
+                    <a href="https://www.instagram.com/sinfinespr/"><img src="img/instagram.png" alt="Instagram" style="width:35px;height:35px;border:0;">
928
+                    </a>
929
+                    <br><br>
930
+                    <h2>Centro de Desarrollo y Consultoría Computacional</h2>
931
+                    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.
932
+                    <br><br>
933
+                    
934
+                    <img src="img/logo_cdcc.png" style="width: 150px; height: 100px">
935
+                    
936
+                    <br><br>
937
+                    Si tiene alguna duda nos puede contactar por:
938
+                    <br>
939
+                    Teléfono: 787-764-0000 Ext. 88341, 88349
940
+                    <br>
941
+                    Correo electrónico: <a href = "mailto:carlos.corrada2@upr.edu" style ="color:#0000EE;text-decoration: underline;">carlos.corrada2@upr.edu</a>
942
+
943
+                </ons-card>
944
+            </ons-page>
945
+        </template>
946
+  <script src="js/load.js"></script>
947
+
948
+
949
+        <script type="text/javascript" src="cordova.js"></script>
950
+        <script type="text/javascript" src="js/index.js"></script>
951
+    </body>
952
+</html>