-
Notifications
You must be signed in to change notification settings - Fork 59
/
Show.html
76 lines (52 loc) · 1.41 KB
/
Show.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JXAnimate Show </title>
<script src="modernizr-1.6.min.js"></script>
<script src="./js/jx/jx.core.js"></script>
<script src="./js/jx/jx.base.js"></script>
<script src="./js/jxanimate.js"></script>
<script src="./js/jxanimate.effects.js"></script>
<script src="./js/jxanimate.audio.js"></script>
<script type="text/javascript">
window.addEventListener('load', eventWindowLoaded, false);
function eventWindowLoaded() {
canvasApp();
}
function canvasApp() {
//application scope defination
var loadCount,
itemsToLoad,
$processText,
JXAudio = JXAnimate.Audio,
sounds,
var_end;
//Waiting all the asset loaded and update the load screen
function itemLoaded(event) {
loadCount++;
updateProcess(loadCount,itemsToLoad);
}
function initApp() {
$processText = document.getElementById("processText")
JXAudio.init('sounds');
JXAudio.addListenerForLoadProgressUpdated(itemLoaded);
JXAudio.preload(sounds);
}
initApp();
function updateProcess(cur,total){
$processText.innerHTML = cur+'/'+total;
}
}
</script>
</head>
<body>
<div id="wapper" style="position: absolute; top: 50px; left: 50px;">
<div id="stage">
</div>
<div id="loadScreen">
<label id="processText"></label>
</div>
</div>
</body>
</html>