{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/comments/183281902","pull_request_review_id":114249392,"id":183281902,"diff_hunk":"@@ -0,0 +1,149 @@\n+'use strict'\n+\n+// Data\n+\n+var similarListings = []\n+var listingTitle = ['Большая уютная квартира', 'Маленькая неуютная квартира', 'Огромный прекрасный дворец', 'Маленький ужасный дворец', 'Красивый гостевой домик', 'Некрасивый негостеприимный домик', 'Уютное бунгало далеко от моря', 'Неуютное бунгало по колено в воде']\n+var listingType = ['palace', 'flat', 'house', 'bungalo']\n+var listingTime = ['12:00', '13:00', '14:00']\n+var listingFeatures = ['wifi', 'dishwasher', 'parking', 'washer', 'elevator', 'conditioner']\n+var listingPhotos = ['http://o0.github.io/assets/images/tokyo/hotel1.jpg', 'http://o0.github.io/assets/images/tokyo/hotel2.jpg', 'http://o0.github.io/assets/images/tokyo/hotel3.jpg']\n+\n+// Elements\n+\n+var map = document.querySelector('.map')\n+var pinList = document.querySelector('.map__pins')\n+var pinTemplate = document.querySelector('.map__pin')\n+var pinImage = pinTemplate.querySelector('img')\n+var cardTemplate = document.querySelector('template').content.querySelector('.map__card')\n+var filtersContainer = document.querySelector('.map__filters-container')\n+\n+map.classList.remove('map--faded')\n+\n+// Helper functions\n+\n+var getRandomNumber = function (min, max) {\n+  return Math.floor(Math.random() * (max - min + 1)) + min\n+}\n+\n+var shuffleArray = function (array) {\n+  for (var i = array.length - 1; i > 0; i--) {\n+    var j = Math.floor(Math.random() * (i + 1))\n+    var temp = array[i]\n+    array[i] = array[j]\n+    array[j] = temp\n+  };\n+\n+  return array\n+}\n+\n+var getRandomValue = function (array) {\n+  return array[getRandomNumber(0, array.length - 1)]\n+}\n+\n+var getArrayOfRandomLength = function (initialArray) {\n+  var newArray = []\n+\n+  for (var i = 0; i < getRandomValue(0, initialArray.length); i++) {\n+    var randomValue = initialArray[getRandomNumber(0, initialArray.length - 1)]\n+    newArray.push(randomValue)\n+  }\n+\n+  return newArray\n+}\n+\n+// Main functions\n+\n+var generateSimilarListings = function () {\n+  for (var i = 0; i < 8; i++) {","path":"js/map.js","position":58,"original_position":58,"commit_id":"136786339bbd580be9d5a553a112619f9b7febe8","original_commit_id":"136786339bbd580be9d5a553a112619f9b7febe8","user":{"login":"heyiamvika","id":16744113,"avatar_url":"https://avatars2.githubusercontent.com/u/16744113?v=4","gravatar_id":"","url":"https://api.github.com/users/heyiamvika","html_url":"https://github.com/heyiamvika","followers_url":"https://api.github.com/users/heyiamvika/followers","following_url":"https://api.github.com/users/heyiamvika/following{/other_user}","gists_url":"https://api.github.com/users/heyiamvika/gists{/gist_id}","starred_url":"https://api.github.com/users/heyiamvika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyiamvika/subscriptions","organizations_url":"https://api.github.com/users/heyiamvika/orgs","repos_url":"https://api.github.com/users/heyiamvika/repos","events_url":"https://api.github.com/users/heyiamvika/events{/privacy}","received_events_url":"https://api.github.com/users/heyiamvika/received_events","type":"User","site_admin":false},"body":"есть","created_at":"2018-04-23T05:51:51Z","updated_at":"2018-04-23T05:51:51Z","html_url":"https://github.com/htmlacademy-javascript/474591-keksobooking/pull/2#discussion_r183281902","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/2","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/comments/183281902"},"html":{"href":"https://github.com/htmlacademy-javascript/474591-keksobooking/pull/2#discussion_r183281902"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/2"}},"in_reply_to_id":183229493},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/2","id":183260531,"html_url":"https://github.com/htmlacademy-javascript/474591-keksobooking/pull/2","diff_url":"https://github.com/htmlacademy-javascript/474591-keksobooking/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/474591-keksobooking/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/issues/2","number":2,"state":"open","locked":false,"title":"Личный проект: милый DOM","user":{"login":"heyiamvika","id":16744113,"avatar_url":"https://avatars2.githubusercontent.com/u/16744113?v=4","gravatar_id":"","url":"https://api.github.com/users/heyiamvika","html_url":"https://github.com/heyiamvika","followers_url":"https://api.github.com/users/heyiamvika/followers","following_url":"https://api.github.com/users/heyiamvika/following{/other_user}","gists_url":"https://api.github.com/users/heyiamvika/gists{/gist_id}","starred_url":"https://api.github.com/users/heyiamvika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyiamvika/subscriptions","organizations_url":"https://api.github.com/users/heyiamvika/orgs","repos_url":"https://api.github.com/users/heyiamvika/repos","events_url":"https://api.github.com/users/heyiamvika/events{/privacy}","received_events_url":"https://api.github.com/users/heyiamvika/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: милый DOM](https://up.htmlacademy.ru/javascript/13/user/474591/tasks/13)\n\n:boom: https://htmlacademy-javascript.github.io/474591-keksobooking/2/","created_at":"2018-04-22T07:48:38Z","updated_at":"2018-04-23T05:51:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbf985ee7c158a60e2ecea3d92567fb6d21ed53f","assignee":{"login":"rkhaslarov","id":24644463,"avatar_url":"https://avatars2.githubusercontent.com/u/24644463?v=4","gravatar_id":"","url":"https://api.github.com/users/rkhaslarov","html_url":"https://github.com/rkhaslarov","followers_url":"https://api.github.com/users/rkhaslarov/followers","following_url":"https://api.github.com/users/rkhaslarov/following{/other_user}","gists_url":"https://api.github.com/users/rkhaslarov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkhaslarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkhaslarov/subscriptions","organizations_url":"https://api.github.com/users/rkhaslarov/orgs","repos_url":"https://api.github.com/users/rkhaslarov/repos","events_url":"https://api.github.com/users/rkhaslarov/events{/privacy}","received_events_url":"https://api.github.com/users/rkhaslarov/received_events","type":"User","site_admin":false},"assignees":[{"login":"rkhaslarov","id":24644463,"avatar_url":"https://avatars2.githubusercontent.com/u/24644463?v=4","gravatar_id":"","url":"https://api.github.com/users/rkhaslarov","html_url":"https://github.com/rkhaslarov","followers_url":"https://api.github.com/users/rkhaslarov/followers","following_url":"https://api.github.com/users/rkhaslarov/following{/other_user}","gists_url":"https://api.github.com/users/rkhaslarov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkhaslarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkhaslarov/subscriptions","organizations_url":"https://api.github.com/users/rkhaslarov/orgs","repos_url":"https://api.github.com/users/rkhaslarov/repos","events_url":"https://api.github.com/users/rkhaslarov/events{/privacy}","received_events_url":"https://api.github.com/users/rkhaslarov/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/statuses/136786339bbd580be9d5a553a112619f9b7febe8","head":{"label":"heyiamvika:module3-task1","ref":"module3-task1","sha":"136786339bbd580be9d5a553a112619f9b7febe8","user":{"login":"heyiamvika","id":16744113,"avatar_url":"https://avatars2.githubusercontent.com/u/16744113?v=4","gravatar_id":"","url":"https://api.github.com/users/heyiamvika","html_url":"https://github.com/heyiamvika","followers_url":"https://api.github.com/users/heyiamvika/followers","following_url":"https://api.github.com/users/heyiamvika/following{/other_user}","gists_url":"https://api.github.com/users/heyiamvika/gists{/gist_id}","starred_url":"https://api.github.com/users/heyiamvika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyiamvika/subscriptions","organizations_url":"https://api.github.com/users/heyiamvika/orgs","repos_url":"https://api.github.com/users/heyiamvika/repos","events_url":"https://api.github.com/users/heyiamvika/events{/privacy}","received_events_url":"https://api.github.com/users/heyiamvika/received_events","type":"User","site_admin":false},"repo":{"id":127128041,"name":"474591-keksobooking","full_name":"heyiamvika/474591-keksobooking","owner":{"login":"heyiamvika","id":16744113,"avatar_url":"https://avatars2.githubusercontent.com/u/16744113?v=4","gravatar_id":"","url":"https://api.github.com/users/heyiamvika","html_url":"https://github.com/heyiamvika","followers_url":"https://api.github.com/users/heyiamvika/followers","following_url":"https://api.github.com/users/heyiamvika/following{/other_user}","gists_url":"https://api.github.com/users/heyiamvika/gists{/gist_id}","starred_url":"https://api.github.com/users/heyiamvika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyiamvika/subscriptions","organizations_url":"https://api.github.com/users/heyiamvika/orgs","repos_url":"https://api.github.com/users/heyiamvika/repos","events_url":"https://api.github.com/users/heyiamvika/events{/privacy}","received_events_url":"https://api.github.com/users/heyiamvika/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/heyiamvika/474591-keksobooking","description":"Viktoriia Nosova","fork":true,"url":"https://api.github.com/repos/heyiamvika/474591-keksobooking","forks_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/forks","keys_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/teams","hooks_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/events","assignees_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/tags","blobs_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/languages","stargazers_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/subscription","commits_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/merges","archive_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/downloads","issues_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/heyiamvika/474591-keksobooking/deployments","created_at":"2018-03-28T11:07:59Z","updated_at":"2018-03-28T11:08:01Z","pushed_at":"2018-04-22T07:23:49Z","git_url":"git://github.com/heyiamvika/474591-keksobooking.git","ssh_url":"git@github.com:heyiamvika/474591-keksobooking.git","clone_url":"https://github.com/heyiamvika/474591-keksobooking.git","svn_url":"https://github.com/heyiamvika/474591-keksobooking","homepage":null,"size":585,"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":"a35a2e345e18a7d20cacd9bebfad13119108523a","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":127127710,"name":"474591-keksobooking","full_name":"htmlacademy-javascript/474591-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/474591-keksobooking","description":"Viktoriia Nosova","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/deployments","created_at":"2018-03-28T11:04:52Z","updated_at":"2018-03-28T15:21:35Z","pushed_at":"2018-04-22T08:39:54Z","git_url":"git://github.com/htmlacademy-javascript/474591-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/474591-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/474591-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/474591-keksobooking","homepage":"https://github.com/heyiamvika/474591-keksobooking","size":579,"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/474591-keksobooking/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/474591-keksobooking/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/474591-keksobooking/statuses/136786339bbd580be9d5a553a112619f9b7febe8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"heyiamvika"}}