{"action":"created","comment":{"url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/comments/41597424","id":41597424,"diff_hunk":"@@ -0,0 +1,83 @@\n+\n+//Validation for Activating The Submit Button\n+\n+function activateSubmit() \n+{\n+\n+\tif(document.getElementById(\"acceptCondition\").checked == true)\n+\t{\n+\t\tdocument.getElementById(\"submitButton\").disabled = false;\n+\t\t\n+\t}\n+\telse \n+\t{\n+\t\tdocument.getElementById(\"submitButton\").disabled = true;\n+\t}\n+}\n+\n+// Validation for Checking all the conditions\n+\n+function validate()\n+ {\n+\tvar count=0;\n+\t// First name Validation\n+\tif(document.getElementById(\"firstName\").value.trim() == \"\")\n+\t{\n+\t\tcount=1;\n+\t\talert(\"First Name Is Empty\");\n+\t} \n+\t// lastName Validation\n+\tif(document.getElementById(\"lastName\").value.trim() == \"\") \n+\t{\n+\t\tcount=1;\n+\t\talert(\"Last Name Is Empty\");\n+\t}\n+\t// Password Verfication\n+\tif(document.getElementById(\"password\").value.length < 8 )\n+\t{\n+\t\tcount=1;\n+\t\talert(\"Password Length should be greater than 8\");\n+\t}\n+\t// Matching The Password and Confirm Password\n+\tif(document.getElementById(\"password\").value != document.getElementById(\"confirmPassword\").value) \n+\t{\n+\t\tcount=1;\n+\t\talert(\"Password & Confirm Password mismatch!!\");\n+\t}\n+\t// Selecting the States\n+\tif(document.getElementById(\"state\") == \"Select State\" || document.getElementById(\"city\").value == \"Select City\" ) \n+\t{\n+\t\tcount=1;\n+\t\talert(\"State or City are not Selected!!\");\n+\t}\n+\t// Checking the Conditions if user created or not\n+\tif(count==0)\n+\t{\n+\t\talert(\"USER CREATED SUCCESSFUL\");\n+\t}\n+\telse \n+\t{\n+\t\talert(document.getElementById(\"textBox\").value);","path":"Web/JS/Assignment-1/Js/Registration.js","position":null,"original_position":60,"commit_id":"724f58a014d3820aa66088027678bb1e0b35bd8d","original_commit_id":"c9f493c581a10e67919adac4223dc1eee218d13d","user":{"login":"meta-pulkit-saxena","id":13659913,"avatar_url":"https://avatars.githubusercontent.com/u/13659913?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-pulkit-saxena","html_url":"https://github.com/meta-pulkit-saxena","followers_url":"https://api.github.com/users/meta-pulkit-saxena/followers","following_url":"https://api.github.com/users/meta-pulkit-saxena/following{/other_user}","gists_url":"https://api.github.com/users/meta-pulkit-saxena/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-pulkit-saxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-pulkit-saxena/subscriptions","organizations_url":"https://api.github.com/users/meta-pulkit-saxena/orgs","repos_url":"https://api.github.com/users/meta-pulkit-saxena/repos","events_url":"https://api.github.com/users/meta-pulkit-saxena/events{/privacy}","received_events_url":"https://api.github.com/users/meta-pulkit-saxena/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2015-10-09T04:53:58Z","updated_at":"2015-10-09T04:53:58Z","html_url":"https://github.com/meta-pulkit-saxena/get2015/pull/23#discussion_r41597424","pull_request_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/comments/41597424"},"html":{"href":"https://github.com/meta-pulkit-saxena/get2015/pull/23#discussion_r41597424"},"pull_request":{"href":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/23","id":46866289,"html_url":"https://github.com/meta-pulkit-saxena/get2015/pull/23","diff_url":"https://github.com/meta-pulkit-saxena/get2015/pull/23.diff","patch_url":"https://github.com/meta-pulkit-saxena/get2015/pull/23.patch","issue_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues/23","number":23,"state":"open","locked":false,"title":"Assignment-1","user":{"login":"meta-pulkit-saxena","id":13659913,"avatar_url":"https://avatars.githubusercontent.com/u/13659913?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-pulkit-saxena","html_url":"https://github.com/meta-pulkit-saxena","followers_url":"https://api.github.com/users/meta-pulkit-saxena/followers","following_url":"https://api.github.com/users/meta-pulkit-saxena/following{/other_user}","gists_url":"https://api.github.com/users/meta-pulkit-saxena/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-pulkit-saxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-pulkit-saxena/subscriptions","organizations_url":"https://api.github.com/users/meta-pulkit-saxena/orgs","repos_url":"https://api.github.com/users/meta-pulkit-saxena/repos","events_url":"https://api.github.com/users/meta-pulkit-saxena/events{/privacy}","received_events_url":"https://api.github.com/users/meta-pulkit-saxena/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-06T06:24:49Z","updated_at":"2015-10-09T04:53:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11efd268b34008a37b7315dc957100fdbb47b639","assignee":{"login":"shikhar-metacube","id":13687860,"avatar_url":"https://avatars.githubusercontent.com/u/13687860?v=3","gravatar_id":"","url":"https://api.github.com/users/shikhar-metacube","html_url":"https://github.com/shikhar-metacube","followers_url":"https://api.github.com/users/shikhar-metacube/followers","following_url":"https://api.github.com/users/shikhar-metacube/following{/other_user}","gists_url":"https://api.github.com/users/shikhar-metacube/gists{/gist_id}","starred_url":"https://api.github.com/users/shikhar-metacube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shikhar-metacube/subscriptions","organizations_url":"https://api.github.com/users/shikhar-metacube/orgs","repos_url":"https://api.github.com/users/shikhar-metacube/repos","events_url":"https://api.github.com/users/shikhar-metacube/events{/privacy}","received_events_url":"https://api.github.com/users/shikhar-metacube/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/23/commits","review_comments_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/23/comments","review_comment_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues/23/comments","statuses_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/statuses/724f58a014d3820aa66088027678bb1e0b35bd8d","head":{"label":"meta-pulkit-saxena:Web-JS-pulkit-assignment-1","ref":"Web-JS-pulkit-assignment-1","sha":"724f58a014d3820aa66088027678bb1e0b35bd8d","user":{"login":"meta-pulkit-saxena","id":13659913,"avatar_url":"https://avatars.githubusercontent.com/u/13659913?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-pulkit-saxena","html_url":"https://github.com/meta-pulkit-saxena","followers_url":"https://api.github.com/users/meta-pulkit-saxena/followers","following_url":"https://api.github.com/users/meta-pulkit-saxena/following{/other_user}","gists_url":"https://api.github.com/users/meta-pulkit-saxena/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-pulkit-saxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-pulkit-saxena/subscriptions","organizations_url":"https://api.github.com/users/meta-pulkit-saxena/orgs","repos_url":"https://api.github.com/users/meta-pulkit-saxena/repos","events_url":"https://api.github.com/users/meta-pulkit-saxena/events{/privacy}","received_events_url":"https://api.github.com/users/meta-pulkit-saxena/received_events","type":"User","site_admin":false},"repo":{"id":40880342,"name":"get2015","full_name":"meta-pulkit-saxena/get2015","owner":{"login":"meta-pulkit-saxena","id":13659913,"avatar_url":"https://avatars.githubusercontent.com/u/13659913?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-pulkit-saxena","html_url":"https://github.com/meta-pulkit-saxena","followers_url":"https://api.github.com/users/meta-pulkit-saxena/followers","following_url":"https://api.github.com/users/meta-pulkit-saxena/following{/other_user}","gists_url":"https://api.github.com/users/meta-pulkit-saxena/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-pulkit-saxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-pulkit-saxena/subscriptions","organizations_url":"https://api.github.com/users/meta-pulkit-saxena/orgs","repos_url":"https://api.github.com/users/meta-pulkit-saxena/repos","events_url":"https://api.github.com/users/meta-pulkit-saxena/events{/privacy}","received_events_url":"https://api.github.com/users/meta-pulkit-saxena/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-pulkit-saxena/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/meta-pulkit-saxena/get2015","forks_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/forks","keys_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/teams","hooks_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/hooks","issue_events_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/events","assignees_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/tags","blobs_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/languages","stargazers_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/stargazers","contributors_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/contributors","subscribers_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/subscribers","subscription_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/subscription","commits_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/merges","archive_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/downloads","issues_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/labels{/name}","releases_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/releases{/id}","created_at":"2015-08-17T09:09:40Z","updated_at":"2015-09-01T09:36:40Z","pushed_at":"2015-10-09T04:53:47Z","git_url":"git://github.com/meta-pulkit-saxena/get2015.git","ssh_url":"git@github.com:meta-pulkit-saxena/get2015.git","clone_url":"https://github.com/meta-pulkit-saxena/get2015.git","svn_url":"https://github.com/meta-pulkit-saxena/get2015","homepage":null,"size":1109,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"meta-pulkit-saxena:master","ref":"master","sha":"b1eb2ace8d4757bd9db0c543765d0a2b1626f4c5","user":{"login":"meta-pulkit-saxena","id":13659913,"avatar_url":"https://avatars.githubusercontent.com/u/13659913?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-pulkit-saxena","html_url":"https://github.com/meta-pulkit-saxena","followers_url":"https://api.github.com/users/meta-pulkit-saxena/followers","following_url":"https://api.github.com/users/meta-pulkit-saxena/following{/other_user}","gists_url":"https://api.github.com/users/meta-pulkit-saxena/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-pulkit-saxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-pulkit-saxena/subscriptions","organizations_url":"https://api.github.com/users/meta-pulkit-saxena/orgs","repos_url":"https://api.github.com/users/meta-pulkit-saxena/repos","events_url":"https://api.github.com/users/meta-pulkit-saxena/events{/privacy}","received_events_url":"https://api.github.com/users/meta-pulkit-saxena/received_events","type":"User","site_admin":false},"repo":{"id":40880342,"name":"get2015","full_name":"meta-pulkit-saxena/get2015","owner":{"login":"meta-pulkit-saxena","id":13659913,"avatar_url":"https://avatars.githubusercontent.com/u/13659913?v=3","gravatar_id":"","url":"https://api.github.com/users/meta-pulkit-saxena","html_url":"https://github.com/meta-pulkit-saxena","followers_url":"https://api.github.com/users/meta-pulkit-saxena/followers","following_url":"https://api.github.com/users/meta-pulkit-saxena/following{/other_user}","gists_url":"https://api.github.com/users/meta-pulkit-saxena/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-pulkit-saxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-pulkit-saxena/subscriptions","organizations_url":"https://api.github.com/users/meta-pulkit-saxena/orgs","repos_url":"https://api.github.com/users/meta-pulkit-saxena/repos","events_url":"https://api.github.com/users/meta-pulkit-saxena/events{/privacy}","received_events_url":"https://api.github.com/users/meta-pulkit-saxena/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-pulkit-saxena/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/meta-pulkit-saxena/get2015","forks_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/forks","keys_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/teams","hooks_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/hooks","issue_events_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/events","assignees_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/tags","blobs_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/languages","stargazers_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/stargazers","contributors_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/contributors","subscribers_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/subscribers","subscription_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/subscription","commits_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/merges","archive_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/downloads","issues_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/labels{/name}","releases_url":"https://api.github.com/repos/meta-pulkit-saxena/get2015/releases{/id}","created_at":"2015-08-17T09:09:40Z","updated_at":"2015-09-01T09:36:40Z","pushed_at":"2015-10-09T04:53:47Z","git_url":"git://github.com/meta-pulkit-saxena/get2015.git","ssh_url":"git@github.com:meta-pulkit-saxena/get2015.git","clone_url":"https://github.com/meta-pulkit-saxena/get2015.git","svn_url":"https://github.com/meta-pulkit-saxena/get2015","homepage":null,"size":1109,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/23"},"html":{"href":"https://github.com/meta-pulkit-saxena/get2015/pull/23"},"issue":{"href":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues/23"},"comments":{"href":"https://api.github.com/repos/meta-pulkit-saxena/get2015/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meta-pulkit-saxena/get2015/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/meta-pulkit-saxena/get2015/statuses/724f58a014d3820aa66088027678bb1e0b35bd8d"}}}}