/
index-1080-1920.js
51 lines (41 loc) · 1.48 KB
/
index-1080-1920.js
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
/* Grids On The Fly */
$(document).ready(function() {
/* This needs to grows to become the grid system placement */
/* The exercise here is that we want to load the sub elements and internal
iframe pages are ready. */
register("/main/footer", "cabecalho", "./typing/index.html", iframeTemplate);
register("/main/lado", "sidebar", "./twitter/index-340-900.html", iframeTemplate);
register("/main/middle", "meio", "./abas/index.html", iframeTemplate);
register("/main/topmiddle", "mid", "./destaques/index.html", iframeTemplate);
register("/main/bottomsection", "grade", "./grade-ical/index.html", iframeTemplate);
compile();
setTimeout('startEngine()',5000);
});
function startEngine() {
s1();
setTimeout("cicleMidia()",TEMPO_INICIO_MIDIA);
}
function cicleMidia() {
setTimeout( function () {
var doc = $("#main #middle #abas").get();
doc = document.getElementById("meio").contentDocument;
cc.send( doc.getElementById("galeria").contentDocument, "container", "rotate");
cicleMidia();
}, TEMPO_REFRESH_MIDIA);
}
function s1() {
if(document.location.toString().indexOf("mode")>-1) {
var param = document.location.toString().split("mode=");
if(param[1]=="tv") {
document.getElementById("viewport").style.width="1080";
document.getElementById("viewport").style.height="1920";
animate();
}
}
}
function animate() {
tv.setup();
tv.add($('#animation li'));
tv.play();
setTimeout("animate()",TEMPO_REFRESH);
}