aboutsummaryrefslogtreecommitdiff
path: root/examples/index.html
diff options
context:
space:
mode:
authorMarak Squires <[email protected]>2011-12-28 03:45:01 -0800
committerMarak Squires <[email protected]>2011-12-28 03:45:01 -0800
commit3ee94bb7ec0fbfe46c1bffac2e0658d103e03e4f (patch)
tree535f415dc893e2a0bed430ce45bab4c9bb28e25b /examples/index.html
parentaf47db9be83e285d0728447dbd8d8813cf58fd72 (diff)
parent84ab59342f333bc33a992ec5ca37d8716295a536 (diff)
downloadfaker-3ee94bb7ec0fbfe46c1bffac2e0658d103e03e4f.tar.xz
faker-3ee94bb7ec0fbfe46c1bffac2e0658d103e03e4f.zip
Merge pull request #14 from aratak/trailing_spaces
[dist] Code cleanup
Diffstat (limited to 'examples/index.html')
-rw-r--r--examples/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/index.html b/examples/index.html
index cd622a4f..c46516fc 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -34,17 +34,17 @@
}
$(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++){
@@ -55,14 +55,14 @@
}, 10);
});
-
+
});
</script>
</head>
<body>
<h1>Faker.js - generate massive amounts of fake data in Node.js and the browser</h1>
- <a href="http://github.com/marak/Faker.js/"><img style="position:absolute; z-index:10; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub" /></a>
+ <a href="http://github.com/marak/Faker.js/"><img style="position:absolute; z-index:10; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub" /></a>
<input id = "generate" type = "button" value = "generate one random card as HTML" />
<input id = "generateSet" type = "button" value = "generate an assosative array of random cards as JSON" />
card count : <input id = "cardCount" type = "text" size = "3" value = "5" /><br/><br/>