{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/comments/154755769","pull_request_review_id":80963427,"id":154755769,"diff_hunk":"@@ -386,9 +422,244 @@\n     return post;\n   }\n \n-  toggleBlock('.map', 'map--faded');\n-  var postsData = getGeneratedPosts(7);\n-  var posts = getGeneratedPins(postsData);\n-  renderPins(posts);\n-  addPostToMap('.map', createPost(postsData[0]));\n+  /**\n+   * Нажат ENTER?\n+   *\n+   * @param {Event} e\n+   * @return {boolean}\n+   */\n+  function isKeyboardEnterKey(e) {\n+    return KEYBOARD_KEY_ENTER === e.keyCode;\n+  }\n+\n+  /**\n+   * Нажат ESC?\n+   *\n+   * @param {Event} e\n+   * @return {boolean}\n+   */\n+  function isKeyboardEscKey(e) {\n+    return KEYBOARD_KEY_ESC === e.keyCode;\n+  }\n+\n+  /**\n+   * Инициализация интерфейса.\n+   */\n+  function initInterface() {\n+    var map = document.querySelector('.map');\n+    var form = document.querySelector('.notice__form');\n+    var pinMain = map.querySelector('.map__pin--main');\n+    var pinsContainer = map.querySelector('.map__pins');\n+    var postData = getPosts(7);","path":"js/map.js","position":251,"original_position":251,"commit_id":"a5a12f6c1b86fa9f5249cff0e5c02b1219a838f7","original_commit_id":"a5a12f6c1b86fa9f5249cff0e5c02b1219a838f7","user":{"login":"dihar","id":12913462,"avatar_url":"https://avatars2.githubusercontent.com/u/12913462?v=4","gravatar_id":"","url":"https://api.github.com/users/dihar","html_url":"https://github.com/dihar","followers_url":"https://api.github.com/users/dihar/followers","following_url":"https://api.github.com/users/dihar/following{/other_user}","gists_url":"https://api.github.com/users/dihar/gists{/gist_id}","starred_url":"https://api.github.com/users/dihar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dihar/subscriptions","organizations_url":"https://api.github.com/users/dihar/orgs","repos_url":"https://api.github.com/users/dihar/repos","events_url":"https://api.github.com/users/dihar/events{/privacy}","received_events_url":"https://api.github.com/users/dihar/received_events","type":"User","site_admin":false},"body":"8 мест же","created_at":"2017-12-04T19:47:28Z","updated_at":"2017-12-04T19:58:49Z","html_url":"https://github.com/htmlacademy-javascript/18002-keksobooking/pull/4#discussion_r154755769","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/comments/154755769"},"html":{"href":"https://github.com/htmlacademy-javascript/18002-keksobooking/pull/4#discussion_r154755769"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/4","id":155694945,"html_url":"https://github.com/htmlacademy-javascript/18002-keksobooking/pull/4","diff_url":"https://github.com/htmlacademy-javascript/18002-keksobooking/pull/4.diff","patch_url":"https://github.com/htmlacademy-javascript/18002-keksobooking/pull/4.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/issues/4","number":4,"state":"open","locked":false,"title":"Личный проект: подробности","user":{"login":"academyunit","id":30853878,"avatar_url":"https://avatars2.githubusercontent.com/u/30853878?v=4","gravatar_id":"","url":"https://api.github.com/users/academyunit","html_url":"https://github.com/academyunit","followers_url":"https://api.github.com/users/academyunit/followers","following_url":"https://api.github.com/users/academyunit/following{/other_user}","gists_url":"https://api.github.com/users/academyunit/gists{/gist_id}","starred_url":"https://api.github.com/users/academyunit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/academyunit/subscriptions","organizations_url":"https://api.github.com/users/academyunit/orgs","repos_url":"https://api.github.com/users/academyunit/repos","events_url":"https://api.github.com/users/academyunit/events{/privacy}","received_events_url":"https://api.github.com/users/academyunit/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: подробности](https://up.htmlacademy.ru/javascript/11/user/18002/tasks/13)\n\n:boom: https://htmlacademy-javascript.github.io/18002-keksobooking/4/","created_at":"2017-11-30T19:15:40Z","updated_at":"2017-12-04T19:58:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"150c508dfc055446c8dc131fff1834217d130499","assignee":{"login":"dihar","id":12913462,"avatar_url":"https://avatars2.githubusercontent.com/u/12913462?v=4","gravatar_id":"","url":"https://api.github.com/users/dihar","html_url":"https://github.com/dihar","followers_url":"https://api.github.com/users/dihar/followers","following_url":"https://api.github.com/users/dihar/following{/other_user}","gists_url":"https://api.github.com/users/dihar/gists{/gist_id}","starred_url":"https://api.github.com/users/dihar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dihar/subscriptions","organizations_url":"https://api.github.com/users/dihar/orgs","repos_url":"https://api.github.com/users/dihar/repos","events_url":"https://api.github.com/users/dihar/events{/privacy}","received_events_url":"https://api.github.com/users/dihar/received_events","type":"User","site_admin":false},"assignees":[{"login":"dihar","id":12913462,"avatar_url":"https://avatars2.githubusercontent.com/u/12913462?v=4","gravatar_id":"","url":"https://api.github.com/users/dihar","html_url":"https://github.com/dihar","followers_url":"https://api.github.com/users/dihar/followers","following_url":"https://api.github.com/users/dihar/following{/other_user}","gists_url":"https://api.github.com/users/dihar/gists{/gist_id}","starred_url":"https://api.github.com/users/dihar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dihar/subscriptions","organizations_url":"https://api.github.com/users/dihar/orgs","repos_url":"https://api.github.com/users/dihar/repos","events_url":"https://api.github.com/users/dihar/events{/privacy}","received_events_url":"https://api.github.com/users/dihar/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/4/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/4/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/issues/4/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/statuses/a5a12f6c1b86fa9f5249cff0e5c02b1219a838f7","head":{"label":"academyunit:module4-task1","ref":"module4-task1","sha":"a5a12f6c1b86fa9f5249cff0e5c02b1219a838f7","user":{"login":"academyunit","id":30853878,"avatar_url":"https://avatars2.githubusercontent.com/u/30853878?v=4","gravatar_id":"","url":"https://api.github.com/users/academyunit","html_url":"https://github.com/academyunit","followers_url":"https://api.github.com/users/academyunit/followers","following_url":"https://api.github.com/users/academyunit/following{/other_user}","gists_url":"https://api.github.com/users/academyunit/gists{/gist_id}","starred_url":"https://api.github.com/users/academyunit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/academyunit/subscriptions","organizations_url":"https://api.github.com/users/academyunit/orgs","repos_url":"https://api.github.com/users/academyunit/repos","events_url":"https://api.github.com/users/academyunit/events{/privacy}","received_events_url":"https://api.github.com/users/academyunit/received_events","type":"User","site_admin":false},"repo":{"id":110876935,"name":"18002-keksobooking","full_name":"academyunit/18002-keksobooking","owner":{"login":"academyunit","id":30853878,"avatar_url":"https://avatars2.githubusercontent.com/u/30853878?v=4","gravatar_id":"","url":"https://api.github.com/users/academyunit","html_url":"https://github.com/academyunit","followers_url":"https://api.github.com/users/academyunit/followers","following_url":"https://api.github.com/users/academyunit/following{/other_user}","gists_url":"https://api.github.com/users/academyunit/gists{/gist_id}","starred_url":"https://api.github.com/users/academyunit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/academyunit/subscriptions","organizations_url":"https://api.github.com/users/academyunit/orgs","repos_url":"https://api.github.com/users/academyunit/repos","events_url":"https://api.github.com/users/academyunit/events{/privacy}","received_events_url":"https://api.github.com/users/academyunit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/academyunit/18002-keksobooking","description":"Владимир Крюков","fork":true,"url":"https://api.github.com/repos/academyunit/18002-keksobooking","forks_url":"https://api.github.com/repos/academyunit/18002-keksobooking/forks","keys_url":"https://api.github.com/repos/academyunit/18002-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/academyunit/18002-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/academyunit/18002-keksobooking/teams","hooks_url":"https://api.github.com/repos/academyunit/18002-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/academyunit/18002-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/academyunit/18002-keksobooking/events","assignees_url":"https://api.github.com/repos/academyunit/18002-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/academyunit/18002-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/academyunit/18002-keksobooking/tags","blobs_url":"https://api.github.com/repos/academyunit/18002-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/academyunit/18002-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/academyunit/18002-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/academyunit/18002-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/academyunit/18002-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/academyunit/18002-keksobooking/languages","stargazers_url":"https://api.github.com/repos/academyunit/18002-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/academyunit/18002-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/academyunit/18002-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/academyunit/18002-keksobooking/subscription","commits_url":"https://api.github.com/repos/academyunit/18002-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/academyunit/18002-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/academyunit/18002-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/academyunit/18002-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/academyunit/18002-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/academyunit/18002-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/academyunit/18002-keksobooking/merges","archive_url":"https://api.github.com/repos/academyunit/18002-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/academyunit/18002-keksobooking/downloads","issues_url":"https://api.github.com/repos/academyunit/18002-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/academyunit/18002-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/academyunit/18002-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/academyunit/18002-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/academyunit/18002-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/academyunit/18002-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/academyunit/18002-keksobooking/deployments","created_at":"2017-11-15T19:27:54Z","updated_at":"2017-11-15T19:27:55Z","pushed_at":"2017-12-03T15:24:31Z","git_url":"git://github.com/academyunit/18002-keksobooking.git","ssh_url":"git@github.com:academyunit/18002-keksobooking.git","clone_url":"https://github.com/academyunit/18002-keksobooking.git","svn_url":"https://github.com/academyunit/18002-keksobooking","homepage":null,"size":2216,"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":"6b60c749dbc5a081c2c56d8934d77da9d2f6e320","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":110796886,"name":"18002-keksobooking","full_name":"htmlacademy-javascript/18002-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/18002-keksobooking","description":"Владимир Крюков","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/deployments","created_at":"2017-11-15T07:03:39Z","updated_at":"2017-11-15T19:30:17Z","pushed_at":"2017-12-04T19:35:57Z","git_url":"git://github.com/htmlacademy-javascript/18002-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/18002-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/18002-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/18002-keksobooking","homepage":"https://github.com/academyunit/18002-keksobooking","size":2246,"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/18002-keksobooking/pulls/4"},"html":{"href":"https://github.com/htmlacademy-javascript/18002-keksobooking/pull/4"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/issues/4"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/18002-keksobooking/statuses/a5a12f6c1b86fa9f5249cff0e5c02b1219a838f7"}},"author_association":"NONE"}}
{"actor":{"display_login":"dihar"}}