Skip to content

Commit

Permalink
Make demo page even easier to test with
Browse files Browse the repository at this point in the history
  • Loading branch information
adamschwartz committed Sep 5, 2014
1 parent 44aa8ad commit 01bc53b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/demo.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<head>
<link rel="stylesheet" href="../themes/pace-theme-barber-shop.css" />
<link rel="stylesheet" href="../themes/blue/pace-theme-center-simple.css" />

<script>
paceOptions = {
Expand Down Expand Up @@ -35,8 +35,10 @@
<input id="range" type="range" min="0" max="100">
<script>
range.addEventListener('input', function(){
var progress = document.querySelector('.pace-progress');
progress.setAttribute('data-progress-text', range.value + '%');
progress.setAttribute('style', '-webkit-transform: translate3d(' + range.value + '%, 0px, 0px)');
document.querySelector('.pace').classList.remove('pace-inactive');
document.querySelector('.pace').classList.add('pace-active');

document.querySelector('.pace-progress').setAttribute('data-progress-text', range.value + '%');
document.querySelector('.pace-progress').setAttribute('style', '-webkit-transform: translate3d(' + range.value + '%, 0px, 0px)');
});
</script>

0 comments on commit 01bc53b

Please sign in to comment.