aboutsummaryrefslogtreecommitdiff
path: root/examples/browser_test.html
diff options
context:
space:
mode:
authorRonen Babayoff <[email protected]>2015-08-23 21:57:46 -0400
committerRonen Babayoff <[email protected]>2015-08-23 21:57:46 -0400
commit66996e280c9fbbbc2e7db376549f568be32ad5cd (patch)
treee93f412c4bceeb7ed0376e26113c9d31522af8b4 /examples/browser_test.html
parentcf0bd70d5fca9c0169414f5d2c16ca32431a3fd9 (diff)
parentd8f8108ac5dbec7e2b7ea9a23dd19aa42255e3fb (diff)
downloadfaker-66996e280c9fbbbc2e7db376549f568be32ad5cd.tar.xz
faker-66996e280c9fbbbc2e7db376549f568be32ad5cd.zip
Merge v3.0.1 into practicalmeteor:faker package branch
Diffstat (limited to 'examples/browser_test.html')
-rw-r--r--examples/browser_test.html40
1 files changed, 0 insertions, 40 deletions
diff --git a/examples/browser_test.html b/examples/browser_test.html
deleted file mode 100644
index 01bd7be2..00000000
--- a/examples/browser_test.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
- <head>
- <script src = "../faker.js" type = "text/javascript"></script>
- <script>
- var card = faker.helpers.createCard();
- if(typeof JSON == 'undefined'){
- document.write('get a real browser that has JSON.stringify and JSON.parse built in <br/>');
- // implement JSON.stringify serialization
- var JSON = {};
- JSON.stringify = function (obj) {
- var t = typeof (obj);
- if (t != "object" || obj === null) {
- // simple data type
- if (t == "string") obj = '"'+obj+'"';
- return String(obj);
- }
- else {
- // recurse array or object
- var n, v, json = [], arr = (obj && obj.constructor == Array);
- for (n in obj) {
- v = obj[n]; t = typeof(v);
- if (t == "string") v = '"'+v+'"';
- else if (t == "object" && v !== null) v = JSON.stringify(v);
- json.push((arr ? "" : '"' + n + '":') + String(v));
- }
- return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
- }
- };
- }
- document.write(JSON.stringify(card));
- </script>
- </head>
- <body>
- </body>
-</html>
-
-
-
-
-