-
Notifications
You must be signed in to change notification settings - Fork 0
/
confirmanchor.html
134 lines (134 loc) · 7.33 KB
/
confirmanchor.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
<!DOCTYPE html>
<html>
<head>
<link href="./img/favicon.png" rel="shortcut icon"/>
<meta charset="utf-8"/>
<meta content="width=1024, maximum-scale=1.0" name="viewport"/>
<link href="./css/confirmAnchor.css" rel="stylesheet" type="text/css"/>
<meta content="Launchpad by Anima" name="author">
</meta>
</head>
<body style="margin: 0;
background: rgba(255, 255, 255, 1.0);">
<input id="anPageName" name="page" type="hidden" value="confirmanchor"/>
<div class="confirmanchor">
<div style="width: 1024px; height: 100%; position:relative; margin:auto;">
<div class="group2">
<div class="rectangle">
</div>
<img anima-src="./img/confirm-anchor-bitmap.png" class="bitmap" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src="./img/anchor-rectangle-3.png" class="rectangle1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src="./img/[email protected]" class="triangle" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src="./img/[email protected]" class="triangle1" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src="./img/[email protected]" class="triangle2" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src="./img/[email protected]" class="triangle3" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src="./img/[email protected]" class="triangle4" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src="./img/[email protected]" class="triangle5" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src="./img/[email protected]" class="triangle6" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<img anima-src="./img/[email protected]" class="triangle7" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div class="rectangle2">
</div>
<div class="taponplaytostart">
Tap on PLAY to start!
</div>
<div class="group">
<a href="anchor.html">
<div class="confirmanchorreset a-ag1">
<img anima-src="./img/[email protected]" class="oval" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div class="reset">
Reset
</div>
</div>
</a>
<a href="menu.html">
<div class="confirmanchorplay a-ag2">
<img anima-src="./img/confirm-anchor-oval-1.png" class="oval" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
<div class="play">
PLAY
</div>
<img anima-src="./img/[email protected]" class="triangle8" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="/>
</div>
</a>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script>
anima_isHidden = function(e) {
if (!(e instanceof HTMLElement)) return !1;
if (getComputedStyle(e).display == "none") return !0; else if (e.parentNode && anima_isHidden(e.parentNode)) return !0;
return !1;
};
anima_loadAsyncSrcForTag = function(tag) {
var elements = document.getElementsByTagName(tag);
var toLoad = [];
for (var i = 0; i < elements.length; i++) {
var e = elements[i];
var src = e.getAttribute("src");
var loaded = (src != undefined && src.length > 0 && src != 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
if (loaded) continue;
var asyncSrc = e.getAttribute("anima-src");
if (asyncSrc == undefined || asyncSrc.length == 0) continue;
if (anima_isHidden(e)) continue;
toLoad.push(e);
}
toLoad.sort(function(a, b) {
return anima_getTop(a) - anima_getTop(b);
});
for (var i = 0; i < toLoad.length; i++) {
var e = toLoad[i];
var asyncSrc = e.getAttribute("anima-src");
e.setAttribute("src", asyncSrc);
}
};
anima_pauseHiddenVideos = function(tag) {
var elements = document.getElementsByTagName("video");
for (var i = 0; i < elements.length; i++) {
var e = elements[i];
var isPlaying = !!(e.currentTime > 0 && !e.paused && !e.ended && e.readyState > 2);
var isHidden = anima_isHidden(e);
if (!isPlaying && !isHidden && e.getAttribute("autoplay") == "autoplay") {
e.play();
} else if (isPlaying && isHidden) {
e.pause();
}
}
};
anima_loadAsyncSrc = function(tag) {
anima_loadAsyncSrcForTag("img");
anima_loadAsyncSrcForTag("iframe");
anima_loadAsyncSrcForTag("video");
anima_pauseHiddenVideos();
};
var anima_getTop = function(e) {
var top = 0;
do {
top += e.offsetTop || 0;
e = e.offsetParent;
} while (e);
return top;
};
anima_loadAsyncSrc();
anima_old_onResize = window.onresize;
anima_new_onResize = undefined;
anima_updateOnResize = function() {
if (anima_new_onResize == undefined || window.onresize != anima_new_onResize) {
anima_new_onResize = function(x) {
if (anima_old_onResize != undefined) anima_old_onResize(x);
anima_loadAsyncSrc();
};
window.onresize = anima_new_onResize;
setTimeout(function() {
anima_updateOnResize();
}, 3000);
}
};
anima_updateOnResize();
setTimeout(function() {
anima_loadAsyncSrc();
}, 200);
</script>
<!-- End of Scripts -->
</body>
</html>