{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/comments/196560775","pull_request_review_id":130137261,"id":196560775,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjU2MDc3NQ==","diff_hunk":"@@ -287,3 +306,45 @@ disableElements(filters);\n pinMain.addEventListener('mouseup', function () {\n   onMainPinInitPage();\n });\n+\n+addressInput.disabled = true;\n+\n+typeSelect.addEventListener('focusout', function () {\n+  priceInput.min = minPriceTranslator[typeSelect.value];\n+  priceInput.placeholder = priceInput.min;\n+});\n+timeInSelect.addEventListener('focusout', function () {\n+  if (timeInSelect.value !== timeOutSelect.value) {\n+    timeOutSelect.setCustomValidity(timeErrorMessage);\n+  }\n+  timeInSelect.setCustomValidity('');\n+});\n+timeOutSelect.addEventListener('focusout', function () {\n+  if (timeInSelect.value !== timeOutSelect.value) {\n+    timeInSelect.setCustomValidity(timeErrorMessage);\n+  }\n+  timeOutSelect.setCustomValidity('');\n+});\n+\n+var onSubmitCapacityValidate = function () {\n+  capacitySelect.setCustomValidity('');\n+  if ((roomNumberSelect.value === '1') && (capacitySelect.value !== '1')) {\n+    capacitySelect.setCustomValidity(guestsErrorMessage);\n+  }\n+  if ((roomNumberSelect.value === '2') && !((capacitySelect.value === '1') || (capacitySelect.value === '2'))) {\n+    capacitySelect.setCustomValidity(guestsErrorMessage);\n+  }\n+  if ((roomNumberSelect.value === '3') && (capacitySelect.value === '0')) {\n+    capacitySelect.setCustomValidity(guestsErrorMessage);\n+  }\n+  if ((roomNumberSelect.value === '100') && (capacitySelect.value !== '0')) {\n+    capacitySelect.setCustomValidity(guestsErrorMessage);\n+  }","path":"js/map.js","position":81,"original_position":81,"commit_id":"7d716d7c2b3649363a25c714455fdc6665c7bc67","original_commit_id":"7d716d7c2b3649363a25c714455fdc6665c7bc67","user":{"login":"fyvfyv","id":3251438,"node_id":"MDQ6VXNlcjMyNTE0Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"body":"Это какой-то мега хардкод.\r\nОпиши это как программист, а не с хардкодом всех значений","created_at":"2018-06-19T20:07:53Z","updated_at":"2018-06-19T20:08:32Z","html_url":"https://github.com/htmlacademy-javascript/424721-keksobooking/pull/4#discussion_r196560775","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/comments/196560775"},"html":{"href":"https://github.com/htmlacademy-javascript/424721-keksobooking/pull/4#discussion_r196560775"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/4","id":195921199,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1OTIxMTk5","html_url":"https://github.com/htmlacademy-javascript/424721-keksobooking/pull/4","diff_url":"https://github.com/htmlacademy-javascript/424721-keksobooking/pull/4.diff","patch_url":"https://github.com/htmlacademy-javascript/424721-keksobooking/pull/4.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/issues/4","number":4,"state":"open","locked":false,"title":"Личный проект: доверяй, но проверяй","user":{"login":"fluxet","id":27204697,"node_id":"MDQ6VXNlcjI3MjA0Njk3","avatar_url":"https://avatars1.githubusercontent.com/u/27204697?v=4","gravatar_id":"","url":"https://api.github.com/users/fluxet","html_url":"https://github.com/fluxet","followers_url":"https://api.github.com/users/fluxet/followers","following_url":"https://api.github.com/users/fluxet/following{/other_user}","gists_url":"https://api.github.com/users/fluxet/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxet/subscriptions","organizations_url":"https://api.github.com/users/fluxet/orgs","repos_url":"https://api.github.com/users/fluxet/repos","events_url":"https://api.github.com/users/fluxet/events{/privacy}","received_events_url":"https://api.github.com/users/fluxet/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: доверяй, но проверяй](https://up.htmlacademy.ru/javascript/14/user/424721/tasks/16)\n\n:boom: https://htmlacademy-javascript.github.io/424721-keksobooking/4/","created_at":"2018-06-19T18:40:31Z","updated_at":"2018-06-19T20:08:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92f095341990bddeae7b4cd244593928964161a3","assignee":{"login":"fyvfyv","id":3251438,"node_id":"MDQ6VXNlcjMyNTE0Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"assignees":[{"login":"fyvfyv","id":3251438,"node_id":"MDQ6VXNlcjMyNTE0Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/4/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/4/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/issues/4/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/statuses/7d716d7c2b3649363a25c714455fdc6665c7bc67","head":{"label":"fluxet:module4-task2","ref":"module4-task2","sha":"7d716d7c2b3649363a25c714455fdc6665c7bc67","user":{"login":"fluxet","id":27204697,"node_id":"MDQ6VXNlcjI3MjA0Njk3","avatar_url":"https://avatars1.githubusercontent.com/u/27204697?v=4","gravatar_id":"","url":"https://api.github.com/users/fluxet","html_url":"https://github.com/fluxet","followers_url":"https://api.github.com/users/fluxet/followers","following_url":"https://api.github.com/users/fluxet/following{/other_user}","gists_url":"https://api.github.com/users/fluxet/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxet/subscriptions","organizations_url":"https://api.github.com/users/fluxet/orgs","repos_url":"https://api.github.com/users/fluxet/repos","events_url":"https://api.github.com/users/fluxet/events{/privacy}","received_events_url":"https://api.github.com/users/fluxet/received_events","type":"User","site_admin":false},"repo":{"id":135341840,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzNDE4NDA=","name":"424721-keksobooking","full_name":"fluxet/424721-keksobooking","owner":{"login":"fluxet","id":27204697,"node_id":"MDQ6VXNlcjI3MjA0Njk3","avatar_url":"https://avatars1.githubusercontent.com/u/27204697?v=4","gravatar_id":"","url":"https://api.github.com/users/fluxet","html_url":"https://github.com/fluxet","followers_url":"https://api.github.com/users/fluxet/followers","following_url":"https://api.github.com/users/fluxet/following{/other_user}","gists_url":"https://api.github.com/users/fluxet/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxet/subscriptions","organizations_url":"https://api.github.com/users/fluxet/orgs","repos_url":"https://api.github.com/users/fluxet/repos","events_url":"https://api.github.com/users/fluxet/events{/privacy}","received_events_url":"https://api.github.com/users/fluxet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fluxet/424721-keksobooking","description":"Антон Древетняк","fork":true,"url":"https://api.github.com/repos/fluxet/424721-keksobooking","forks_url":"https://api.github.com/repos/fluxet/424721-keksobooking/forks","keys_url":"https://api.github.com/repos/fluxet/424721-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fluxet/424721-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fluxet/424721-keksobooking/teams","hooks_url":"https://api.github.com/repos/fluxet/424721-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/fluxet/424721-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/fluxet/424721-keksobooking/events","assignees_url":"https://api.github.com/repos/fluxet/424721-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/fluxet/424721-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/fluxet/424721-keksobooking/tags","blobs_url":"https://api.github.com/repos/fluxet/424721-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fluxet/424721-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fluxet/424721-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/fluxet/424721-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fluxet/424721-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/fluxet/424721-keksobooking/languages","stargazers_url":"https://api.github.com/repos/fluxet/424721-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/fluxet/424721-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/fluxet/424721-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/fluxet/424721-keksobooking/subscription","commits_url":"https://api.github.com/repos/fluxet/424721-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/fluxet/424721-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/fluxet/424721-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/fluxet/424721-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/fluxet/424721-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/fluxet/424721-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fluxet/424721-keksobooking/merges","archive_url":"https://api.github.com/repos/fluxet/424721-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fluxet/424721-keksobooking/downloads","issues_url":"https://api.github.com/repos/fluxet/424721-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/fluxet/424721-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/fluxet/424721-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/fluxet/424721-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fluxet/424721-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/fluxet/424721-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/fluxet/424721-keksobooking/deployments","created_at":"2018-05-29T19:12:04Z","updated_at":"2018-06-19T18:29:17Z","pushed_at":"2018-06-19T18:55:21Z","git_url":"git://github.com/fluxet/424721-keksobooking.git","ssh_url":"git@github.com:fluxet/424721-keksobooking.git","clone_url":"https://github.com/fluxet/424721-keksobooking.git","svn_url":"https://github.com/fluxet/424721-keksobooking","homepage":null,"size":920,"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":"15a7a2cc270de560a11b57b02aaecb0ea3822669","user":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","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":135341721,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzNDE3MjE=","name":"424721-keksobooking","full_name":"htmlacademy-javascript/424721-keksobooking","owner":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","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/424721-keksobooking","description":"Антон Древетняк","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/deployments","created_at":"2018-05-29T19:10:58Z","updated_at":"2018-06-18T20:59:53Z","pushed_at":"2018-06-19T20:04:27Z","git_url":"git://github.com/htmlacademy-javascript/424721-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/424721-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/424721-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/424721-keksobooking","homepage":"https://github.com/fluxet/424721-keksobooking","size":924,"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":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/4"},"html":{"href":"https://github.com/htmlacademy-javascript/424721-keksobooking/pull/4"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/issues/4"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-keksobooking/statuses/7d716d7c2b3649363a25c714455fdc6665c7bc67"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fyvfyv"}}