Skip to content

Commit

Permalink
Add test file
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbloom committed Oct 1, 2013
1 parent 1db0812 commit 9d554c5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions tests/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<head>
<style>
.pace-progress {
position: absolute;
top: 0;
left: 0;
height: 3px;
background-color: #FFC01F;
}
.pace-inactive {
display: none;
}
</style>

<script>
paceOptions = {
elements: false,
restartOnRequestAfter: false
};
</script>
<script src="pace.js"></script>
<script>
function load(time){
var x = new XMLHttpRequest()
x.open('GET', "http://localhost:5646/walter/" + time, true);
x.send();
};

load(20);
load(100);
load(500);
load(2000);
load(3000);

setTimeout(function(){
load(3100);
}, 4000);

</script>
</head>
<body></body>

0 comments on commit 9d554c5

Please sign in to comment.