{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/comments/165817087","pull_request_review_id":93819125,"id":165817087,"diff_hunk":"@@ -0,0 +1,163 @@\n+'use strict';\n+\n+var QUANTITY_OFFER = 8;\n+var OFFER_TITLES = ['Большая уютная квартира', 'Маленькая неуютная квартира', 'Огромный прекрасный дворец', 'Маленький ужасный дворец', 'Красивый гостевой домик', 'Некрасивый негостеприимный домик', 'Уютное бунгало далеко от моря', 'Неуютное бунгало по колено в воде'];\n+var OFFER_TYPES = ['flat', 'house', 'bungalo'];\n+var OFFER_TIMES = ['12:00', '13:00', '14:00'];\n+var OFFER_FEATURES = ['wifi', 'dishwasher', 'parking', 'washer', 'elevator', 'conditioner'];\n+var OFFER_PHOTOS = ['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+var PIN_HEIGHT = 70;\n+var PIN_WIDTH = 50;\n+var PIN_IMG_WIDTH = 40;\n+var PIN_IMG_HEIGHT = 40;\n+var PHOTO_WIDTH = 100;\n+var MIN_COORDINATE_X = 300;\n+var MAX_COORDINATE_X = 900;\n+var MIN_COORDINATE_Y = 150;\n+var MAX_COORDINATE_Y = 500;\n+var MIN_PRICE = 1000;\n+var MAX_PRICE = 1000000;\n+\n+document.querySelector('.map').classList.remove('.map--faded');\n+\n+var renderOffer = function (quantity) {\n+  var offers = [];\n+\n+  // создание массива фотографий\n+  var imgUrls = [];\n+  for (var i = 1; i <= QUANTITY_OFFER; i++) {\n+    imgUrls.push('img/avatars/user0' + i + '.png');\n+  }\n+  // копируем массив названий и фотографий\n+  var offersTitles = OFFER_TITLES.slice();\n+  var offersPhotos = OFFER_PHOTOS.slice();\n+  // создание объекта предложения\n+  for (i = 0; i < quantity; i++) {\n+    // получение номера фото предложения\n+    var offerImgNumber = Math.floor(Math.random() * imgUrls.length);\n+    // получение номера названия предложения\n+    var offerTitleNumber = Math.floor(Math.random() * offersTitles.length);\n+    // сортировка массива случайным образом\n+    offersPhotos.sort();\n+    // формируем массив случайной длины\n+    var offersFeatures = OFFER_FEATURES.slice();\n+    offersFeatures.sort();","path":"js/map.js","position":44,"original_position":44,"commit_id":"0b4f80ea5d7d0e83e66b3dd63c52b41cb3084db7","original_commit_id":"0b4f80ea5d7d0e83e66b3dd63c52b41cb3084db7","user":{"login":"VsevolodArtemyev","id":14345492,"avatar_url":"https://avatars1.githubusercontent.com/u/14345492?v=4","gravatar_id":"","url":"https://api.github.com/users/VsevolodArtemyev","html_url":"https://github.com/VsevolodArtemyev","followers_url":"https://api.github.com/users/VsevolodArtemyev/followers","following_url":"https://api.github.com/users/VsevolodArtemyev/following{/other_user}","gists_url":"https://api.github.com/users/VsevolodArtemyev/gists{/gist_id}","starred_url":"https://api.github.com/users/VsevolodArtemyev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VsevolodArtemyev/subscriptions","organizations_url":"https://api.github.com/users/VsevolodArtemyev/orgs","repos_url":"https://api.github.com/users/VsevolodArtemyev/repos","events_url":"https://api.github.com/users/VsevolodArtemyev/events{/privacy}","received_events_url":"https://api.github.com/users/VsevolodArtemyev/received_events","type":"User","site_admin":false},"body":"Для чего сортировка?","created_at":"2018-02-03T15:18:17Z","updated_at":"2018-02-03T15:18:17Z","html_url":"https://github.com/htmlacademy-javascript/97831-keksobooking/pull/2#discussion_r165817087","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/comments/165817087"},"html":{"href":"https://github.com/htmlacademy-javascript/97831-keksobooking/pull/2#discussion_r165817087"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/2","id":166874255,"html_url":"https://github.com/htmlacademy-javascript/97831-keksobooking/pull/2","diff_url":"https://github.com/htmlacademy-javascript/97831-keksobooking/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/97831-keksobooking/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/issues/2","number":2,"state":"open","locked":false,"title":"Личный проект: милый DOM","user":{"login":"AsenchikA","id":21045155,"avatar_url":"https://avatars0.githubusercontent.com/u/21045155?v=4","gravatar_id":"","url":"https://api.github.com/users/AsenchikA","html_url":"https://github.com/AsenchikA","followers_url":"https://api.github.com/users/AsenchikA/followers","following_url":"https://api.github.com/users/AsenchikA/following{/other_user}","gists_url":"https://api.github.com/users/AsenchikA/gists{/gist_id}","starred_url":"https://api.github.com/users/AsenchikA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsenchikA/subscriptions","organizations_url":"https://api.github.com/users/AsenchikA/orgs","repos_url":"https://api.github.com/users/AsenchikA/repos","events_url":"https://api.github.com/users/AsenchikA/events{/privacy}","received_events_url":"https://api.github.com/users/AsenchikA/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: милый DOM](https://up.htmlacademy.ru/javascript/12/user/97831/tasks/10)","created_at":"2018-02-02T18:39:37Z","updated_at":"2018-02-03T15:18:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"141c40c1b70e3b037932e906e619f18b44f7d70d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/statuses/0b4f80ea5d7d0e83e66b3dd63c52b41cb3084db7","head":{"label":"AsenchikA:module3-task1","ref":"module3-task1","sha":"0b4f80ea5d7d0e83e66b3dd63c52b41cb3084db7","user":{"login":"AsenchikA","id":21045155,"avatar_url":"https://avatars0.githubusercontent.com/u/21045155?v=4","gravatar_id":"","url":"https://api.github.com/users/AsenchikA","html_url":"https://github.com/AsenchikA","followers_url":"https://api.github.com/users/AsenchikA/followers","following_url":"https://api.github.com/users/AsenchikA/following{/other_user}","gists_url":"https://api.github.com/users/AsenchikA/gists{/gist_id}","starred_url":"https://api.github.com/users/AsenchikA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsenchikA/subscriptions","organizations_url":"https://api.github.com/users/AsenchikA/orgs","repos_url":"https://api.github.com/users/AsenchikA/repos","events_url":"https://api.github.com/users/AsenchikA/events{/privacy}","received_events_url":"https://api.github.com/users/AsenchikA/received_events","type":"User","site_admin":false},"repo":{"id":118657759,"name":"97831-keksobooking","full_name":"AsenchikA/97831-keksobooking","owner":{"login":"AsenchikA","id":21045155,"avatar_url":"https://avatars0.githubusercontent.com/u/21045155?v=4","gravatar_id":"","url":"https://api.github.com/users/AsenchikA","html_url":"https://github.com/AsenchikA","followers_url":"https://api.github.com/users/AsenchikA/followers","following_url":"https://api.github.com/users/AsenchikA/following{/other_user}","gists_url":"https://api.github.com/users/AsenchikA/gists{/gist_id}","starred_url":"https://api.github.com/users/AsenchikA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsenchikA/subscriptions","organizations_url":"https://api.github.com/users/AsenchikA/orgs","repos_url":"https://api.github.com/users/AsenchikA/repos","events_url":"https://api.github.com/users/AsenchikA/events{/privacy}","received_events_url":"https://api.github.com/users/AsenchikA/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AsenchikA/97831-keksobooking","description":"Анастасия Асенчик","fork":true,"url":"https://api.github.com/repos/AsenchikA/97831-keksobooking","forks_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/forks","keys_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/teams","hooks_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/events","assignees_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/tags","blobs_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/languages","stargazers_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/subscription","commits_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/merges","archive_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/downloads","issues_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/AsenchikA/97831-keksobooking/deployments","created_at":"2018-01-23T19:22:20Z","updated_at":"2018-01-23T19:22:22Z","pushed_at":"2018-02-02T18:38:55Z","git_url":"git://github.com/AsenchikA/97831-keksobooking.git","ssh_url":"git@github.com:AsenchikA/97831-keksobooking.git","clone_url":"https://github.com/AsenchikA/97831-keksobooking.git","svn_url":"https://github.com/AsenchikA/97831-keksobooking","homepage":null,"size":752,"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":"b88d625c65258a363020f7047f9c5b215b810888","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":118656990,"name":"97831-keksobooking","full_name":"htmlacademy-javascript/97831-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/97831-keksobooking","description":"Анастасия Асенчик","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/deployments","created_at":"2018-01-23T19:15:24Z","updated_at":"2018-01-23T19:46:44Z","pushed_at":"2018-02-02T18:39:38Z","git_url":"git://github.com/htmlacademy-javascript/97831-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/97831-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/97831-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/97831-keksobooking","homepage":"https://github.com/AsenchikA/97831-keksobooking","size":748,"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":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/97831-keksobooking/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/97831-keksobooking/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/97831-keksobooking/statuses/0b4f80ea5d7d0e83e66b3dd63c52b41cb3084db7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"VsevolodArtemyev"}}