-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
45 lines (40 loc) · 989 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// this is a comment
json = {
"args": {},
"data": "",
"files": {},
"form": {
"emailAddress": "[email protected]",
"fname": "",
"fngoeshereDude": "",
"respid": "5411"
},
"headers": {
"Accept": "*/*",
"Content-Length": "63",
"Content-Type": "application/x-www-form-urlencoded",
"Headerone": "HeaderOneValue",
"Headertoo": "HeaderTooValue",
"Host": "httpbin.org",
"Referer": "test.pcm.com",
"User-Agent": "ion Platform/2.64.5905.26675 Release 64 (built on 3/2/2016 2:49:14 PM)"
},
"json": null,
"origin": "204.9.220.50",
"url": "http://httpbin.org/post"
}
var consoleLine = "<p class=\"console-line\"></p>";
console = {
log: function(text) {
$("#console-log").append($(consoleLine).html(text));
}
};
console.log("Hello Console")
for (var key in json) {
if (json.hasOwnProperty(key)) {
if (/form/.test(key)) {
console.log("TRUE");
}
}
console.log("FALSE");
}