summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Egilsson <einar@einaregilsson.com>2012-05-20 19:36:29 +0200
committerEinar Egilsson <einar@einaregilsson.com>2012-05-20 19:36:29 +0200
commit05ed89f96e23c9b6e8bcc712d7abcd4b94aeadda (patch)
tree4f2ae6efae5d9c0f6b4bfcec66f19c954579ff3d
parentb4ade9ab9a9b2b204a763c2c05b9f103b7d7973f (diff)
Renamed demo.html to index.html
-rw-r--r--index.html (renamed from demo.html)15
1 files changed, 11 insertions, 4 deletions
diff --git a/demo.html b/index.html
index 969c8ac..bdb64b5 100644
--- a/demo.html
+++ b/index.html
@@ -22,7 +22,13 @@
width:100px;
margin:8px auto;
}
+
+ h1 {
+ font-size:60px;
+ text-align:center;
+ }
code {
+ background-color:#F9FCA2;
border:dotted 1px black;
width:590px;
margin:auto;
@@ -117,12 +123,13 @@ alert('Try clicking the deck now');
</code>
<code id="ex4">//Let's move the deck and setup a discard pile
deck.x -= 50;
-deck.render()
+deck.render();
discardPile = new cards.Deck({faceUp:true});
discardPile.x += 50;
-deck.render();
-discardPile.addCard(deck.topCard());
-discardPile.render();
+deck.render({callback:function() {
+ discardPile.addCard(deck.topCard());
+ discardPile.render();
+});
</code>
<div id="buttons">