-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.htm
65 lines (57 loc) · 2.34 KB
/
index.htm
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>AssetsLoader</title>
<link rel="stylesheet" type="text/css" href="css/index.css" />
<!-- COMMON LIBS -->
<script type="text/javascript" src="js/common/jquery.js"></script>
<script type="text/javascript" src="js/common/underscore.js"></script>
<!-- Assets -->
<script type="text/javascript" src="js/libs/assets.js"></script>
<!-- Animation -->
<script type="text/javascript" src="js/libs/assets.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
var Common = {};
$(document).ready(function() {
Common['Assets'] = new Assets({
"statusHandler": function(message) {
//console.log(message);
},
"progressHandler": function(progress) {
//console.log('progress: ' + progress + '%');
},
"itemHandlers": {
"units": function(units) {
//console.log(units);
console.log("load units");
},
"blocks": function(blocks) {
//console.log(blocks);
console.log("load blocks");
},
"animations": function(animations) {
//console.log(animations);
console.log("load animations");
},
"sounds": function(sounds) {
/*console.log(sounds);
sounds.other['punch.mp3'].play();
sounds.other['laser_canon.mp3'].play();*/
console.log("load sounds");
}
},
"loadAll": function(items) {
console.log("load all");
}
});
});
/* ]]> */
</script>
</head>
<body>
<h1>AssetsLoader:</h1>
<div class="status_block"></div>
</body>
</html>