From f33ea9b0b196e4e0753101f479381fcd360c7807 Mon Sep 17 00:00:00 2001 From: Marak Squires Date: Sun, 16 May 2010 02:52:11 -0400 Subject: basic demo now works --- demo.html | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/demo.html b/demo.html index 437b8ace..67554a50 100644 --- a/demo.html +++ b/demo.html @@ -33,19 +33,36 @@ } $(document).ready(function(e){ + var card = Faker.Helpers.createCard(); $('#output').html(prettyPrint(card)); + $('#generate').click(function(){ var card = Faker.Helpers.createCard(); $('#output').html(prettyPrint(card)); }); + + $('#generateSet').click(function(){ + + setTimeout(function(){ + var cards = []; + for(var i = 0; i < $('#cardCount').val(); i++){ + var card = Faker.Helpers.createCard(); + cards.push(card); + } + $('#output').html(''); + }, 10); + + }); + }); - - + + + card count :

-- cgit v1.2.3