{"action":"created","comment":{"url":"https://api.github.com/repos/clouway-incubator/html/pulls/comments/65812402","id":65812402,"diff_hunk":"@@ -0,0 +1,52 @@\n+/**\n+ * @author Stanislava Kaukova(sisiivanovva@gmail.com)\n+ */\n+function validate(fieldId, id, min, max) {\n+    var field = document.getElementById(fieldId).value;\n+\n+    if (field.length < min || field.length > max || field.search(/^[a-zA0-Z9]+/)) {\n+        incorrectValue(id);\n+    }\n+    else {\n+        correctValue(id);\n+    }\n+}\n+\n+function validateEgn(fieldId, id, max) {\n+    var egn = document.getElementById(fieldId).value;\n+\n+    if (egn.length != max) {\n+        incorrectValue(id);\n+    } else {\n+        correctValue(id);\n+    }\n+}\n+\n+function validateAge(fieldId, id, min, max) {\n+    var age = document.getElementById(fieldId).value;\n+\n+    if (age < min || age > max) {\n+        incorrectValue(id);\n+    } else {\n+        correctValue(id);\n+    }\n+}\n+\n+function validateConfirm(passId1, passId2, id) {","path":"src/com/clouway/validator/validator.js","position":null,"original_position":35,"commit_id":"ca49a8e7bb73ed446af0214824dd9ff60cb07c7e","original_commit_id":"e70bd720f6c2e7dc8d2ee63d3416ad294d6ef5eb","user":{"login":"Stanislava88","id":8342103,"avatar_url":"https://avatars.githubusercontent.com/u/8342103?v=3","gravatar_id":"","url":"https://api.github.com/users/Stanislava88","html_url":"https://github.com/Stanislava88","followers_url":"https://api.github.com/users/Stanislava88/followers","following_url":"https://api.github.com/users/Stanislava88/following{/other_user}","gists_url":"https://api.github.com/users/Stanislava88/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanislava88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanislava88/subscriptions","organizations_url":"https://api.github.com/users/Stanislava88/orgs","repos_url":"https://api.github.com/users/Stanislava88/repos","events_url":"https://api.github.com/users/Stanislava88/events{/privacy}","received_events_url":"https://api.github.com/users/Stanislava88/received_events","type":"User","site_admin":false},"body":"renamed","created_at":"2016-06-05T07:13:46Z","updated_at":"2016-06-05T07:13:46Z","html_url":"https://github.com/clouway-incubator/html/pull/33#discussion_r65812402","pull_request_url":"https://api.github.com/repos/clouway-incubator/html/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/comments/65812402"},"html":{"href":"https://github.com/clouway-incubator/html/pull/33#discussion_r65812402"},"pull_request":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/clouway-incubator/html/pulls/33","id":72352854,"html_url":"https://github.com/clouway-incubator/html/pull/33","diff_url":"https://github.com/clouway-incubator/html/pull/33.diff","patch_url":"https://github.com/clouway-incubator/html/pull/33.patch","issue_url":"https://api.github.com/repos/clouway-incubator/html/issues/33","number":33,"state":"open","locked":false,"title":"Validator","user":{"login":"Stanislava88","id":8342103,"avatar_url":"https://avatars.githubusercontent.com/u/8342103?v=3","gravatar_id":"","url":"https://api.github.com/users/Stanislava88","html_url":"https://github.com/Stanislava88","followers_url":"https://api.github.com/users/Stanislava88/followers","following_url":"https://api.github.com/users/Stanislava88/following{/other_user}","gists_url":"https://api.github.com/users/Stanislava88/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanislava88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanislava88/subscriptions","organizations_url":"https://api.github.com/users/Stanislava88/orgs","repos_url":"https://api.github.com/users/Stanislava88/repos","events_url":"https://api.github.com/users/Stanislava88/events{/privacy}","received_events_url":"https://api.github.com/users/Stanislava88/received_events","type":"User","site_admin":false},"body":"Here i have solved the task for validation \r\n\r\nhttp://stanislava88.github.io/validation/?","created_at":"2016-06-02T14:10:18Z","updated_at":"2016-06-05T07:13:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d80a71767aa2f7f78a3fa886273ea033ffe2389c","assignee":{"login":"stefan-dimitrov","id":6047637,"avatar_url":"https://avatars.githubusercontent.com/u/6047637?v=3","gravatar_id":"","url":"https://api.github.com/users/stefan-dimitrov","html_url":"https://github.com/stefan-dimitrov","followers_url":"https://api.github.com/users/stefan-dimitrov/followers","following_url":"https://api.github.com/users/stefan-dimitrov/following{/other_user}","gists_url":"https://api.github.com/users/stefan-dimitrov/gists{/gist_id}","starred_url":"https://api.github.com/users/stefan-dimitrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefan-dimitrov/subscriptions","organizations_url":"https://api.github.com/users/stefan-dimitrov/orgs","repos_url":"https://api.github.com/users/stefan-dimitrov/repos","events_url":"https://api.github.com/users/stefan-dimitrov/events{/privacy}","received_events_url":"https://api.github.com/users/stefan-dimitrov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/clouway-incubator/html/pulls/33/commits","review_comments_url":"https://api.github.com/repos/clouway-incubator/html/pulls/33/comments","review_comment_url":"https://api.github.com/repos/clouway-incubator/html/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clouway-incubator/html/issues/33/comments","statuses_url":"https://api.github.com/repos/clouway-incubator/html/statuses/ca49a8e7bb73ed446af0214824dd9ff60cb07c7e","head":{"label":"Stanislava88:validator","ref":"validator","sha":"ca49a8e7bb73ed446af0214824dd9ff60cb07c7e","user":{"login":"Stanislava88","id":8342103,"avatar_url":"https://avatars.githubusercontent.com/u/8342103?v=3","gravatar_id":"","url":"https://api.github.com/users/Stanislava88","html_url":"https://github.com/Stanislava88","followers_url":"https://api.github.com/users/Stanislava88/followers","following_url":"https://api.github.com/users/Stanislava88/following{/other_user}","gists_url":"https://api.github.com/users/Stanislava88/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanislava88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanislava88/subscriptions","organizations_url":"https://api.github.com/users/Stanislava88/orgs","repos_url":"https://api.github.com/users/Stanislava88/repos","events_url":"https://api.github.com/users/Stanislava88/events{/privacy}","received_events_url":"https://api.github.com/users/Stanislava88/received_events","type":"User","site_admin":false},"repo":{"id":59804723,"name":"html","full_name":"Stanislava88/html","owner":{"login":"Stanislava88","id":8342103,"avatar_url":"https://avatars.githubusercontent.com/u/8342103?v=3","gravatar_id":"","url":"https://api.github.com/users/Stanislava88","html_url":"https://github.com/Stanislava88","followers_url":"https://api.github.com/users/Stanislava88/followers","following_url":"https://api.github.com/users/Stanislava88/following{/other_user}","gists_url":"https://api.github.com/users/Stanislava88/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanislava88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanislava88/subscriptions","organizations_url":"https://api.github.com/users/Stanislava88/orgs","repos_url":"https://api.github.com/users/Stanislava88/repos","events_url":"https://api.github.com/users/Stanislava88/events{/privacy}","received_events_url":"https://api.github.com/users/Stanislava88/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stanislava88/html","description":"HTML Tasks","fork":true,"url":"https://api.github.com/repos/Stanislava88/html","forks_url":"https://api.github.com/repos/Stanislava88/html/forks","keys_url":"https://api.github.com/repos/Stanislava88/html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stanislava88/html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stanislava88/html/teams","hooks_url":"https://api.github.com/repos/Stanislava88/html/hooks","issue_events_url":"https://api.github.com/repos/Stanislava88/html/issues/events{/number}","events_url":"https://api.github.com/repos/Stanislava88/html/events","assignees_url":"https://api.github.com/repos/Stanislava88/html/assignees{/user}","branches_url":"https://api.github.com/repos/Stanislava88/html/branches{/branch}","tags_url":"https://api.github.com/repos/Stanislava88/html/tags","blobs_url":"https://api.github.com/repos/Stanislava88/html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stanislava88/html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stanislava88/html/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stanislava88/html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stanislava88/html/statuses/{sha}","languages_url":"https://api.github.com/repos/Stanislava88/html/languages","stargazers_url":"https://api.github.com/repos/Stanislava88/html/stargazers","contributors_url":"https://api.github.com/repos/Stanislava88/html/contributors","subscribers_url":"https://api.github.com/repos/Stanislava88/html/subscribers","subscription_url":"https://api.github.com/repos/Stanislava88/html/subscription","commits_url":"https://api.github.com/repos/Stanislava88/html/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stanislava88/html/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stanislava88/html/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stanislava88/html/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stanislava88/html/contents/{+path}","compare_url":"https://api.github.com/repos/Stanislava88/html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stanislava88/html/merges","archive_url":"https://api.github.com/repos/Stanislava88/html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stanislava88/html/downloads","issues_url":"https://api.github.com/repos/Stanislava88/html/issues{/number}","pulls_url":"https://api.github.com/repos/Stanislava88/html/pulls{/number}","milestones_url":"https://api.github.com/repos/Stanislava88/html/milestones{/number}","notifications_url":"https://api.github.com/repos/Stanislava88/html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stanislava88/html/labels{/name}","releases_url":"https://api.github.com/repos/Stanislava88/html/releases{/id}","deployments_url":"https://api.github.com/repos/Stanislava88/html/deployments","created_at":"2016-05-27T04:44:10Z","updated_at":"2015-09-25T08:50:19Z","pushed_at":"2016-06-04T20:17:30Z","git_url":"git://github.com/Stanislava88/html.git","ssh_url":"git@github.com:Stanislava88/html.git","clone_url":"https://github.com/Stanislava88/html.git","svn_url":"https://github.com/Stanislava88/html","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clouway-incubator:stanislava","ref":"stanislava","sha":"92d9d7aff437a6173bdb34f1240a4cb13780b3cc","user":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":43123821,"name":"html","full_name":"clouway-incubator/html","owner":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clouway-incubator/html","description":"HTML Tasks","fork":false,"url":"https://api.github.com/repos/clouway-incubator/html","forks_url":"https://api.github.com/repos/clouway-incubator/html/forks","keys_url":"https://api.github.com/repos/clouway-incubator/html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clouway-incubator/html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clouway-incubator/html/teams","hooks_url":"https://api.github.com/repos/clouway-incubator/html/hooks","issue_events_url":"https://api.github.com/repos/clouway-incubator/html/issues/events{/number}","events_url":"https://api.github.com/repos/clouway-incubator/html/events","assignees_url":"https://api.github.com/repos/clouway-incubator/html/assignees{/user}","branches_url":"https://api.github.com/repos/clouway-incubator/html/branches{/branch}","tags_url":"https://api.github.com/repos/clouway-incubator/html/tags","blobs_url":"https://api.github.com/repos/clouway-incubator/html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clouway-incubator/html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clouway-incubator/html/git/refs{/sha}","trees_url":"https://api.github.com/repos/clouway-incubator/html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clouway-incubator/html/statuses/{sha}","languages_url":"https://api.github.com/repos/clouway-incubator/html/languages","stargazers_url":"https://api.github.com/repos/clouway-incubator/html/stargazers","contributors_url":"https://api.github.com/repos/clouway-incubator/html/contributors","subscribers_url":"https://api.github.com/repos/clouway-incubator/html/subscribers","subscription_url":"https://api.github.com/repos/clouway-incubator/html/subscription","commits_url":"https://api.github.com/repos/clouway-incubator/html/commits{/sha}","git_commits_url":"https://api.github.com/repos/clouway-incubator/html/git/commits{/sha}","comments_url":"https://api.github.com/repos/clouway-incubator/html/comments{/number}","issue_comment_url":"https://api.github.com/repos/clouway-incubator/html/issues/comments{/number}","contents_url":"https://api.github.com/repos/clouway-incubator/html/contents/{+path}","compare_url":"https://api.github.com/repos/clouway-incubator/html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clouway-incubator/html/merges","archive_url":"https://api.github.com/repos/clouway-incubator/html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clouway-incubator/html/downloads","issues_url":"https://api.github.com/repos/clouway-incubator/html/issues{/number}","pulls_url":"https://api.github.com/repos/clouway-incubator/html/pulls{/number}","milestones_url":"https://api.github.com/repos/clouway-incubator/html/milestones{/number}","notifications_url":"https://api.github.com/repos/clouway-incubator/html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clouway-incubator/html/labels{/name}","releases_url":"https://api.github.com/repos/clouway-incubator/html/releases{/id}","deployments_url":"https://api.github.com/repos/clouway-incubator/html/deployments","created_at":"2015-09-25T08:50:19Z","updated_at":"2015-09-25T08:50:19Z","pushed_at":"2016-06-04T20:17:31Z","git_url":"git://github.com/clouway-incubator/html.git","ssh_url":"git@github.com:clouway-incubator/html.git","clone_url":"https://github.com/clouway-incubator/html.git","svn_url":"https://github.com/clouway-incubator/html","homepage":null,"size":140,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/33"},"html":{"href":"https://github.com/clouway-incubator/html/pull/33"},"issue":{"href":"https://api.github.com/repos/clouway-incubator/html/issues/33"},"comments":{"href":"https://api.github.com/repos/clouway-incubator/html/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/clouway-incubator/html/statuses/ca49a8e7bb73ed446af0214824dd9ff60cb07c7e"}}}}
{"actor":{"display_login":"Stanislava88"}}