{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/comments/328473269","pull_request_review_id":293531482,"id":328473269,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyODQ3MzI2OQ==","diff_hunk":"@@ -88,5 +101,44 @@ function createPins(arr) {\n   mapPins.appendChild(fragment);\n }\n \n-var deals = createDealsArray(DEALS_NEARBY_AMOUNT);\n-createPins(deals);\n+\n+function createFeaturesTag(features) {\n+  var featuresHTMLText = '';\n+  for (var i = 0; i < features.length; i++) {\n+    featuresHTMLText = featuresHTMLText + '<li class=\"popup__feature popup__feature--' + features[i] + '\"></li>';\n+  }\n+\n+  return featuresHTMLText;\n+}\n+\n+\n+function createPhotosHTML(photos) {\n+  var photosHTMLText = '';\n+  for (var i = 0; i < photos.length; i++) {\n+    photosHTMLText = photosHTMLText + '<img src=\"' + photos[i] + '\" class=\"popup__photo\" width=\"45\" height=\"40\" alt=\"Фотография жилья\">';\n+  }\n+\n+  return photosHTMLText;\n+}\n+\n+\n+function showCard(offer) {\n+  var cardElement = mapCardTemplate.cloneNode(true);\n+\n+  cardElement.querySelector('.popup__title').textContent = offer.offer.title;\n+  cardElement.querySelector('.popup__text--address').textContent = offer.offer.address;\n+  cardElement.querySelector('.popup__text--price').textContent = offer.offer.price + '¥/ночь';\n+  cardElement.querySelector('.popup__type').textContent = RUSSIAN_WORDS[offer.offer.type];\n+  cardElement.querySelector('.popup__text--capacity').textContent = offer.offer.rooms + ' комнаты для ' + offer.offer.guests + ' гостей.';","path":"js/main.js","position":130,"original_position":130,"commit_id":"c1f970b866e39e6bffbe08c86665358b979f65f3","original_commit_id":"c1f970b866e39e6bffbe08c86665358b979f65f3","user":{"login":"ashkuc","id":12067195,"node_id":"MDQ6VXNlcjEyMDY3MTk1","avatar_url":"https://avatars1.githubusercontent.com/u/12067195?v=4","gravatar_id":"","url":"https://api.github.com/users/ashkuc","html_url":"https://github.com/ashkuc","followers_url":"https://api.github.com/users/ashkuc/followers","following_url":"https://api.github.com/users/ashkuc/following{/other_user}","gists_url":"https://api.github.com/users/ashkuc/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkuc/subscriptions","organizations_url":"https://api.github.com/users/ashkuc/orgs","repos_url":"https://api.github.com/users/ashkuc/repos","events_url":"https://api.github.com/users/ashkuc/events{/privacy}","received_events_url":"https://api.github.com/users/ashkuc/received_events","type":"User","site_admin":false},"body":"И может в генерацию количества гостей добавить аля\r\nfunction getRandomInRange(min, max) {\r\n  return Math.floor(Math.random() * (max - min) + min);\r\n}","created_at":"2019-09-26T07:35:46Z","updated_at":"2019-09-26T07:35:58Z","html_url":"https://github.com/htmlacademy-javascript/44300-keksobooking-18/pull/4#discussion_r328473269","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/comments/328473269"},"html":{"href":"https://github.com/htmlacademy-javascript/44300-keksobooking-18/pull/4#discussion_r328473269"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/4","id":321293344,"node_id":"MDExOlB1bGxSZXF1ZXN0MzIxMjkzMzQ0","html_url":"https://github.com/htmlacademy-javascript/44300-keksobooking-18/pull/4","diff_url":"https://github.com/htmlacademy-javascript/44300-keksobooking-18/pull/4.diff","patch_url":"https://github.com/htmlacademy-javascript/44300-keksobooking-18/pull/4.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/issues/4","number":4,"state":"open","locked":false,"title":"Личный проект: больше деталей","user":{"login":"Shooouuun","id":29195687,"node_id":"MDQ6VXNlcjI5MTk1Njg3","avatar_url":"https://avatars0.githubusercontent.com/u/29195687?v=4","gravatar_id":"","url":"https://api.github.com/users/Shooouuun","html_url":"https://github.com/Shooouuun","followers_url":"https://api.github.com/users/Shooouuun/followers","following_url":"https://api.github.com/users/Shooouuun/following{/other_user}","gists_url":"https://api.github.com/users/Shooouuun/gists{/gist_id}","starred_url":"https://api.github.com/users/Shooouuun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shooouuun/subscriptions","organizations_url":"https://api.github.com/users/Shooouuun/orgs","repos_url":"https://api.github.com/users/Shooouuun/repos","events_url":"https://api.github.com/users/Shooouuun/events{/privacy}","received_events_url":"https://api.github.com/users/Shooouuun/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: больше деталей](https://up.htmlacademy.ru/javascript/18/user/44300/tasks/6)","created_at":"2019-09-25T14:59:01Z","updated_at":"2019-09-26T07:35:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15eb719e06029d6608e7059d33f1fe315a223c1e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/4/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/4/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/issues/4/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/statuses/c1f970b866e39e6bffbe08c86665358b979f65f3","head":{"label":"Shooouuun:module3-task3","ref":"module3-task3","sha":"c1f970b866e39e6bffbe08c86665358b979f65f3","user":{"login":"Shooouuun","id":29195687,"node_id":"MDQ6VXNlcjI5MTk1Njg3","avatar_url":"https://avatars0.githubusercontent.com/u/29195687?v=4","gravatar_id":"","url":"https://api.github.com/users/Shooouuun","html_url":"https://github.com/Shooouuun","followers_url":"https://api.github.com/users/Shooouuun/followers","following_url":"https://api.github.com/users/Shooouuun/following{/other_user}","gists_url":"https://api.github.com/users/Shooouuun/gists{/gist_id}","starred_url":"https://api.github.com/users/Shooouuun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shooouuun/subscriptions","organizations_url":"https://api.github.com/users/Shooouuun/orgs","repos_url":"https://api.github.com/users/Shooouuun/repos","events_url":"https://api.github.com/users/Shooouuun/events{/privacy}","received_events_url":"https://api.github.com/users/Shooouuun/received_events","type":"User","site_admin":false},"repo":{"id":207636946,"node_id":"MDEwOlJlcG9zaXRvcnkyMDc2MzY5NDY=","name":"44300-keksobooking-18","full_name":"Shooouuun/44300-keksobooking-18","private":false,"owner":{"login":"Shooouuun","id":29195687,"node_id":"MDQ6VXNlcjI5MTk1Njg3","avatar_url":"https://avatars0.githubusercontent.com/u/29195687?v=4","gravatar_id":"","url":"https://api.github.com/users/Shooouuun","html_url":"https://github.com/Shooouuun","followers_url":"https://api.github.com/users/Shooouuun/followers","following_url":"https://api.github.com/users/Shooouuun/following{/other_user}","gists_url":"https://api.github.com/users/Shooouuun/gists{/gist_id}","starred_url":"https://api.github.com/users/Shooouuun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shooouuun/subscriptions","organizations_url":"https://api.github.com/users/Shooouuun/orgs","repos_url":"https://api.github.com/users/Shooouuun/repos","events_url":"https://api.github.com/users/Shooouuun/events{/privacy}","received_events_url":"https://api.github.com/users/Shooouuun/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Shooouuun/44300-keksobooking-18","description":"Sergey Kolgaev","fork":true,"url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18","forks_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/forks","keys_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/teams","hooks_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/hooks","issue_events_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/issues/events{/number}","events_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/events","assignees_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/assignees{/user}","branches_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/branches{/branch}","tags_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/tags","blobs_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/statuses/{sha}","languages_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/languages","stargazers_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/stargazers","contributors_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/contributors","subscribers_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/subscribers","subscription_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/subscription","commits_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/contents/{+path}","compare_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/merges","archive_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/downloads","issues_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/issues{/number}","pulls_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/pulls{/number}","milestones_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/milestones{/number}","notifications_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/labels{/name}","releases_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/releases{/id}","deployments_url":"https://api.github.com/repos/Shooouuun/44300-keksobooking-18/deployments","created_at":"2019-09-10T18:43:51Z","updated_at":"2019-09-10T22:19:29Z","pushed_at":"2019-09-25T14:56:34Z","git_url":"git://github.com/Shooouuun/44300-keksobooking-18.git","ssh_url":"git@github.com:Shooouuun/44300-keksobooking-18.git","clone_url":"https://github.com/Shooouuun/44300-keksobooking-18.git","svn_url":"https://github.com/Shooouuun/44300-keksobooking-18","homepage":null,"size":882,"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,"disabled":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":"6d4d17ab33b20739ebbeafb50fbff8452d83cda7","user":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","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":207636844,"node_id":"MDEwOlJlcG9zaXRvcnkyMDc2MzY4NDQ=","name":"44300-keksobooking-18","full_name":"htmlacademy-javascript/44300-keksobooking-18","private":false,"owner":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","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},"html_url":"https://github.com/htmlacademy-javascript/44300-keksobooking-18","description":"Sergey Kolgaev","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18","forks_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/deployments","created_at":"2019-09-10T18:43:24Z","updated_at":"2019-09-23T15:39:56Z","pushed_at":"2019-09-25T14:59:02Z","git_url":"git://github.com/htmlacademy-javascript/44300-keksobooking-18.git","ssh_url":"git@github.com:htmlacademy-javascript/44300-keksobooking-18.git","clone_url":"https://github.com/htmlacademy-javascript/44300-keksobooking-18.git","svn_url":"https://github.com/htmlacademy-javascript/44300-keksobooking-18","homepage":"https://github.com/Shooouuun/44300-keksobooking-18","size":884,"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,"disabled":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/4"},"html":{"href":"https://github.com/htmlacademy-javascript/44300-keksobooking-18/pull/4"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/issues/4"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/44300-keksobooking-18/statuses/c1f970b866e39e6bffbe08c86665358b979f65f3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ashkuc"}}