-
Notifications
You must be signed in to change notification settings - Fork 1
/
preprocesador.html
48 lines (35 loc) · 1.08 KB
/
preprocesador.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
<html>
<head>
<title>HHBA: Preprocess Data from GDocs JSONP for Optimizer</title>
</head>
<body>
<script type="text/javascript" src='javascripts/preprocess.js'></script>
<!-- By Martín Szyszlican on 2012/04/14-->
<!--
offset dentro del grupo para cada personaje
posición del grupo
-->
<script type="text/javascript">
/*order: “2009-10-10”,
character: “frodo”,
group: “rivendel”,
characters[data[d].character] = 1;
groups.push(data[d].group);
*/
data = [
{order: 0, character: "gandalf", group: "mordor"}
, {order: 0, character: "frodo", group: "shire"}
, {order: 0, character: "merry", group: "shire"}
, {order: 1, character: "gandalf", group: "mordor"}
, {order: 2, character: "frodo", group: "isengard"}
, {order: 2, character: "merry", group: "isengard"}
, {order: 3, character: "frodo", group: "shire"}
, {order: 3, character: "merry", group: "shire"}
, {order: 4, character: "gandalf", group: "isengard"}
, {order: 4, character: "frodo", group: "isengard"}
, {order: 4, character: "merry", group: "mordor"}
]
console.log(preprocessData(data));
</script>
</body>
</html>