-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (49 loc) · 1.07 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
47
48
49
50
51
52
53
54
55
56
57
<html lang="en">
<head>
<meta charset="utf-8">
<title>Preloader</title>
<meta name="description" content="Preloader">
<meta name="author" content="">
</head>
<body>
<h1 id="log">0/0</h1>
<script src="loader.js"></script>
<script>
var testManifest = [
{
id: "howler",
src: "assets/howler.min.js"
},
{
id: "dependencyTest",
src: "assets/script.js",
dependency: ["howler"]
},
{
id: "testStyle",
src: "assets/style.css"
},
{
id: "testImage",
src: "assets/test.jpg"
},
{
id: "testSound",
src: "assets/test.mp3"
},
{
id: "testFont",
src: "assets/urdu.woff2"
}
];
var preloader = new Preloader(testManifest, function (e, loaded, total, f) {
if (e === "complete")
console.log(e, loaded, total, f);
else {
document.getElementById("log").innerHTML = "Downloading progress: " + loaded + "/" + total;
}
});
preloader.Load();
</script>
</body>
</html>