{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/comments/183700566","pull_request_review_id":114746371,"id":183700566,"diff_hunk":"@@ -0,0 +1,75 @@\n+'use strict';\n+\n+(function () {\n+  var type = document.querySelector('#type');\n+  var price = document.querySelector('#price');\n+\n+  var getPrice = function (priceForNight) {\n+    price.min = priceForNight;\n+    price.placeholder = price.min;\n+  };\n+\n+  var onTypeChange = function () {\n+    if (type.value === 'flat') {","path":"js/validity.js","position":13,"original_position":13,"commit_id":"cc1033fd3d75bb340e76e2efdd7c01d80bdeb8e1","original_commit_id":"cc1033fd3d75bb340e76e2efdd7c01d80bdeb8e1","user":{"login":"h4","id":430023,"avatar_url":"https://avatars3.githubusercontent.com/u/430023?v=4","gravatar_id":"","url":"https://api.github.com/users/h4","html_url":"https://github.com/h4","followers_url":"https://api.github.com/users/h4/followers","following_url":"https://api.github.com/users/h4/following{/other_user}","gists_url":"https://api.github.com/users/h4/gists{/gist_id}","starred_url":"https://api.github.com/users/h4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4/subscriptions","organizations_url":"https://api.github.com/users/h4/orgs","repos_url":"https://api.github.com/users/h4/repos","events_url":"https://api.github.com/users/h4/events{/privacy}","received_events_url":"https://api.github.com/users/h4/received_events","type":"User","site_admin":false},"body":"Здесь лучше использовать `switch {}`","created_at":"2018-04-24T11:53:26Z","updated_at":"2018-04-24T11:57:40Z","html_url":"https://github.com/htmlacademy-javascript/625035-keksobooking/pull/4#discussion_r183700566","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/comments/183700566"},"html":{"href":"https://github.com/htmlacademy-javascript/625035-keksobooking/pull/4#discussion_r183700566"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/4","id":183468038,"html_url":"https://github.com/htmlacademy-javascript/625035-keksobooking/pull/4","diff_url":"https://github.com/htmlacademy-javascript/625035-keksobooking/pull/4.diff","patch_url":"https://github.com/htmlacademy-javascript/625035-keksobooking/pull/4.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/issues/4","number":4,"state":"closed","locked":false,"title":"Личный проект: доверяй, но проверяй","user":{"login":"ratelChief","id":34477573,"avatar_url":"https://avatars3.githubusercontent.com/u/34477573?v=4","gravatar_id":"","url":"https://api.github.com/users/ratelChief","html_url":"https://github.com/ratelChief","followers_url":"https://api.github.com/users/ratelChief/followers","following_url":"https://api.github.com/users/ratelChief/following{/other_user}","gists_url":"https://api.github.com/users/ratelChief/gists{/gist_id}","starred_url":"https://api.github.com/users/ratelChief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratelChief/subscriptions","organizations_url":"https://api.github.com/users/ratelChief/orgs","repos_url":"https://api.github.com/users/ratelChief/repos","events_url":"https://api.github.com/users/ratelChief/events{/privacy}","received_events_url":"https://api.github.com/users/ratelChief/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: доверяй, но проверяй](https://up.htmlacademy.ru/javascript/13/user/625035/tasks/16)","created_at":"2018-04-23T15:14:29Z","updated_at":"2018-04-24T11:57:40Z","closed_at":"2018-04-24T11:56:35Z","merged_at":"2018-04-24T11:56:35Z","merge_commit_sha":"362cd72822ced3871785c60d599942dbe69f2478","assignee":{"login":"h4","id":430023,"avatar_url":"https://avatars3.githubusercontent.com/u/430023?v=4","gravatar_id":"","url":"https://api.github.com/users/h4","html_url":"https://github.com/h4","followers_url":"https://api.github.com/users/h4/followers","following_url":"https://api.github.com/users/h4/following{/other_user}","gists_url":"https://api.github.com/users/h4/gists{/gist_id}","starred_url":"https://api.github.com/users/h4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4/subscriptions","organizations_url":"https://api.github.com/users/h4/orgs","repos_url":"https://api.github.com/users/h4/repos","events_url":"https://api.github.com/users/h4/events{/privacy}","received_events_url":"https://api.github.com/users/h4/received_events","type":"User","site_admin":false},"assignees":[{"login":"h4","id":430023,"avatar_url":"https://avatars3.githubusercontent.com/u/430023?v=4","gravatar_id":"","url":"https://api.github.com/users/h4","html_url":"https://github.com/h4","followers_url":"https://api.github.com/users/h4/followers","following_url":"https://api.github.com/users/h4/following{/other_user}","gists_url":"https://api.github.com/users/h4/gists{/gist_id}","starred_url":"https://api.github.com/users/h4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4/subscriptions","organizations_url":"https://api.github.com/users/h4/orgs","repos_url":"https://api.github.com/users/h4/repos","events_url":"https://api.github.com/users/h4/events{/privacy}","received_events_url":"https://api.github.com/users/h4/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/4/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/4/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/issues/4/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/statuses/cc1033fd3d75bb340e76e2efdd7c01d80bdeb8e1","head":{"label":"ratelChief:module4-task2","ref":"module4-task2","sha":"cc1033fd3d75bb340e76e2efdd7c01d80bdeb8e1","user":{"login":"ratelChief","id":34477573,"avatar_url":"https://avatars3.githubusercontent.com/u/34477573?v=4","gravatar_id":"","url":"https://api.github.com/users/ratelChief","html_url":"https://github.com/ratelChief","followers_url":"https://api.github.com/users/ratelChief/followers","following_url":"https://api.github.com/users/ratelChief/following{/other_user}","gists_url":"https://api.github.com/users/ratelChief/gists{/gist_id}","starred_url":"https://api.github.com/users/ratelChief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratelChief/subscriptions","organizations_url":"https://api.github.com/users/ratelChief/orgs","repos_url":"https://api.github.com/users/ratelChief/repos","events_url":"https://api.github.com/users/ratelChief/events{/privacy}","received_events_url":"https://api.github.com/users/ratelChief/received_events","type":"User","site_admin":false},"repo":{"id":127111432,"name":"625035-keksobooking","full_name":"ratelChief/625035-keksobooking","owner":{"login":"ratelChief","id":34477573,"avatar_url":"https://avatars3.githubusercontent.com/u/34477573?v=4","gravatar_id":"","url":"https://api.github.com/users/ratelChief","html_url":"https://github.com/ratelChief","followers_url":"https://api.github.com/users/ratelChief/followers","following_url":"https://api.github.com/users/ratelChief/following{/other_user}","gists_url":"https://api.github.com/users/ratelChief/gists{/gist_id}","starred_url":"https://api.github.com/users/ratelChief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratelChief/subscriptions","organizations_url":"https://api.github.com/users/ratelChief/orgs","repos_url":"https://api.github.com/users/ratelChief/repos","events_url":"https://api.github.com/users/ratelChief/events{/privacy}","received_events_url":"https://api.github.com/users/ratelChief/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ratelChief/625035-keksobooking","description":"Dmitry Svistun","fork":true,"url":"https://api.github.com/repos/ratelChief/625035-keksobooking","forks_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/forks","keys_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/teams","hooks_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/events","assignees_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/tags","blobs_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/languages","stargazers_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/subscription","commits_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/merges","archive_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/downloads","issues_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/ratelChief/625035-keksobooking/deployments","created_at":"2018-03-28T08:48:10Z","updated_at":"2018-04-20T13:21:45Z","pushed_at":"2018-04-23T15:13:30Z","git_url":"git://github.com/ratelChief/625035-keksobooking.git","ssh_url":"git@github.com:ratelChief/625035-keksobooking.git","clone_url":"https://github.com/ratelChief/625035-keksobooking.git","svn_url":"https://github.com/ratelChief/625035-keksobooking","homepage":null,"size":601,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"1f8a2dc3a594879bfa1ed3798c28fd0ca390b33b","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":127111315,"name":"625035-keksobooking","full_name":"htmlacademy-javascript/625035-keksobooking","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/625035-keksobooking","description":"Dmitry Svistun","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/deployments","created_at":"2018-03-28T08:47:14Z","updated_at":"2018-04-24T11:56:37Z","pushed_at":"2018-04-24T11:57:20Z","git_url":"git://github.com/htmlacademy-javascript/625035-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/625035-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/625035-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/625035-keksobooking","homepage":"https://github.com/ratelChief/625035-keksobooking","size":606,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/4"},"html":{"href":"https://github.com/htmlacademy-javascript/625035-keksobooking/pull/4"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/issues/4"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/625035-keksobooking/statuses/cc1033fd3d75bb340e76e2efdd7c01d80bdeb8e1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"h4"}}