{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/comments/168740784","pull_request_review_id":97159094,"id":168740784,"diff_hunk":"@@ -245,3 +244,97 @@ var enabledFormMouseupHendler = function () {\n };\n mainButton.addEventListener('mouseup', enabledFormMouseupHendler);\n \n+// Заполнение формы\n+\n+var TITLE_MIN = 30;\n+var TITLE_MAX = 100;\n+var PRICE_MAX = 1000000;\n+var priceMin = 1000;\n+var noticeFormAttribute = ['#title', '#price', '#description'];\n+var noticeFormType = noticeFormContain.querySelector('#type');\n+var noticeFormTimein = noticeFormContain.querySelector('#timein');\n+var noticeFormTimeout = noticeFormContain.querySelector('#timeout');\n+var noticeFormRoomNumber = noticeFormContain.querySelector('#room_number');\n+var noticeFormCapacity = noticeFormContain.querySelector('#capacity');\n+var noticeFormCapacityOption = noticeFormCapacity.querySelectorAll('option');\n+noticeFormContain.querySelector(noticeFormAttribute[1]).style.fontSize = '.95rem';\n+\n+\n+var noticeFormRequired = function () {\n+  for (i = 0; i < noticeFormAttribute.length; i++) {\n+    var noticeFormAttr = noticeFormContain.querySelector(noticeFormAttribute[i]);\n+    noticeFormAttr.required = 'required';\n+  }\n+};\n+\n+noticeFormRequired();\n+\n+var noticeFormTitleMinMax = function () {\n+  var noticeFormTitle = noticeFormContain.querySelector(noticeFormAttribute[0]);\n+  noticeFormTitle.min = TITLE_MIN;\n+  noticeFormTitle.max = TITLE_MAX;\n+};\n+noticeFormTitleMinMax();\n+\n+var noticeFormPriceMinMax = function () {\n+  var noticeFormPrice = noticeFormContain.querySelector(noticeFormAttribute[1]);\n+  noticeFormPrice.max = PRICE_MAX;\n+  noticeFormPrice.min = priceMin;\n+  // Реализация минимальной цены в зависимости от выбранний квартиры.\n+  noticeFormType.onchange = function () {\n+\n+    var name = this.value;\n+\n+    switch (name) {\n+      case typeBilding[0]:\n+        priceMin = 1000;\n+        noticeFormPrice.placeholder = 'минимальная цена ' + priceMin;","path":"js/map.js","position":124,"original_position":124,"commit_id":"3a8f3901102b75037622e5b277b71f6f1f0e2e50","original_commit_id":"3a8f3901102b75037622e5b277b71f6f1f0e2e50","user":{"login":"vagsa2","id":12045521,"avatar_url":"https://avatars2.githubusercontent.com/u/12045521?v=4","gravatar_id":"","url":"https://api.github.com/users/vagsa2","html_url":"https://github.com/vagsa2","followers_url":"https://api.github.com/users/vagsa2/followers","following_url":"https://api.github.com/users/vagsa2/following{/other_user}","gists_url":"https://api.github.com/users/vagsa2/gists{/gist_id}","starred_url":"https://api.github.com/users/vagsa2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vagsa2/subscriptions","organizations_url":"https://api.github.com/users/vagsa2/orgs","repos_url":"https://api.github.com/users/vagsa2/repos","events_url":"https://api.github.com/users/vagsa2/events{/privacy}","received_events_url":"https://api.github.com/users/vagsa2/received_events","type":"User","site_admin":false},"body":"Вынеси эту строку за switch, а то нарушаешь DRY","created_at":"2018-02-16T12:10:47Z","updated_at":"2018-02-16T12:16:55Z","html_url":"https://github.com/htmlacademy-javascript/603093-keksobooking/pull/4#discussion_r168740784","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/comments/168740784"},"html":{"href":"https://github.com/htmlacademy-javascript/603093-keksobooking/pull/4#discussion_r168740784"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/4","id":169455493,"html_url":"https://github.com/htmlacademy-javascript/603093-keksobooking/pull/4","diff_url":"https://github.com/htmlacademy-javascript/603093-keksobooking/pull/4.diff","patch_url":"https://github.com/htmlacademy-javascript/603093-keksobooking/pull/4.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/issues/4","number":4,"state":"open","locked":false,"title":"Личный проект: доверяй, но проверяй","user":{"login":"kenda969","id":16485180,"avatar_url":"https://avatars3.githubusercontent.com/u/16485180?v=4","gravatar_id":"","url":"https://api.github.com/users/kenda969","html_url":"https://github.com/kenda969","followers_url":"https://api.github.com/users/kenda969/followers","following_url":"https://api.github.com/users/kenda969/following{/other_user}","gists_url":"https://api.github.com/users/kenda969/gists{/gist_id}","starred_url":"https://api.github.com/users/kenda969/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenda969/subscriptions","organizations_url":"https://api.github.com/users/kenda969/orgs","repos_url":"https://api.github.com/users/kenda969/repos","events_url":"https://api.github.com/users/kenda969/events{/privacy}","received_events_url":"https://api.github.com/users/kenda969/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: доверяй, но проверяй](https://up.htmlacademy.ru/javascript/12/user/603093/tasks/14)\n\n:boom: https://htmlacademy-javascript.github.io/603093-keksobooking/4/","created_at":"2018-02-15T18:54:16Z","updated_at":"2018-02-16T12:16:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfa530471b19fd6d7d0308817b292e20b3b86f96","assignee":{"login":"vagsa2","id":12045521,"avatar_url":"https://avatars2.githubusercontent.com/u/12045521?v=4","gravatar_id":"","url":"https://api.github.com/users/vagsa2","html_url":"https://github.com/vagsa2","followers_url":"https://api.github.com/users/vagsa2/followers","following_url":"https://api.github.com/users/vagsa2/following{/other_user}","gists_url":"https://api.github.com/users/vagsa2/gists{/gist_id}","starred_url":"https://api.github.com/users/vagsa2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vagsa2/subscriptions","organizations_url":"https://api.github.com/users/vagsa2/orgs","repos_url":"https://api.github.com/users/vagsa2/repos","events_url":"https://api.github.com/users/vagsa2/events{/privacy}","received_events_url":"https://api.github.com/users/vagsa2/received_events","type":"User","site_admin":false},"assignees":[{"login":"vagsa2","id":12045521,"avatar_url":"https://avatars2.githubusercontent.com/u/12045521?v=4","gravatar_id":"","url":"https://api.github.com/users/vagsa2","html_url":"https://github.com/vagsa2","followers_url":"https://api.github.com/users/vagsa2/followers","following_url":"https://api.github.com/users/vagsa2/following{/other_user}","gists_url":"https://api.github.com/users/vagsa2/gists{/gist_id}","starred_url":"https://api.github.com/users/vagsa2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vagsa2/subscriptions","organizations_url":"https://api.github.com/users/vagsa2/orgs","repos_url":"https://api.github.com/users/vagsa2/repos","events_url":"https://api.github.com/users/vagsa2/events{/privacy}","received_events_url":"https://api.github.com/users/vagsa2/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/4/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/4/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/issues/4/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/statuses/3a8f3901102b75037622e5b277b71f6f1f0e2e50","head":{"label":"kenda969:module4-task2","ref":"module4-task2","sha":"3a8f3901102b75037622e5b277b71f6f1f0e2e50","user":{"login":"kenda969","id":16485180,"avatar_url":"https://avatars3.githubusercontent.com/u/16485180?v=4","gravatar_id":"","url":"https://api.github.com/users/kenda969","html_url":"https://github.com/kenda969","followers_url":"https://api.github.com/users/kenda969/followers","following_url":"https://api.github.com/users/kenda969/following{/other_user}","gists_url":"https://api.github.com/users/kenda969/gists{/gist_id}","starred_url":"https://api.github.com/users/kenda969/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenda969/subscriptions","organizations_url":"https://api.github.com/users/kenda969/orgs","repos_url":"https://api.github.com/users/kenda969/repos","events_url":"https://api.github.com/users/kenda969/events{/privacy}","received_events_url":"https://api.github.com/users/kenda969/received_events","type":"User","site_admin":false},"repo":{"id":118659418,"name":"603093-keksobooking","full_name":"kenda969/603093-keksobooking","owner":{"login":"kenda969","id":16485180,"avatar_url":"https://avatars3.githubusercontent.com/u/16485180?v=4","gravatar_id":"","url":"https://api.github.com/users/kenda969","html_url":"https://github.com/kenda969","followers_url":"https://api.github.com/users/kenda969/followers","following_url":"https://api.github.com/users/kenda969/following{/other_user}","gists_url":"https://api.github.com/users/kenda969/gists{/gist_id}","starred_url":"https://api.github.com/users/kenda969/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenda969/subscriptions","organizations_url":"https://api.github.com/users/kenda969/orgs","repos_url":"https://api.github.com/users/kenda969/repos","events_url":"https://api.github.com/users/kenda969/events{/privacy}","received_events_url":"https://api.github.com/users/kenda969/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kenda969/603093-keksobooking","description":"Алексей Ляшневский","fork":true,"url":"https://api.github.com/repos/kenda969/603093-keksobooking","forks_url":"https://api.github.com/repos/kenda969/603093-keksobooking/forks","keys_url":"https://api.github.com/repos/kenda969/603093-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kenda969/603093-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kenda969/603093-keksobooking/teams","hooks_url":"https://api.github.com/repos/kenda969/603093-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/kenda969/603093-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/kenda969/603093-keksobooking/events","assignees_url":"https://api.github.com/repos/kenda969/603093-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/kenda969/603093-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/kenda969/603093-keksobooking/tags","blobs_url":"https://api.github.com/repos/kenda969/603093-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kenda969/603093-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kenda969/603093-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/kenda969/603093-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kenda969/603093-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/kenda969/603093-keksobooking/languages","stargazers_url":"https://api.github.com/repos/kenda969/603093-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/kenda969/603093-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/kenda969/603093-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/kenda969/603093-keksobooking/subscription","commits_url":"https://api.github.com/repos/kenda969/603093-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/kenda969/603093-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/kenda969/603093-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/kenda969/603093-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/kenda969/603093-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/kenda969/603093-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kenda969/603093-keksobooking/merges","archive_url":"https://api.github.com/repos/kenda969/603093-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kenda969/603093-keksobooking/downloads","issues_url":"https://api.github.com/repos/kenda969/603093-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/kenda969/603093-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/kenda969/603093-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/kenda969/603093-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kenda969/603093-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/kenda969/603093-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/kenda969/603093-keksobooking/deployments","created_at":"2018-01-23T19:36:06Z","updated_at":"2018-01-23T19:36:07Z","pushed_at":"2018-02-15T18:53:25Z","git_url":"git://github.com/kenda969/603093-keksobooking.git","ssh_url":"git@github.com:kenda969/603093-keksobooking.git","clone_url":"https://github.com/kenda969/603093-keksobooking.git","svn_url":"https://github.com/kenda969/603093-keksobooking","homepage":null,"size":789,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"9abd1241c2e93d002b878f04e8f7d8c41f6889b3","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":118654004,"name":"603093-keksobooking","full_name":"htmlacademy-javascript/603093-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/603093-keksobooking","description":"Алексей Ляшневский","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/deployments","created_at":"2018-01-23T18:50:36Z","updated_at":"2018-01-24T11:37:39Z","pushed_at":"2018-02-15T18:55:38Z","git_url":"git://github.com/htmlacademy-javascript/603093-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/603093-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/603093-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/603093-keksobooking","homepage":"https://github.com/kenda969/603093-keksobooking","size":806,"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/603093-keksobooking/pulls/4"},"html":{"href":"https://github.com/htmlacademy-javascript/603093-keksobooking/pull/4"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/issues/4"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/603093-keksobooking/statuses/3a8f3901102b75037622e5b277b71f6f1f0e2e50"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vagsa2"}}