Skip to content

Commit 9d554c5

Browse files
committed
Add test file
1 parent 1db0812 commit 9d554c5

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

tests/demo.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<head>
2+
<style>
3+
.pace-progress {
4+
position: absolute;
5+
top: 0;
6+
left: 0;
7+
height: 3px;
8+
background-color: #FFC01F;
9+
}
10+
.pace-inactive {
11+
display: none;
12+
}
13+
</style>
14+
15+
<script>
16+
paceOptions = {
17+
elements: false,
18+
restartOnRequestAfter: false
19+
};
20+
</script>
21+
<script src="pace.js"></script>
22+
<script>
23+
function load(time){
24+
var x = new XMLHttpRequest()
25+
x.open('GET', "http://localhost:5646/walter/" + time, true);
26+
x.send();
27+
};
28+
29+
load(20);
30+
load(100);
31+
load(500);
32+
load(2000);
33+
load(3000);
34+
35+
setTimeout(function(){
36+
load(3100);
37+
}, 4000);
38+
39+
</script>
40+
</head>
41+
<body></body>

0 commit comments

Comments
 (0)