-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
304 lines (254 loc) · 11.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE HTML>
<html style="height: 100%;" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<!-- Creado con Storyline 360 - http://www.articulate.com -->
<!-- version: 3.14.15225.0 -->
<title>Juego_Ceremnial_y_Protocolo</title>
<style>
body {
background: #ffffff;
overflow: hidden;
}
html, body, table {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
border: 0;
}
table td {
vertical-align: middle;
text-align: center;
}
#nosupport {
background: #f5f5f5;
margin: 50px 65px;
border: 1px solid #d5d5d5;
width: calc(100% - 130px);
height: calc(100% - 100px);
}
p {
font-family: 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
font-size: 12pt;
color: #303030;
}
a {
color: #2D9DDA;
text-decoration: none !important;
}
</style>
<script>
var html5Supported = true;
</script>
<!--[if lte IE 9]><script>html5Supported = false;</script><![endif]-->
<script type="text/javascript">
function routePlayer() {
var settings = {
lmsEnabled: true,
tincanEnabled: false,
aoEnabled: false,
runtimeOrder: [{"type":"html5","url":"story_html5.html"}],
warnOnCommitFail: false
};
var PARAM_WARN_ON_COMMIT = {name: 'warncommit', value: 1},
PARAM_LMS = {name: 'lms', value: 1},
PARAM_TINCAN = {name: 'tincan', value: true},
PARAM_AO = {name: 'aosupport', value: true};
var detection = {
agent: navigator.userAgent,
flashEnabled: function() {
var description, version, flashAX,
plugin = navigator.plugins["Shockwave Flash"];
if (plugin != null) {
description = plugin.description.split(" ");
version = Number(description[description.length - 2]);
return (version >= 10) || isNaN(version);
} else {
try {
flashAX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.10");
return (flashAX != null);
} catch (e) {
}
}
return false;
},
isFlashWaiting: function() {
var html = '',
divFlash = document.getElementById('flashCheck'),
player;
html += '<object width="100px" height="100px" id="player" type="application/x-shockwave-flash">';
html += '<param name="name" value="player" />';
html += '<param name="wmode" value="opaque" />';
html += '<param name="allowScriptAccess" value="always" />';
html += '</object>';
divFlash.innerHTML = html;
player = document.getElementById('player');
return player != null && player.getBoundingClientRect().width > 0;
},
html5Enabled: function() {
return html5Supported;
},
ampEnabled: function() {
return ((this.isIOS() && this.isIPad()) || this.isAndroid());
},
isIOS: function() {
return (this.agent.indexOf("AppleWebKit/") > -1 && this.agent.indexOf("Mobile/") > -1)
},
isAndroid: function() {
return (this.agent.indexOf("Android") > -1);
},
isIPad: function() {
return (this.agent.indexOf("iPad") > -1);
},
isEdge: function() {
var hasGlCapability = (function() {
var canv = document.createElement('canvas'),
gl = canv.getContext('webgl') || canv.getContext('experimental-webgl');
canv = null;
return gl != null;
}());
return window.MSBlobBuilder != null && window.msCrypto == null && hasGlCapability;
}
};
var router = {
init: function() {
var i, url, launchInfo,
redirected = false,
order = settings.runtimeOrder,
launchMap = {
flash: {
isEnabled: 'flashEnabled',
getParams: 'getFlashParams',
delim: '?'
},
html5: {
isEnabled: 'html5Enabled',
getParams: 'getHtml5Params',
delim: '?'
},
amp: {
isEnabled: 'ampEnabled',
getParams: 'getAmpParams',
delim: '#'
}
};
if (document.location.search.toLowerCase().indexOf('forceflash') != -1) {
this.moveFlashToStartOfOrder(order);
}
for (i = 0; i < order.length; i++) {
launchInfo = launchMap[order[i].type];
url = order[i].url;
if (detection[launchInfo.isEnabled]()) {
this.redirect(url, this[launchInfo.getParams](), launchInfo.delim);
redirected = true;
break;
}
}
if (!redirected) {
if (
detection.isEdge() &&
order[0].type === 'flash' &&
detection.isFlashWaiting()
) {
launchInfo = launchMap[order[0].type];
url = order[0].url;
this.redirect(url, this[launchInfo.getParams](), launchInfo.delim);
} else {
document.getElementById('nosupport').style.visibility = 'visible';
}
}
},
moveFlashToStartOfOrder: function (order) {
var i,
flashIndex = -1;
for (i = 0; i < order.length; i++) {
if (order[i].type == "flash") {
flashIndex = i;
break;
}
}
if (flashIndex != -1) {
order.splice(0, 0, order.splice(flashIndex, 1)[0]);
}
},
getQueryString: function (params) {
params = params || [];
var i,
queryString = document.location.search.substr(1),
paramArr = queryString.length > 0 ? queryString.split('&') : [];
for (i = 0; i < params.length; i++) {
paramArr.push([params[i].name, params[i].value].join('='));
}
return paramArr.join('&');
},
formatUrl: function (url, params, delim) {
delim = delim || '?';
var queryString = this.getQueryString(params);
if (queryString != null && queryString.length > 0) {
return [url, queryString].join(delim);
}
return url;
},
redirect: function (url, params, delim) {
window.location.replace(this.formatUrl(url, params, delim));
},
getFlashParams: function () {
return [];
},
getHtml5Params: function () {
var params = [];
if (settings.tincanEnabled) {
params.push(PARAM_TINCAN);
} else if (settings.lmsEnabled) {
params.push(PARAM_LMS);
if (settings.warnOnCommitFail) {
params.push(PARAM_WARN_ON_COMMIT);
}
}
return params;
},
getAmpParams: function () {
var tincanProto = settings.aoEnabled || settings.tincanEnabled,
params = [];
// build AMP params
if (tincanProto) {
params.push(PARAM_TINCAN);
if (settings.aoEnabled) {
params.push(PARAM_AO);
}
}
return params;
}
};
router.init();
};
</script>
</head>
<body onload="routePlayer()" style="height: 100%;">
<div id="nosupport" style="visibility: hidden;">
<table>
<tr>
<td>
<p>
<svg xmlns="http://www.w3.org/2000/svg" width="90.2" height="74.9" viewBox="0 0 90 75" version="1.1">
<g transform="scale(.1)">
<path d="m409 7c54-25 106 20 130 66 106 170 213 340 320 510 17 28 32 63 19 96-14 36-55 51-91 51-224 1-448 0-672 0-35 1-76-3-100-33-26-32-15-77 5-108 107-173 216-344 324-517 16-26 35-53 65-65z"
fill="#4c4c4c"></path>
<path d="m419 57c26-20 55 4 68 27 109 174 218 348 328 522 9 17 23 35 17 55-11 20-36 18-55 19-224 0-447 0-670 0-20-1-46 1-57-19-5-18 6-34 14-48 109-174 218-348 327-522 9-12 17-25 28-34z"
fill="#f5f5f5"></path>
<path d="m429 179c25-12 58 8 56 35-1 81-5 161-10 242 2 32-49 39-57 9-7-73-6-146-11-219-1-24-4-56 22-67zM430 539 430 539 430 539c45-24 80 53 32 72-45 24-80-53-32-72z"
fill="#4c4c4c"></path>
</g>
</svg>
</p>
<p>No se puede reproducir este curso porque el navegador no es compatible con HTML5.</p>
<p><a href=""></a></p>
</td>
</tr>
</table>
</div>
<div id="flashCheck" style="visibility: hidden" >
</div>
</body>
</html>