|
@@ -1,371 +0,0 @@
|
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
|
|
- -->
|
31
|
|
- <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; media-src *; img-src 'self' data: content:;">
|
32
|
|
- <!--these three for the calendar-->
|
33
|
|
- <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
|
34
|
|
- <link href="css/robotocondensed.css" rel="stylesheet">
|
35
|
|
- <link rel="stylesheet" href="calendar_files/css/demo.css"/>
|
36
|
|
- <link rel="stylesheet" href="css/file.css"/>
|
37
|
|
- <link rel="stylesheet" href="calendar_files/css/theme1.css"/>
|
38
|
|
- <!--this is for the search bar-->
|
39
|
|
- <link rel = "stylesheet" href = "css/searchbar1.css">
|
40
|
|
-
|
41
|
|
- <meta name="format-detection" content="telephone=no">
|
42
|
|
- <meta name="msapplication-tap-highlight" content="no">
|
43
|
|
- <meta name="viewport" content="initial-scale=1, width=device-width, viewport-fit=cover">
|
44
|
|
- <link rel="stylesheet" type="text/css" href="css/index.css">
|
45
|
|
- <link rel="stylesheet" href="lib/OnsenUI/css/onsenui.css">
|
46
|
|
- <link rel="stylesheet" href="lib/OnsenUI/css/onsen-css-components.min.css">
|
47
|
|
- <script src="lib/OnsenUI/js/onsenui.min.js"></script>
|
48
|
|
- <script src="js/jquery_.js"></script>
|
49
|
|
-
|
50
|
|
-
|
51
|
|
- </head>
|
52
|
|
- <body>
|
53
|
|
-
|
54
|
|
- <ons-navigator swipeable animation="slide" id="myNavigator">
|
55
|
|
- <ons-page>
|
56
|
|
- <ons-toolbar>
|
57
|
|
- <div class="center">Instituto de Cultura</div>
|
58
|
|
- </ons-toolbar>
|
59
|
|
- <ons-tabbar swipeable position="auto">
|
60
|
|
- <ons-tab page="home.html" label="Hogar"></ons-tab>
|
61
|
|
- <ons-tab page="renglones.html" label="Artesanias"active></ons-tab>
|
62
|
|
- <ons-tab page="ferias.html" label="Ferias"></ons-tab>
|
63
|
|
- <ons-tab page="instituto.html" label="Instituto"></ons-tab>
|
64
|
|
- </ons-tabbar>
|
65
|
|
- </ons-page>
|
66
|
|
- </ons-navigator>
|
67
|
|
-
|
68
|
|
-
|
69
|
|
-
|
70
|
|
- <template id="home.html">
|
71
|
|
-
|
72
|
|
- <ons-page id="home">
|
73
|
|
-
|
74
|
|
- <ons-card id="azar">
|
75
|
|
-
|
76
|
|
- <div class="title" id="Title"></div>
|
77
|
|
- <div id="image"></div><br>
|
78
|
|
- <div class="content" id="Content"></div>
|
79
|
|
-
|
80
|
|
- <script type="text/javascript" src="js/azar.js"> </script>
|
81
|
|
-
|
82
|
|
-
|
83
|
|
- </ons-card>
|
84
|
|
-
|
85
|
|
-
|
86
|
|
- </ons-page>
|
87
|
|
-
|
88
|
|
- </template>
|
89
|
|
-
|
90
|
|
-
|
91
|
|
-
|
92
|
|
-
|
93
|
|
- <template id="artesanias.html">
|
94
|
|
- <ons-page id="artesanias">
|
95
|
|
-
|
96
|
|
- <ons-toolbar>
|
97
|
|
- <div class="left"><ons-back-button>Atrás</ons-back-button></div>
|
98
|
|
- <div class="center"></div>
|
99
|
|
- </ons-toolbar>
|
100
|
|
-
|
101
|
|
- <ons-pull-hook id="pull-hook" threshold-height="120px">
|
102
|
|
- <ons-icon id="pull-hook-icon" size="22px" class="pull-hook-content" icon="fa-arrow-down"></ons-icon>
|
103
|
|
- </ons-pull-hook>
|
104
|
|
-
|
105
|
|
- <ons-list id="artesania-list" src="">
|
106
|
|
- <ons-list-header>Artesanias</ons-list-header>
|
107
|
|
- </ons-list>
|
108
|
|
-
|
109
|
|
- <ons-list id="artesanos-list" src="">
|
110
|
|
- <ons-list-header>Artesanos</ons-list-header>
|
111
|
|
- </ons-list>
|
112
|
|
-
|
113
|
|
- <script>
|
114
|
|
-
|
115
|
|
- ons.getScriptPage().onInit = function () {
|
116
|
|
- this.querySelector('ons-toolbar div.center').textContent = this.data.title;
|
117
|
|
-
|
118
|
|
- //var File = this.data.title.toUpperCase() + '.json' ;
|
119
|
|
- var Esp = this.data.esp.split(', ');
|
120
|
|
- var artesanos_json = this.data.json;
|
121
|
|
-
|
122
|
|
- //Convertir en mayuscula primera letra del string.
|
123
|
|
- for(var i=0; i<Esp.length; i++) {
|
124
|
|
- Esp[i] = Esp[i].charAt(0).toUpperCase() + Esp[i].slice(1);
|
125
|
|
- };
|
126
|
|
-
|
127
|
|
- var pullHook = document.getElementById('pull-hook');
|
128
|
|
- var icon = document.getElementById('pull-hook-icon');
|
129
|
|
- pullHook.addEventListener('changestate', function (event) {
|
130
|
|
- switch (event.state) {
|
131
|
|
- case 'initial':
|
132
|
|
- icon.setAttribute('icon', 'fa-arrow-down');
|
133
|
|
- icon.removeAttribute('rotate');
|
134
|
|
- icon.removeAttribute('spin');
|
135
|
|
- break;
|
136
|
|
- case 'preaction':
|
137
|
|
- icon.setAttribute('icon', 'fa-arrow-down');
|
138
|
|
- icon.setAttribute('rotate', '180');
|
139
|
|
- icon.removeAttribute('spin');
|
140
|
|
- break;
|
141
|
|
- case 'action':
|
142
|
|
- icon.setAttribute('icon', 'fa-spinner');
|
143
|
|
- icon.removeAttribute('rotate');
|
144
|
|
- icon.setAttribute('spin', true);
|
145
|
|
- break;
|
146
|
|
- }
|
147
|
|
- });
|
148
|
|
-
|
149
|
|
- var getArtesania = function (num) {
|
150
|
|
-
|
151
|
|
- var Artesanos = ``;
|
152
|
|
-
|
153
|
|
- console.log('Filtrado de ',Esp[num])
|
154
|
|
-
|
155
|
|
- var results = [];
|
156
|
|
- var searchVal = "my Name";
|
157
|
|
- for (var i=0 ; i < artesanos_json.length ; i++)
|
158
|
|
- {
|
159
|
|
- if (artesanos_json[i].Especificaciones.includes(Esp[num])) {
|
160
|
|
- results.push(artesanos_json[i]);
|
161
|
|
- }
|
162
|
|
- }
|
163
|
|
-
|
164
|
|
- /*var arr1=artesanos_json.filter(function(item){
|
165
|
|
- return item.Nombre=="Ana";
|
166
|
|
- });*/
|
167
|
|
-
|
168
|
|
- for(var i=0; i<results.length; i++) {
|
169
|
|
-
|
170
|
|
- //if(Esp[num] in artesanos_json.) {}
|
171
|
|
- Artesanos=Artesanos+`<a id='home.html'>${results[i].Nombre} | ${results[i].Municipio}<br>`
|
172
|
|
- //`<a id='home.html'>${Artesania.artesano} | ${Artesania.municipio}</a> `
|
173
|
|
- }
|
174
|
|
-
|
175
|
|
-
|
176
|
|
- return {
|
177
|
|
- name: Esp[num],
|
178
|
|
- artesan: Artesanos
|
179
|
|
- };
|
180
|
|
- };
|
181
|
|
-
|
182
|
|
- var getData = function () {
|
183
|
|
- const data = [];
|
184
|
|
- for (var i = 0; i < Esp.length; i++) {
|
185
|
|
- data.push(getArtesania(i));
|
186
|
|
- }
|
187
|
|
- return data;
|
188
|
|
- };
|
189
|
|
- var createArtesania = function (Artesania) {
|
190
|
|
-
|
191
|
|
- //console.log('Devuelto elemento')
|
192
|
|
-
|
193
|
|
- return ons.createElement(`
|
194
|
|
- <ons-list-item expandable tappable>
|
195
|
|
- <div class="center" >${Artesania.name}</div>
|
196
|
|
- <div class="expandable-content"> Artesanos que trabajan con ${Artesania.name}:<br><br>${Artesania.artesan}</div>
|
197
|
|
- </ons-list-item>`
|
198
|
|
- );
|
199
|
|
- };
|
200
|
|
-
|
201
|
|
- var Artesanias = getData();
|
202
|
|
-
|
203
|
|
- for (Art of Artesanias) {
|
204
|
|
-
|
205
|
|
- var Artesania = createArtesania(Art);
|
206
|
|
- document.getElementById('artesania-list').appendChild(Artesania);
|
207
|
|
- };
|
208
|
|
- pullHook.onAction = function (done) {
|
209
|
|
-
|
210
|
|
- setTimeout(function() {
|
211
|
|
- document.getElementById('artesania-list').appendChild(createArtesania(getArtesania()));
|
212
|
|
- done();
|
213
|
|
- }, 400);
|
214
|
|
- }
|
215
|
|
-
|
216
|
|
-
|
217
|
|
-
|
218
|
|
-
|
219
|
|
-
|
220
|
|
-
|
221
|
|
-
|
222
|
|
-
|
223
|
|
-
|
224
|
|
-
|
225
|
|
-
|
226
|
|
- var createArtesano = function (Artesano) {
|
227
|
|
-
|
228
|
|
- return ons.createElement(`
|
229
|
|
- <ons-list-item expandable tappable>
|
230
|
|
- <div class="center" >${Artesano.Nombre}</div>
|
231
|
|
- <div class="expandable-content"> Municipio: ${Artesano.Municipio}<br>
|
232
|
|
- Tel\u00e9fono: ${Artesano["Tel\u00e9fono 1"]}<br>
|
233
|
|
- Correo Electr\u00f3nico: ${Artesano["E-mail"]}<br>
|
234
|
|
- Trabaja con: ${Artesano.Especificaciones}<br>
|
235
|
|
- </div>
|
236
|
|
- </ons-list-item>`
|
237
|
|
- );
|
238
|
|
- };
|
239
|
|
-
|
240
|
|
- //var Artesanias = getData();
|
241
|
|
- //artesanos_json
|
242
|
|
-
|
243
|
|
- for (arte of artesanos_json) {
|
244
|
|
-
|
245
|
|
- var Artesano = createArtesano(arte);
|
246
|
|
- document.getElementById('artesanos-list').appendChild(Artesano);
|
247
|
|
- };
|
248
|
|
-
|
249
|
|
- };
|
250
|
|
- </script>
|
251
|
|
-
|
252
|
|
- <style>
|
253
|
|
- .pull-hook-content {
|
254
|
|
- color: #333;
|
255
|
|
- transition: transform .25s ease-in-out;
|
256
|
|
- }
|
257
|
|
- </style>
|
258
|
|
- </ons-page>
|
259
|
|
- </template>
|
260
|
|
-
|
261
|
|
-
|
262
|
|
-
|
263
|
|
-
|
264
|
|
-
|
265
|
|
-
|
266
|
|
-
|
267
|
|
-
|
268
|
|
-
|
269
|
|
-
|
270
|
|
-
|
271
|
|
- <template id="renglones.html">
|
272
|
|
- <ons-page id="renglones">
|
273
|
|
-
|
274
|
|
- <!--div class="search-bar">
|
275
|
|
- <p style="text-align: center; margin-top: 10px;">
|
276
|
|
- <ons-search-input placeholder="Search" onchange="ons.notification.alert('Searched for: ' + this.value)"
|
277
|
|
- style="width: 96%; margin: 6px auto 6px auto;"></ons-search-input>
|
278
|
|
- </p>
|
279
|
|
- </div-->
|
280
|
|
-
|
281
|
|
- <ons-card id="list">
|
282
|
|
- <script type="text/javascript" src="js/renglones.js"></script>
|
283
|
|
- </ons-card>
|
284
|
|
-
|
285
|
|
- <style>
|
286
|
|
- .intro {
|
287
|
|
- text-align: center;
|
288
|
|
- padding: 20px;
|
289
|
|
- margin-top: 30px;
|
290
|
|
- }
|
291
|
|
-
|
292
|
|
- ons-card {
|
293
|
|
- cursor: pointer;
|
294
|
|
- color: #333;
|
295
|
|
- }
|
296
|
|
-
|
297
|
|
- .card__title,
|
298
|
|
- .card--material__title {
|
299
|
|
- font-size: 15px;
|
300
|
|
- }
|
301
|
|
- </style>
|
302
|
|
- </ons-page>
|
303
|
|
-
|
304
|
|
- <!--script>
|
305
|
|
- ons.getScriptPage().onInit = function () {
|
306
|
|
- this.querySelector('ons-toolbar div.center').textContent = this.data.title;
|
307
|
|
- var createArtesania = function (Artesania) {
|
308
|
|
- return ons.createElement(`
|
309
|
|
- <ons-list-item expandable tappable>
|
310
|
|
- <div class="center" >${Artesania.name}</div>
|
311
|
|
- <div class="expandable-content"> -Artesanos que trabajan con ${Artesania.name}- <br><br> Luis Lao | Naguabo
|
312
|
|
- <br> <a id='home.html'>Jorge Rivera | Naguabo</a> </div>
|
313
|
|
- </ons-list-item>` );
|
314
|
|
- document.getElementById('artesania-list').appendChild(createArtesania(getArtesania())); };
|
315
|
|
- </script-->
|
316
|
|
-
|
317
|
|
-
|
318
|
|
- </template>
|
319
|
|
-
|
320
|
|
- <template id="ferias.html">
|
321
|
|
- <ons-page id="ferias">
|
322
|
|
-
|
323
|
|
- <div id = "caleandar" class = "calendar" style="margin-top: 50px;">
|
324
|
|
- <script type="text/javascript" src="calendar_files/js/caleandar.js"></script>
|
325
|
|
- <script type="text/javascript" src="calendar_files/js/events.js"></script>
|
326
|
|
- </div>
|
327
|
|
- </ons-page>
|
328
|
|
- </template>
|
329
|
|
-
|
330
|
|
- <template id="instituto.html">
|
331
|
|
- <ons-page id="instituto">
|
332
|
|
- <p style="text-align: center;">
|
333
|
|
-
|
334
|
|
-
|
335
|
|
- <h1>Instituto de Cultura Puertorriqueña</h1>
|
336
|
|
- <h3>Ven, descubre lo que nuestra riqueza cultural puertorriqueña tiene para tí.<br> Disfrútala, es tu identidad.
|
337
|
|
- </h3>
|
338
|
|
-
|
339
|
|
- <body>
|
340
|
|
- <br>
|
341
|
|
- El Instituto de Cultura Puertorriqueña (ICP) tiene como misión investigar, conservar, promover y divulgar la cultura puertorriqueña en su diversidad y complejidad. Con la memoria y la promesa de la cultura, los distintos niveles, sectores, edades e intereses de la comunidad crean el conjunto de modos de vida, costumbres y manifestaciones artísticas que nos identifica como país. El ICP existe para preservar y divulgar estos saberes, difundir internacionalmente nuestro talento y enriquecer el amor a lo propio.
|
342
|
|
- <br><br>
|
343
|
|
- Nuestras tradiciones no son rígidos objetos de museo, sino actividades vivas en constante renovación y reapropiación, según van también desarrollándose nuevas tradiciones. El respeto a la diversidad, a lo híbrido, a lo apropiado y a lo replanteado también son parte esencial de esta institución que busca activamente la colaboración de todos en un quehacer que debe ser siempre compartido de la mano con su ingente diversidad.
|
344
|
|
- <br><br>
|
345
|
|
- Prof. Carlos R. Ruiz Cortés<br>
|
346
|
|
- Director Ejecutivo<br>
|
347
|
|
- Instituto de Cultura Puertorriqueña<br>
|
348
|
|
- <br><br>
|
349
|
|
- </body>
|
350
|
|
-
|
351
|
|
-
|
352
|
|
- Visita nuestra <a href="https://www.icp.pr.gov/">Página Web</a> o síguenos en nuestras redes sociales: <br>
|
353
|
|
- <a href="https://twitter.com/icppr"><img src="img/twitter.png" alt="Twitter" style="width:35px;height:35px;border:0;">
|
354
|
|
- </a>
|
355
|
|
- <a href="https://facebook.com/icppr"><img src="img/facebook.png" alt="Facebook" style="width:35px;height:35px;border:0;">
|
356
|
|
- </a>
|
357
|
|
- <a href="https://youtube.com/user/icppr"><img src="img/youtube.png" alt="Youtube" style="width:35px;height:35px;border:0;">
|
358
|
|
- </a>
|
359
|
|
- <a href="https://instagram.com/icppr"><img src="img/instagram.png" alt="Instagram" style="width:35px;height:35px;border:0;">
|
360
|
|
- </a>
|
361
|
|
-
|
362
|
|
- </p>
|
363
|
|
- </ons-page>
|
364
|
|
- </template>
|
365
|
|
-
|
366
|
|
- <script src="js/load.js"></script>
|
367
|
|
-
|
368
|
|
- <script type="text/javascript" src="cordova.js"></script>
|
369
|
|
- <script type="text/javascript" src="js/index.js"></script>
|
370
|
|
- </body>
|
371
|
|
-</html>
|