Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Commit

Permalink
Updated demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
websanova committed Apr 5, 2014
1 parent d59ad45 commit cefb989
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions index.html
Expand Up @@ -57,17 +57,17 @@ <h3>Clear After 70 Percent Scratched</h3>
<script type="text/javascript" src="./wScratchPad.min.js"></script>
<script type="text/javascript">
$('#demo1').wScratchPad({
bg: './images/scratch-to-win.png',
fg: './images/slide1.jpg',
bg: './images/winner.png',
fg: './images/scratch-to-win.png',
'cursor': 'url("./cursors/coin.png") 5 5, default',
scratchMove: function (e, percent) {
$('#demo1-percent').html(percent);
}
});

$('#demo2').wScratchPad({
bg: './images/scratch-to-win.png',
fg: './images/slide1.jpg',
bg: './images/winner.png',
fg: './images/scratch-to-win.png',
'cursor': 'url("./cursors/coin.png") 5 5, default',
scratchMove: function (e, percent) {
$('#demo2-percent').html(percent);
Expand Down
4 changes: 2 additions & 2 deletions test/dev.html
Expand Up @@ -42,7 +42,7 @@

// Test 2
$('#demo2').wScratchPad({
bg: '../images/scratch-to-win.png',
bg: '../images/slide1.jpg',
fg: '#ff0000',
scratchMove: function (e, percent) {
console.log(percent);
Expand All @@ -62,7 +62,7 @@
}
});
$('#demo3').wScratchPad('bg', '../images/winner.png');
$('#demo3').wScratchPad('fg', '../images/slide3.jpg');
$('#demo3').wScratchPad('fg', '../images/scratch-to-win.png');
$('#demo3').wScratchPad('size', 10);
</script>

Expand Down

0 comments on commit cefb989

Please sign in to comment.