Here’s one. The javascript functions I’d created for each object (e.g. playReviews function) all seem to be in this one which seems quite strange, would have expected them to be separate.
// HYPE.documents["Review"]
(function() {
(function k() {
function l(a, b, d) {
var c=!1;
null == window[a] && (null == window[b] ? (window[b] = [], window[b].push(k), a = document.getElementsByTagName("head")[0], b = document.createElement("script"), c = h, false==!0 && (c = ""), b.type = "text/javascript", b.src = c + "/" + d, a.appendChild(b)) : window[b].push(k), c=!0);
return c
}
var h = "Review.hyperesources", c = "Review", e = "review_hype_container";
if (false==!1)
try {
for (var f = document.getElementsByTagName("script"),
a = 0; a < f.length; a++) {
var b = f[a].src;
if (null != b&&-1 != b.indexOf("review_hype_generated_script.js")) {
h = b.substr(0, b.lastIndexOf("/"));
break
}
}
} catch (n) {}
if (false==!1 && (a = navigator.userAgent.match(/MSIE (\d+.\d+)/), a = parseFloat(a && a[1]) || null, a = l("HYPE_530", "HYPE_dtl_530", !0 == (null != a && 10 > a || false==!0) ? "HYPE-530.full.min.js" : "HYPE-530.thin.min.js"), false==!0 && (a = a || l("HYPE_w_530", "HYPE_wdtl_530", "HYPE-530.waypoints.min.js")), a))
return;
f = window.HYPE.documents;
if (null != f[c]) {
b = 1;
a = c;
do
c = "" + a + "-" + b++;
while (null != f[c]);
for (var d = document.getElementsByTagName("div"), b=!1, a = 0; a < d.length; a++)
if (d[a].id == e && null == d[a].getAttribute("HYP_dn")) {
var b = 1, g = e;
do
e = "" + g + "-" + b++;
while (null != document.getElementById(e));
d[a].id = e;
b=!0;
break
}
if (!1 == b)
return
}
b = [];
b = [{
name: "playSearchDishes",
source: "function(hypeDocument, element, event) {var hypeApp = HYPE.documents['Search Dishes'];\nhypeApp.goToTimeInTimelineNamed(0, 'Main Timeline');\nhypeApp.continueTimelineNamed('Main Timeline');\n}",
identifier: "104"
}, {
name: "playDishes",
source: "function(hypeDocument, element, event) {var hypeApp = HYPE.documents['Dishes'];\nhypeApp.goToTimeInTimelineNamed(0, 'Main Timeline');\nhypeApp.continueTimelineNamed('Main Timeline');\n}",
identifier: "105"
}, {
name: "playPhotos",
source: "function(hypeDocument, element, event) {var hypeApp = HYPE.documents['Photos'];\nhypeApp.goToTimeInTimelineNamed(0, 'Main Timeline');\nhypeApp.continueTimelineNamed('Main Timeline');\n}",
identifier: "106"
}, {
name: "playEnterMeals",
source: "function(hypeDocument, element, event) {var hypeApp = HYPE.documents['Enter meals'];\nhypeApp.goToTimeInTimelineNamed(0, 'Main Timeline');\nhypeApp.continueTimelineNamed('Main Timeline');\n}",
identifier: "107"
}, {
name: "playMeal",
source: "function(hypeDocument, element, event) {var hypeApp = HYPE.documents['Meal'];\nhypeApp.goToTimeInTimelineNamed(0, 'Main Timeline');\nhypeApp.continueTimelineNamed('Main Timeline');\n}",
identifier: "108"
}, {
name: "playReview",
source: "function(hypeDocument, element, event) {var hypeApp = HYPE.documents['Review'];\nhypeApp.goToTimeInTimelineNamed(0, 'Main Timeline');\nhypeApp.continueTimelineNamed('Main Timeline');\n}",
identifier: "109"
}, {
name: "playCalendar",
source: "function(hypeDocument, element, event) {var hypeApp = HYPE.documents['Calendar'];\nhypeApp.goToTimeInTimelineNamed(0, 'Main Timeline');\nhypeApp.continueTimelineNamed('Main Timeline');\n}",
identifier: "110"
}
];
d = {};
g = {};
for (a = 0; a < b.length; a++)
try {
g[b[a].identifier] = b[a].name, d[b[a].name] = eval("(function(){return " + b[a].source + "})();")
} catch (m) {
window.console && window.console.log(m),
d[b[a].name] = function() {}
}
a = new HYPE_530(c, e, {
"0": {
p: 1,
n: "iphone6-review2.jpg",
g: "134",
o: true,
t: "@1x"
},
"1": {
p: 1,
n: "iphone6-review2_2x.jpg",
g: "134",
o: true,
t: "@2x"
}
}, h, [], d, [{
n: "Review",
o: "1",
X: [0, 1]
}
], [{
A: {
a: [{
p: 4,
h: "105"
}
]
},
o: "176",
p: "600px",
x: 0,
cA: false,
Z: 500,
Y: 300,
c: "#3C3C3C",
L: [],
bY: 1,
d: 300,
U: {},
T: {
kTimelineDefaultIdentifier: {
i: "kTimelineDefaultIdentifier",
n: "Main Timeline",
z: 2,
b: [],
a: [{
f: "c",
y: 0,
z: 2,
i: "a",
e: 37,
s: 300,
o: "189"
}, {
f: "c",
y: 0,
z: 2,
i: "b",
e: 84,
s: 85,
o: "189"
}, {
f: "c",
y: 0,
z: 2,
i: "a",
e: 10,
s: - 289,
o: "188"
}, {
f: "c",
p: 2,
y: 2,
z: 0,
i: "ActionHandler",
e: {
a: []
},
s: {
a: [{}
]
},
o: "kTimelineDefaultIdentifier"
}, {
f: "c",
p: 2,
y: 2,
z: 0,
i: "ActionHandler",
s: {
a: []
},
o: "kTimelineDefaultIdentifier"
}, {
y: 2,
i: "b",
s: 84,
z: 0,
o: "189",
f: "c"
}, {
y: 2,
i: "a",
s: 37,
z: 0,
o: "189",
f: "c"
}, {
y: 2,
i: "a",
s: 10,
z: 0,
o: "188",
f: "c"
}
],
f: 30
}
},
bZ: 180,
O: ["188", "189"],
v: {
"188": {
G: "#FFFFFF",
aU: 8,
c: 264,
aV: 8,
d: 33,
r: "inline",
s: "Helvetica,Arial,Sans-Serif",
t: 12,
Z: "break-word",
w: "Scroll left and right through reviews, and scroll down to see more details of the dish.
",
j: "absolute",
x: "visible",
k: "div",
y: "preserve",
z: 6,
aS: 8,
aT: 8,
a: - 289,
F: "justify",
b: 20
},
"189": {
w: "",
h: "134",
p: "no-repeat",
x: "visible",
a: 300,
q: "100% 100%",
b: 85,
j: "absolute",
r: "inline",
c: 225,
k: "div",
z: 5,
d: 400
}
}
}, {
A: {
a: [{
p: 4,
h: "109"
}
]
},
o: "3",
p: "600px",
x: 1,
cA: false,
Z: 416,
Y: 700,
c: "#3C3C3C",
L: [],
bY: 1,
d: 700,
U: {},
T: {
kTimelineDefaultIdentifier: {
i: "kTimelineDefaultIdentifier",
n: "Main Timeline",
z: 2,
b: [],
a: [{
f: "c",
y: 0,
z: 2,
i: "b",
e: 147,
s: 408,
o: "191"
}, {
f: "c",
y: 0,
z: 2,
i: "a",
e: 80,
s: 80,
o: "191"
}, {
f: "c",
y: 0,
z: 2,
i: "a",
e: 424,
s: 700,
o: "190"
}, {
y: 2,
i: "a",
s: 80,
z: 0,
o: "191",
f: "c"
}, {
y: 2,
i: "b",
s: 147,
z: 0,
o: "191",
f: "c"
}, {
y: 2,
i: "a",
s: 424,
z: 0,
o: "190",
f: "c"
}
],
f: 30
}
},
bZ: 180,
O: ["191", "190"],
v: {
"190": {
h: "134",
p: "no-repeat",
x: "visible",
a: 700,
q: "100% 100%",
b: 8,
j: "absolute",
r: "inline",
c: 224.88755622188904,
k: "div",
z: 3,
d: 400
},
"191": {
G: "#FFFFFF",
aU: 8,
c: 229,
H: "none",
aV: 8,
d: 36,
r: "inline",
s: "Helvetica,Arial,Sans-Serif",
t: 16,
Z: "break-word",
w: "Scroll left and right through reviews, and scroll down to see more details of the dish.
",
j: "absolute",
x: "visible",
k: "div",
y: "preserve",
z: 4,
aS: 8,
aT: 8,
a: 80,
F: "justify",
b: 408
}
}
}
], {}, g, {}, null, false, true, - 1, true, true, false, true);
f[c] = a.API;
document.getElementById(e).setAttribute("HYP_dn",
c);
a.z_o(this.body)
})();
})();