-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
46 lines (43 loc) · 1.32 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
<!DOCTYPE html>
<html>
<head>
<link href="css/mdm-progress-bar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/mdm-animation-heartbeat.js"></script>
<script type="text/javascript" src="js/mdm-image-viewport.js"></script>
<script type="text/javascript" src="js/mdm-progress-bar.js"></script>
<script type="text/javascript" src="js/mdm-animation-launcher.js"></script>
</head>
<body>
<div id="container" style="width: 414px;">
<div id="animation">
<img src="" />
<div id="progress-bar"></div>
</div>
</div>
<script type="text/javascript">
var fileset = [];
(function ()
{
function pad(num, size)
{
var s = num + "";
while (s.length < size)
{
s = "0" + s;
}
return s;
}
for (var i = 1; i <= 24; i++)
{
fileset.push("sequence/" + pad(i, 2) + ".jpg");
}
})();
anim = $('#animation').MDMImageViewport(fileset);
$('#progress-bar').MDMProgressBar(anim.data('maxImages'));
$.MDMAnimationHeartbeat(anim.data('maxImages'));
$('#animation img').MDMAnimationLauncher();
</script>
</body>
</html>