Skip to content
Browse files

Improved book demo and documentation

  • Loading branch information...
1 parent 29b4c1e commit 0e976257f457530e39bf13688502c524c0d167e4 Matt Lantz committed
Showing with 10 additions and 5 deletions.
  1. +3 −3 docs/demos/caterpillar.html
  2. +7 −2 docs/demos/fx/book.html
View
6 docs/demos/caterpillar.html
@@ -189,8 +189,8 @@ <h1 class="seo">AliceJS Demos</h1>
shadow: true, //true || false
speed: '500ms', //select a speed
randomize: '15%' //string of percetange (impacts the speed of the page turns)
- binding: "left", //left || right || top || bottom
- wrap: true, //true || false
+ binding: "top", //left || right || top || bottom
+ wrap: false, //true || false
pageBackground: '#333' //string (basic css applied to the page backgrounds)
});
@@ -264,7 +264,7 @@ <h1 style="color: #fff; text-align: center;">Alice in Wonderland</h1>
shadow: true, //true || false
speed: '500ms', //select a speed
randomize: '15%' //string of percetange (impacts the speed of the page turns)
- binding: "left", //center || middle
+ binding: "center", //center || middle
wrap: true //true || false
});
View
9 docs/demos/fx/book.html
@@ -170,7 +170,7 @@ <h1 id="scoreBox" style="font-size: 6em;"></h1>
<img src="../../images/rabbit.png" style="width: 250px;" />
</div>
</div>
- <button onclick="window.location = window.location;">Play Again!</button>
+ <button onclick="mybook.nxtPage(); resetScore();">Play Again!</button>
</div>
</div>
@@ -190,12 +190,17 @@ <h1 id="scoreBox" style="font-size: 6em;"></h1>
document.getElementById("scoreBox").innerHTML = _score + '/5';
}
+ function resetScore(){
+ _score = 0;
+ }
+
var mybook = alicejs.notebook({
elems: "book",
speed: 1000,
binding: "left",
randomize: '5%',
- pageBackground: '#555'
+ pageBackground: '#555',
+ wrap: true
});
// Google Analytics

0 comments on commit 0e97625

Please sign in to comment.
Something went wrong with that request. Please try again.