forked from manrajgrover/microbar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (40 loc) · 1.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body{
margin: 0;
}
</style>
</head>
<body>
<div id="test" style="width: 50%;height: 6em;position: relative;margin: 50px auto 0px auto;background-color: #e5e5e5;line-height: 6em;color: #141414;text-align:center;font-family:'Arial';font-size:25px;"></div>
<script src='microbar.js'></script>
<script>
var b = new microbar({color: 'blue', speed: 2});
var c = new microbar({color: 'red', speed: 2, target: 'test'});
b.moveTo(0);
setTimeout(function() {
b.moveTo(50);
setTimeout(function() {
b.moveTo(80);
setTimeout(function() {
b.moveTo(100);
setTimeout(function() {
c.moveTo(50);
setTimeout(function() {
c.moveTo(80);
setTimeout(function() {
c.moveTo(100);
setTimeout(function(){
//document.getElementById('test').innerHTML += "<b>Content Loaded!</b>";
}, 1000);
}, 1000);
}, 1000);
}, 1000);
}, 1000);
}, 1000);
}, 1000);
</script>
</body>
</html>