{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/comments/154374046","pull_request_review_id":80530984,"id":154374046,"diff_hunk":"@@ -0,0 +1,124 @@\n+'use strict';\n+\n+var TITLE_APARTS = ['Большая уютная квартира', 'Маленькая неуютная квартира', 'Огромный прекрасный дворец', 'Маленький ужасный дворец', 'Красивый гостевой домик', 'Некрасивый негостеприимный домик', 'Уютное бунгало далеко от моря', 'Неуютное бунгало по колено в воде'];\n+var TYPE_APARTS = ['flat', 'house', 'bungalo'];\n+var CHECKIN_TIMES = ['12:00', '13:00', '14:00'];\n+var CHECKOUT_TIMES = CHECKIN_TIMES;\n+var FEATURES_APARTS = ['wifi', 'dishwasher', 'parking', 'washer', 'elevator', 'conditioner'];\n+\n+var mapActive = document.querySelector('.map');\n+mapActive.classList.remove('map--faded');\n+\n+var similarMapTemplate = document.querySelector('template').content.querySelector('.map__pin');\n+var secondListElement = document.querySelector('.map');\n+var secondMapTemplate = document.querySelector('template').content.querySelector('.map__card');\n+\n+var getRandomElement = function (massive) {\n+  var rand = Math.floor(Math.random() * massive.length);","path":"js/map.js","position":17,"original_position":17,"commit_id":"a97db37ca9629f487a584c22d0dfbb278f6f8bce","original_commit_id":"a97db37ca9629f487a584c22d0dfbb278f6f8bce","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":"Что нам мешать использовать тут `getRandomInt()`?","created_at":"2017-12-01T15:35:36Z","updated_at":"2017-12-01T15:49:17Z","html_url":"https://github.com/htmlacademy-javascript/22938-keksobooking/pull/2#discussion_r154374046","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/comments/154374046"},"html":{"href":"https://github.com/htmlacademy-javascript/22938-keksobooking/pull/2#discussion_r154374046"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/2","id":154901562,"html_url":"https://github.com/htmlacademy-javascript/22938-keksobooking/pull/2","diff_url":"https://github.com/htmlacademy-javascript/22938-keksobooking/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/22938-keksobooking/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/issues/2","number":2,"state":"open","locked":false,"title":"Личный проект: милый DOM","user":{"login":"Piotr-Setsko","id":30769404,"avatar_url":"https://avatars3.githubusercontent.com/u/30769404?v=4","gravatar_id":"","url":"https://api.github.com/users/Piotr-Setsko","html_url":"https://github.com/Piotr-Setsko","followers_url":"https://api.github.com/users/Piotr-Setsko/followers","following_url":"https://api.github.com/users/Piotr-Setsko/following{/other_user}","gists_url":"https://api.github.com/users/Piotr-Setsko/gists{/gist_id}","starred_url":"https://api.github.com/users/Piotr-Setsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piotr-Setsko/subscriptions","organizations_url":"https://api.github.com/users/Piotr-Setsko/orgs","repos_url":"https://api.github.com/users/Piotr-Setsko/repos","events_url":"https://api.github.com/users/Piotr-Setsko/events{/privacy}","received_events_url":"https://api.github.com/users/Piotr-Setsko/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: милый DOM](https://up.htmlacademy.ru/javascript/11/user/22938/tasks/10)\n\n:boom: https://htmlacademy-javascript.github.io/22938-keksobooking/2/","created_at":"2017-11-27T19:54:40Z","updated_at":"2017-12-01T15:49:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"353f7c0cde05c54b363403e36debfa7728211d93","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/22938-keksobooking/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/statuses/a97db37ca9629f487a584c22d0dfbb278f6f8bce","head":{"label":"Piotr-Setsko:module3-task1","ref":"module3-task1","sha":"a97db37ca9629f487a584c22d0dfbb278f6f8bce","user":{"login":"Piotr-Setsko","id":30769404,"avatar_url":"https://avatars3.githubusercontent.com/u/30769404?v=4","gravatar_id":"","url":"https://api.github.com/users/Piotr-Setsko","html_url":"https://github.com/Piotr-Setsko","followers_url":"https://api.github.com/users/Piotr-Setsko/followers","following_url":"https://api.github.com/users/Piotr-Setsko/following{/other_user}","gists_url":"https://api.github.com/users/Piotr-Setsko/gists{/gist_id}","starred_url":"https://api.github.com/users/Piotr-Setsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piotr-Setsko/subscriptions","organizations_url":"https://api.github.com/users/Piotr-Setsko/orgs","repos_url":"https://api.github.com/users/Piotr-Setsko/repos","events_url":"https://api.github.com/users/Piotr-Setsko/events{/privacy}","received_events_url":"https://api.github.com/users/Piotr-Setsko/received_events","type":"User","site_admin":false},"repo":{"id":110870808,"name":"22938-keksobooking","full_name":"Piotr-Setsko/22938-keksobooking","owner":{"login":"Piotr-Setsko","id":30769404,"avatar_url":"https://avatars3.githubusercontent.com/u/30769404?v=4","gravatar_id":"","url":"https://api.github.com/users/Piotr-Setsko","html_url":"https://github.com/Piotr-Setsko","followers_url":"https://api.github.com/users/Piotr-Setsko/followers","following_url":"https://api.github.com/users/Piotr-Setsko/following{/other_user}","gists_url":"https://api.github.com/users/Piotr-Setsko/gists{/gist_id}","starred_url":"https://api.github.com/users/Piotr-Setsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piotr-Setsko/subscriptions","organizations_url":"https://api.github.com/users/Piotr-Setsko/orgs","repos_url":"https://api.github.com/users/Piotr-Setsko/repos","events_url":"https://api.github.com/users/Piotr-Setsko/events{/privacy}","received_events_url":"https://api.github.com/users/Piotr-Setsko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Piotr-Setsko/22938-keksobooking","description":"Петруха Сецко","fork":true,"url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking","forks_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/forks","keys_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/teams","hooks_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/events","assignees_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/tags","blobs_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/languages","stargazers_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/subscription","commits_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/merges","archive_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/downloads","issues_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/Piotr-Setsko/22938-keksobooking/deployments","created_at":"2017-11-15T18:27:17Z","updated_at":"2017-11-15T18:27:19Z","pushed_at":"2017-12-01T10:01:12Z","git_url":"git://github.com/Piotr-Setsko/22938-keksobooking.git","ssh_url":"git@github.com:Piotr-Setsko/22938-keksobooking.git","clone_url":"https://github.com/Piotr-Setsko/22938-keksobooking.git","svn_url":"https://github.com/Piotr-Setsko/22938-keksobooking","homepage":null,"size":2210,"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":"7bc7c28c5a4a66512b24381333b1b48fff3d6574","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":110870668,"name":"22938-keksobooking","full_name":"htmlacademy-javascript/22938-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/22938-keksobooking","description":"Петруха Сецко","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/deployments","created_at":"2017-11-15T18:25:49Z","updated_at":"2017-11-15T18:42:24Z","pushed_at":"2017-12-01T15:42:43Z","git_url":"git://github.com/htmlacademy-javascript/22938-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/22938-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/22938-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/22938-keksobooking","homepage":"https://github.com/Piotr-Setsko/22938-keksobooking","size":2193,"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/22938-keksobooking/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/22938-keksobooking/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/22938-keksobooking/statuses/a97db37ca9629f487a584c22d0dfbb278f6f8bce"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dihar"}}