{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/comments/168091451","pull_request_review_id":96399425,"id":168091451,"diff_hunk":"@@ -234,5 +235,70 @@ var onPinMouseDownHandler = function (evt) {\n   document.addEventListener('mouseup', onMouseUp);\n };\n \n+var onRoomTypeChangeHandler = function (evt) {\n+  var roomPrices = {\n+    'flat': 0,\n+    'bungalo': 1000,\n+    'house': 5000,\n+    'palace': 10000\n+  };\n+\n+  roomPrice.min = roomPrices[evt.currentTarget.value];\n+};\n+\n+var onRoomTimeInChangeHandler = function (evt) {\n+  roomTimeOut.value = evt.currentTarget.value;\n+};\n+\n+var onRoomTimeOutChangeHandler = function (evt) {\n+  roomTimeIn.value = evt.currentTarget.value;\n+};\n+\n+var onResetFormClickHandler = function () {\n+  var mapWithPins = document.querySelector('.map');\n+  var userForm = document.querySelector('.notice__form');\n+  var mapPins = document.querySelectorAll('.map__pin:not(.map__pin--main)');","path":"js/map.js","position":54,"original_position":54,"commit_id":"2016a843722aab4a97b967e4c3446d12f97aafe4","original_commit_id":"2016a843722aab4a97b967e4c3446d12f97aafe4","user":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars3.githubusercontent.com/u/10248822?v=4","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"body":"лучше избегать составных селекторов в коде или хотя бы выносить их в строковую константу, название которой будет говорить, что именно ищется\r\n\r\nсписок пинов может измениться, поэтому их лучше искать каждый раз при вызове хэндлера, поэтому это ок, что ты их ищешь тут (в отличие от предыдущей строки) ","created_at":"2018-02-14T07:11:09Z","updated_at":"2018-02-14T07:20:29Z","html_url":"https://github.com/htmlacademy-javascript/330273-keksobooking/pull/4#discussion_r168091451","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/comments/168091451"},"html":{"href":"https://github.com/htmlacademy-javascript/330273-keksobooking/pull/4#discussion_r168091451"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/4","id":168933741,"html_url":"https://github.com/htmlacademy-javascript/330273-keksobooking/pull/4","diff_url":"https://github.com/htmlacademy-javascript/330273-keksobooking/pull/4.diff","patch_url":"https://github.com/htmlacademy-javascript/330273-keksobooking/pull/4.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/issues/4","number":4,"state":"open","locked":false,"title":"Личный проект: доверяй, но проверяй","user":{"login":"miledishka","id":33052487,"avatar_url":"https://avatars1.githubusercontent.com/u/33052487?v=4","gravatar_id":"","url":"https://api.github.com/users/miledishka","html_url":"https://github.com/miledishka","followers_url":"https://api.github.com/users/miledishka/followers","following_url":"https://api.github.com/users/miledishka/following{/other_user}","gists_url":"https://api.github.com/users/miledishka/gists{/gist_id}","starred_url":"https://api.github.com/users/miledishka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miledishka/subscriptions","organizations_url":"https://api.github.com/users/miledishka/orgs","repos_url":"https://api.github.com/users/miledishka/repos","events_url":"https://api.github.com/users/miledishka/events{/privacy}","received_events_url":"https://api.github.com/users/miledishka/received_events","type":"User","site_admin":false},"body":"Базовая валидация формы и обработчики\n\n---\n:mortar_board: [Личный проект: доверяй, но проверяй](https://up.htmlacademy.ru/javascript/12/user/330273/tasks/14)\n\n:boom: https://htmlacademy-javascript.github.io/330273-keksobooking/4/","created_at":"2018-02-13T19:24:18Z","updated_at":"2018-02-14T07:20:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1f53f885125fdb23c58cc82f849eac6b9df7885","assignee":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars3.githubusercontent.com/u/10248822?v=4","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"assignees":[{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars3.githubusercontent.com/u/10248822?v=4","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/4/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/4/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/issues/4/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/statuses/2016a843722aab4a97b967e4c3446d12f97aafe4","head":{"label":"miledishka:module4-task2","ref":"module4-task2","sha":"2016a843722aab4a97b967e4c3446d12f97aafe4","user":{"login":"miledishka","id":33052487,"avatar_url":"https://avatars1.githubusercontent.com/u/33052487?v=4","gravatar_id":"","url":"https://api.github.com/users/miledishka","html_url":"https://github.com/miledishka","followers_url":"https://api.github.com/users/miledishka/followers","following_url":"https://api.github.com/users/miledishka/following{/other_user}","gists_url":"https://api.github.com/users/miledishka/gists{/gist_id}","starred_url":"https://api.github.com/users/miledishka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miledishka/subscriptions","organizations_url":"https://api.github.com/users/miledishka/orgs","repos_url":"https://api.github.com/users/miledishka/repos","events_url":"https://api.github.com/users/miledishka/events{/privacy}","received_events_url":"https://api.github.com/users/miledishka/received_events","type":"User","site_admin":false},"repo":{"id":118787419,"name":"330273-keksobooking","full_name":"miledishka/330273-keksobooking","owner":{"login":"miledishka","id":33052487,"avatar_url":"https://avatars1.githubusercontent.com/u/33052487?v=4","gravatar_id":"","url":"https://api.github.com/users/miledishka","html_url":"https://github.com/miledishka","followers_url":"https://api.github.com/users/miledishka/followers","following_url":"https://api.github.com/users/miledishka/following{/other_user}","gists_url":"https://api.github.com/users/miledishka/gists{/gist_id}","starred_url":"https://api.github.com/users/miledishka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miledishka/subscriptions","organizations_url":"https://api.github.com/users/miledishka/orgs","repos_url":"https://api.github.com/users/miledishka/repos","events_url":"https://api.github.com/users/miledishka/events{/privacy}","received_events_url":"https://api.github.com/users/miledishka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miledishka/330273-keksobooking","description":"Юлия Родионова","fork":true,"url":"https://api.github.com/repos/miledishka/330273-keksobooking","forks_url":"https://api.github.com/repos/miledishka/330273-keksobooking/forks","keys_url":"https://api.github.com/repos/miledishka/330273-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miledishka/330273-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miledishka/330273-keksobooking/teams","hooks_url":"https://api.github.com/repos/miledishka/330273-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/miledishka/330273-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/miledishka/330273-keksobooking/events","assignees_url":"https://api.github.com/repos/miledishka/330273-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/miledishka/330273-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/miledishka/330273-keksobooking/tags","blobs_url":"https://api.github.com/repos/miledishka/330273-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miledishka/330273-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miledishka/330273-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/miledishka/330273-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miledishka/330273-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/miledishka/330273-keksobooking/languages","stargazers_url":"https://api.github.com/repos/miledishka/330273-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/miledishka/330273-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/miledishka/330273-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/miledishka/330273-keksobooking/subscription","commits_url":"https://api.github.com/repos/miledishka/330273-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/miledishka/330273-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/miledishka/330273-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/miledishka/330273-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/miledishka/330273-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/miledishka/330273-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miledishka/330273-keksobooking/merges","archive_url":"https://api.github.com/repos/miledishka/330273-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miledishka/330273-keksobooking/downloads","issues_url":"https://api.github.com/repos/miledishka/330273-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/miledishka/330273-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/miledishka/330273-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/miledishka/330273-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miledishka/330273-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/miledishka/330273-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/miledishka/330273-keksobooking/deployments","created_at":"2018-01-24T15:57:36Z","updated_at":"2018-01-24T15:57:38Z","pushed_at":"2018-02-13T19:24:00Z","git_url":"git://github.com/miledishka/330273-keksobooking.git","ssh_url":"git@github.com:miledishka/330273-keksobooking.git","clone_url":"https://github.com/miledishka/330273-keksobooking.git","svn_url":"https://github.com/miledishka/330273-keksobooking","homepage":null,"size":764,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"19ead45e2b4221588d4f5174ce6cb51239913517","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":118730971,"name":"330273-keksobooking","full_name":"htmlacademy-javascript/330273-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/330273-keksobooking","description":"Юлия Родионова","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/deployments","created_at":"2018-01-24T07:45:03Z","updated_at":"2018-01-24T16:17:02Z","pushed_at":"2018-02-14T06:56:08Z","git_url":"git://github.com/htmlacademy-javascript/330273-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/330273-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/330273-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/330273-keksobooking","homepage":"https://github.com/miledishka/330273-keksobooking","size":775,"stargazers_count":0,"watchers_count":0,"language":"HTML","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/330273-keksobooking/pulls/4"},"html":{"href":"https://github.com/htmlacademy-javascript/330273-keksobooking/pull/4"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/issues/4"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/330273-keksobooking/statuses/2016a843722aab4a97b967e4c3446d12f97aafe4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bvanyushin"}}