{"action":"created","comment":{"url":"https://api.github.com/repos/clouway-incubator/html/pulls/comments/62170972","id":62170972,"diff_hunk":"@@ -0,0 +1,133 @@\n+<!DOCTYPE html>\n+<html lang=\"en\">\n+<head>\n+    <meta charset=\"UTF-8\">\n+    <title>Form</title>\n+    <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css\"\n+          integrity=\"sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7\" crossorigin=\"anonymous\">\n+    <link rel=\"stylesheet\" href=\"http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css\">\n+    <script src=\"formValidation.js\"></script>\n+</head>\n+<body>\n+<form class=\"form-horizontal\" style=\"margin-top: 20px;\"\n+      onsubmit=\"return (validateField('firstName', /^([a-z]{1,15})$/i) &&","path":"form/validation/index.html","position":13,"original_position":13,"commit_id":"4e791fb1d586df579d1ae874a95881fe6783cdc2","original_commit_id":"4e791fb1d586df579d1ae874a95881fe6783cdc2","user":{"login":"panayotkulchev","id":8696264,"avatar_url":"https://avatars.githubusercontent.com/u/8696264?v=3","gravatar_id":"","url":"https://api.github.com/users/panayotkulchev","html_url":"https://github.com/panayotkulchev","followers_url":"https://api.github.com/users/panayotkulchev/followers","following_url":"https://api.github.com/users/panayotkulchev/following{/other_user}","gists_url":"https://api.github.com/users/panayotkulchev/gists{/gist_id}","starred_url":"https://api.github.com/users/panayotkulchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panayotkulchev/subscriptions","organizations_url":"https://api.github.com/users/panayotkulchev/orgs","repos_url":"https://api.github.com/users/panayotkulchev/repos","events_url":"https://api.github.com/users/panayotkulchev/events{/privacy}","received_events_url":"https://api.github.com/users/panayotkulchev/received_events","type":"User","site_admin":false},"body":"Do you think it will be better if use something like:\r\n```html\r\n<form on-submit=validateForm()> ...\r\n```\r\nAnd validateForm calls all this methos in js file.\r\n\r\nSo html code will become more readable.\r\n\r\nIt is suggestion and depends on you to refactor or not. I see that now you know how to validate form with JS and got basic idea of Bootstrap and for me that is enough.","created_at":"2016-05-05T10:32:24Z","updated_at":"2016-05-05T10:32:24Z","html_url":"https://github.com/clouway-incubator/html/pull/26#discussion_r62170972","pull_request_url":"https://api.github.com/repos/clouway-incubator/html/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/comments/62170972"},"html":{"href":"https://github.com/clouway-incubator/html/pull/26#discussion_r62170972"},"pull_request":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/clouway-incubator/html/pulls/26","id":68181148,"html_url":"https://github.com/clouway-incubator/html/pull/26","diff_url":"https://github.com/clouway-incubator/html/pull/26.diff","patch_url":"https://github.com/clouway-incubator/html/pull/26.patch","issue_url":"https://api.github.com/repos/clouway-incubator/html/issues/26","number":26,"state":"open","locked":false,"title":"Form validation","user":{"login":"KrasimirRaikov","id":13517204,"avatar_url":"https://avatars.githubusercontent.com/u/13517204?v=3","gravatar_id":"","url":"https://api.github.com/users/KrasimirRaikov","html_url":"https://github.com/KrasimirRaikov","followers_url":"https://api.github.com/users/KrasimirRaikov/followers","following_url":"https://api.github.com/users/KrasimirRaikov/following{/other_user}","gists_url":"https://api.github.com/users/KrasimirRaikov/gists{/gist_id}","starred_url":"https://api.github.com/users/KrasimirRaikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrasimirRaikov/subscriptions","organizations_url":"https://api.github.com/users/KrasimirRaikov/orgs","repos_url":"https://api.github.com/users/KrasimirRaikov/repos","events_url":"https://api.github.com/users/KrasimirRaikov/events{/privacy}","received_events_url":"https://api.github.com/users/KrasimirRaikov/received_events","type":"User","site_admin":false},"body":"Validating each field when exiting the field, and validating them again on submit(the request is being canceled when there is invalid field).\r\n\r\n![formvalidation](https://cloud.githubusercontent.com/assets/13517204/14976835/cd4b26ec-1117-11e6-85df-73420cccdd9c.png)","created_at":"2016-04-28T08:21:32Z","updated_at":"2016-05-05T10:32:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38f980fc3645dbe2e58fd1aaa3fa256bb8a5fc15","assignee":{"login":"panayotkulchev","id":8696264,"avatar_url":"https://avatars.githubusercontent.com/u/8696264?v=3","gravatar_id":"","url":"https://api.github.com/users/panayotkulchev","html_url":"https://github.com/panayotkulchev","followers_url":"https://api.github.com/users/panayotkulchev/followers","following_url":"https://api.github.com/users/panayotkulchev/following{/other_user}","gists_url":"https://api.github.com/users/panayotkulchev/gists{/gist_id}","starred_url":"https://api.github.com/users/panayotkulchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panayotkulchev/subscriptions","organizations_url":"https://api.github.com/users/panayotkulchev/orgs","repos_url":"https://api.github.com/users/panayotkulchev/repos","events_url":"https://api.github.com/users/panayotkulchev/events{/privacy}","received_events_url":"https://api.github.com/users/panayotkulchev/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/clouway-incubator/html/pulls/26/commits","review_comments_url":"https://api.github.com/repos/clouway-incubator/html/pulls/26/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/26/comments","statuses_url":"https://api.github.com/repos/clouway-incubator/html/statuses/4e791fb1d586df579d1ae874a95881fe6783cdc2","head":{"label":"KrasimirRaikov:formValidation","ref":"formValidation","sha":"4e791fb1d586df579d1ae874a95881fe6783cdc2","user":{"login":"KrasimirRaikov","id":13517204,"avatar_url":"https://avatars.githubusercontent.com/u/13517204?v=3","gravatar_id":"","url":"https://api.github.com/users/KrasimirRaikov","html_url":"https://github.com/KrasimirRaikov","followers_url":"https://api.github.com/users/KrasimirRaikov/followers","following_url":"https://api.github.com/users/KrasimirRaikov/following{/other_user}","gists_url":"https://api.github.com/users/KrasimirRaikov/gists{/gist_id}","starred_url":"https://api.github.com/users/KrasimirRaikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrasimirRaikov/subscriptions","organizations_url":"https://api.github.com/users/KrasimirRaikov/orgs","repos_url":"https://api.github.com/users/KrasimirRaikov/repos","events_url":"https://api.github.com/users/KrasimirRaikov/events{/privacy}","received_events_url":"https://api.github.com/users/KrasimirRaikov/received_events","type":"User","site_admin":false},"repo":{"id":57014985,"name":"html","full_name":"KrasimirRaikov/html","owner":{"login":"KrasimirRaikov","id":13517204,"avatar_url":"https://avatars.githubusercontent.com/u/13517204?v=3","gravatar_id":"","url":"https://api.github.com/users/KrasimirRaikov","html_url":"https://github.com/KrasimirRaikov","followers_url":"https://api.github.com/users/KrasimirRaikov/followers","following_url":"https://api.github.com/users/KrasimirRaikov/following{/other_user}","gists_url":"https://api.github.com/users/KrasimirRaikov/gists{/gist_id}","starred_url":"https://api.github.com/users/KrasimirRaikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrasimirRaikov/subscriptions","organizations_url":"https://api.github.com/users/KrasimirRaikov/orgs","repos_url":"https://api.github.com/users/KrasimirRaikov/repos","events_url":"https://api.github.com/users/KrasimirRaikov/events{/privacy}","received_events_url":"https://api.github.com/users/KrasimirRaikov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KrasimirRaikov/html","description":"HTML Tasks","fork":true,"url":"https://api.github.com/repos/KrasimirRaikov/html","forks_url":"https://api.github.com/repos/KrasimirRaikov/html/forks","keys_url":"https://api.github.com/repos/KrasimirRaikov/html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KrasimirRaikov/html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KrasimirRaikov/html/teams","hooks_url":"https://api.github.com/repos/KrasimirRaikov/html/hooks","issue_events_url":"https://api.github.com/repos/KrasimirRaikov/html/issues/events{/number}","events_url":"https://api.github.com/repos/KrasimirRaikov/html/events","assignees_url":"https://api.github.com/repos/KrasimirRaikov/html/assignees{/user}","branches_url":"https://api.github.com/repos/KrasimirRaikov/html/branches{/branch}","tags_url":"https://api.github.com/repos/KrasimirRaikov/html/tags","blobs_url":"https://api.github.com/repos/KrasimirRaikov/html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KrasimirRaikov/html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KrasimirRaikov/html/git/refs{/sha}","trees_url":"https://api.github.com/repos/KrasimirRaikov/html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KrasimirRaikov/html/statuses/{sha}","languages_url":"https://api.github.com/repos/KrasimirRaikov/html/languages","stargazers_url":"https://api.github.com/repos/KrasimirRaikov/html/stargazers","contributors_url":"https://api.github.com/repos/KrasimirRaikov/html/contributors","subscribers_url":"https://api.github.com/repos/KrasimirRaikov/html/subscribers","subscription_url":"https://api.github.com/repos/KrasimirRaikov/html/subscription","commits_url":"https://api.github.com/repos/KrasimirRaikov/html/commits{/sha}","git_commits_url":"https://api.github.com/repos/KrasimirRaikov/html/git/commits{/sha}","comments_url":"https://api.github.com/repos/KrasimirRaikov/html/comments{/number}","issue_comment_url":"https://api.github.com/repos/KrasimirRaikov/html/issues/comments{/number}","contents_url":"https://api.github.com/repos/KrasimirRaikov/html/contents/{+path}","compare_url":"https://api.github.com/repos/KrasimirRaikov/html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KrasimirRaikov/html/merges","archive_url":"https://api.github.com/repos/KrasimirRaikov/html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KrasimirRaikov/html/downloads","issues_url":"https://api.github.com/repos/KrasimirRaikov/html/issues{/number}","pulls_url":"https://api.github.com/repos/KrasimirRaikov/html/pulls{/number}","milestones_url":"https://api.github.com/repos/KrasimirRaikov/html/milestones{/number}","notifications_url":"https://api.github.com/repos/KrasimirRaikov/html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KrasimirRaikov/html/labels{/name}","releases_url":"https://api.github.com/repos/KrasimirRaikov/html/releases{/id}","deployments_url":"https://api.github.com/repos/KrasimirRaikov/html/deployments","created_at":"2016-04-25T05:50:14Z","updated_at":"2015-09-25T08:50:19Z","pushed_at":"2016-05-03T08:21:09Z","git_url":"git://github.com/KrasimirRaikov/html.git","ssh_url":"git@github.com:KrasimirRaikov/html.git","clone_url":"https://github.com/KrasimirRaikov/html.git","svn_url":"https://github.com/KrasimirRaikov/html","homepage":null,"size":53,"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:krasimir","ref":"krasimir","sha":"d345cc52515a0e16fe1b41e9dcf81b5f0428eebe","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-05-03T08:25:41Z","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":84,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/26"},"html":{"href":"https://github.com/clouway-incubator/html/pull/26"},"issue":{"href":"https://api.github.com/repos/clouway-incubator/html/issues/26"},"comments":{"href":"https://api.github.com/repos/clouway-incubator/html/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway-incubator/html/pulls/26/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/26/commits"},"statuses":{"href":"https://api.github.com/repos/clouway-incubator/html/statuses/4e791fb1d586df579d1ae874a95881fe6783cdc2"}}}}