{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/comments/110825752","pull_request_review_id":32021767,"id":110825752,"diff_hunk":"@@ -93,45 +99,131 @@ parent.appendChild(newElement);\n \n parent.replaceChild(newElement, dialogPanel);\n \n-var newElementBlock = document.querySelector('.dialog__panel');\n \n-var title = newElementBlock.querySelector('.lodge__title');\n-title.textContent = advertisements[0].offer.title;\n+function renderDialogInfo(place) {\n \n-var address = newElementBlock.querySelector('.lodge__address');\n-address.textContent = advertisements[0].offer.address;\n+  var newElementBlock = document.querySelector('.dialog__panel');\n \n-var price = newElementBlock.querySelector('.lodge__price');\n-price.innerHTML = advertisements[0].offer.price + ' &#x20bd;/' + 'ночь';\n+  var title = newElementBlock.querySelector('.lodge__title');\n+  var address = newElementBlock.querySelector('.lodge__address');\n+  var price = newElementBlock.querySelector('.lodge__price');\n+\n+  var type = newElementBlock.querySelector('.lodge__type');\n+\n+  var roomsAndGuests = newElementBlock.querySelector('.lodge__rooms-and-guests');\n+  var checkinAndCheckout = newElementBlock.querySelector('.lodge__checkin-time');\n+  var features = newElementBlock.querySelector('.lodge__features');\n+\n+  var description = newElementBlock.querySelector('.lodge__description');\n+  var avatar = document.querySelector('.dialog__title img');\n+\n+  title.textContent = place.offer.title;\n+  address.textContent = place.offer.address;\n+  price.innerHTML = place.offer.price + ' &#x20bd;/ночь';\n+  type.innerHTML = offerTypes[place.offer.type];\n+  roomsAndGuests.innerHTML = 'Для ' + place.offer.guests + ' гостей в ' + place.offer.rooms + ' комнатах';\n+  checkinAndCheckout.innerHTML = 'Заезд после ' + place.offer.checkin + ', выезд до ' + place.offer.checkout;\n+  description.innerHTML = place.offer.description;\n+\n+  var featuresParent = document.querySelector('.lodge__features');\n+\n+  while (featuresParent.firstChild) {\n+    featuresParent.removeChild(features.firstChild);\n+  }\n+\n+\n+  for (var featuresIndex = 0; featuresIndex < place.offer.features.length; featuresIndex++) {\n+    var featuresElement = document.createElement('span');\n+    featuresElement.className = 'feature__image feature__image--' + place.offer.features[featuresIndex];\n+\n+    features.appendChild(featuresElement);\n+  }\n+\n+  description.innerHTML = place.offer.description;\n+  avatar.src = place.autor.avatar;\n+}\n+\n+renderDialogInfo(advertisements[0]);\n+\n+var PIN_ACTIVE_CLASS_NAME = 'pin--active';\n+\n+var firstPin = document.querySelector('.pin:nth-child(2)');","path":"js/map.js","position":102,"original_position":102,"commit_id":"6873623a8bf9bfeb78d08be8a6f1448b40d55382","original_commit_id":"6873623a8bf9bfeb78d08be8a6f1448b40d55382","user":{"login":"korosteleva","id":11821735,"avatar_url":"https://avatars0.githubusercontent.com/u/11821735?v=3","gravatar_id":"","url":"https://api.github.com/users/korosteleva","html_url":"https://github.com/korosteleva","followers_url":"https://api.github.com/users/korosteleva/followers","following_url":"https://api.github.com/users/korosteleva/following{/other_user}","gists_url":"https://api.github.com/users/korosteleva/gists{/gist_id}","starred_url":"https://api.github.com/users/korosteleva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korosteleva/subscriptions","organizations_url":"https://api.github.com/users/korosteleva/orgs","repos_url":"https://api.github.com/users/korosteleva/repos","events_url":"https://api.github.com/users/korosteleva/events{/privacy}","received_events_url":"https://api.github.com/users/korosteleva/received_events","type":"User","site_admin":false},"body":"Для установки активного пина у тебя есть функция `setActivePin`","created_at":"2017-04-11T06:50:28Z","updated_at":"2017-04-11T06:59:35Z","html_url":"https://github.com/htmlacademy-javascript/152586-keksobooking/pull/3#discussion_r110825752","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/comments/110825752"},"html":{"href":"https://github.com/htmlacademy-javascript/152586-keksobooking/pull/3#discussion_r110825752"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/3","id":114937079,"html_url":"https://github.com/htmlacademy-javascript/152586-keksobooking/pull/3","diff_url":"https://github.com/htmlacademy-javascript/152586-keksobooking/pull/3.diff","patch_url":"https://github.com/htmlacademy-javascript/152586-keksobooking/pull/3.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/issues/3","number":3,"state":"open","locked":false,"title":"Личный проект: подробности","user":{"login":"natpuot92","id":22895999,"avatar_url":"https://avatars0.githubusercontent.com/u/22895999?v=3","gravatar_id":"","url":"https://api.github.com/users/natpuot92","html_url":"https://github.com/natpuot92","followers_url":"https://api.github.com/users/natpuot92/followers","following_url":"https://api.github.com/users/natpuot92/following{/other_user}","gists_url":"https://api.github.com/users/natpuot92/gists{/gist_id}","starred_url":"https://api.github.com/users/natpuot92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natpuot92/subscriptions","organizations_url":"https://api.github.com/users/natpuot92/orgs","repos_url":"https://api.github.com/users/natpuot92/repos","events_url":"https://api.github.com/users/natpuot92/events{/privacy}","received_events_url":"https://api.github.com/users/natpuot92/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: подробности](https://up.htmlacademy.ru/javascript/9/user/152586/tasks/11)\n\n:boom: https://htmlacademy-javascript.github.io/152586-keksobooking/3/","created_at":"2017-04-08T08:24:23Z","updated_at":"2017-04-11T06:59:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2d2543c1b4552b1ff630f0bb544847078dbda5d","assignee":{"login":"korosteleva","id":11821735,"avatar_url":"https://avatars0.githubusercontent.com/u/11821735?v=3","gravatar_id":"","url":"https://api.github.com/users/korosteleva","html_url":"https://github.com/korosteleva","followers_url":"https://api.github.com/users/korosteleva/followers","following_url":"https://api.github.com/users/korosteleva/following{/other_user}","gists_url":"https://api.github.com/users/korosteleva/gists{/gist_id}","starred_url":"https://api.github.com/users/korosteleva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korosteleva/subscriptions","organizations_url":"https://api.github.com/users/korosteleva/orgs","repos_url":"https://api.github.com/users/korosteleva/repos","events_url":"https://api.github.com/users/korosteleva/events{/privacy}","received_events_url":"https://api.github.com/users/korosteleva/received_events","type":"User","site_admin":false},"assignees":[{"login":"korosteleva","id":11821735,"avatar_url":"https://avatars0.githubusercontent.com/u/11821735?v=3","gravatar_id":"","url":"https://api.github.com/users/korosteleva","html_url":"https://github.com/korosteleva","followers_url":"https://api.github.com/users/korosteleva/followers","following_url":"https://api.github.com/users/korosteleva/following{/other_user}","gists_url":"https://api.github.com/users/korosteleva/gists{/gist_id}","starred_url":"https://api.github.com/users/korosteleva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korosteleva/subscriptions","organizations_url":"https://api.github.com/users/korosteleva/orgs","repos_url":"https://api.github.com/users/korosteleva/repos","events_url":"https://api.github.com/users/korosteleva/events{/privacy}","received_events_url":"https://api.github.com/users/korosteleva/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/3/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/3/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/issues/3/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/statuses/6873623a8bf9bfeb78d08be8a6f1448b40d55382","head":{"label":"natpuot92:module4-task1","ref":"module4-task1","sha":"6873623a8bf9bfeb78d08be8a6f1448b40d55382","user":{"login":"natpuot92","id":22895999,"avatar_url":"https://avatars0.githubusercontent.com/u/22895999?v=3","gravatar_id":"","url":"https://api.github.com/users/natpuot92","html_url":"https://github.com/natpuot92","followers_url":"https://api.github.com/users/natpuot92/followers","following_url":"https://api.github.com/users/natpuot92/following{/other_user}","gists_url":"https://api.github.com/users/natpuot92/gists{/gist_id}","starred_url":"https://api.github.com/users/natpuot92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natpuot92/subscriptions","organizations_url":"https://api.github.com/users/natpuot92/orgs","repos_url":"https://api.github.com/users/natpuot92/repos","events_url":"https://api.github.com/users/natpuot92/events{/privacy}","received_events_url":"https://api.github.com/users/natpuot92/received_events","type":"User","site_admin":false},"repo":{"id":85741400,"name":"152586-keksobooking","full_name":"natpuot92/152586-keksobooking","owner":{"login":"natpuot92","id":22895999,"avatar_url":"https://avatars0.githubusercontent.com/u/22895999?v=3","gravatar_id":"","url":"https://api.github.com/users/natpuot92","html_url":"https://github.com/natpuot92","followers_url":"https://api.github.com/users/natpuot92/followers","following_url":"https://api.github.com/users/natpuot92/following{/other_user}","gists_url":"https://api.github.com/users/natpuot92/gists{/gist_id}","starred_url":"https://api.github.com/users/natpuot92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natpuot92/subscriptions","organizations_url":"https://api.github.com/users/natpuot92/orgs","repos_url":"https://api.github.com/users/natpuot92/repos","events_url":"https://api.github.com/users/natpuot92/events{/privacy}","received_events_url":"https://api.github.com/users/natpuot92/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/natpuot92/152586-keksobooking","description":"Денис Пелевин","fork":true,"url":"https://api.github.com/repos/natpuot92/152586-keksobooking","forks_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/forks","keys_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/teams","hooks_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/events","assignees_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/tags","blobs_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/languages","stargazers_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/subscription","commits_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/merges","archive_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/downloads","issues_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/natpuot92/152586-keksobooking/deployments","created_at":"2017-03-21T18:54:29Z","updated_at":"2017-03-21T18:54:31Z","pushed_at":"2017-04-10T21:48:43Z","git_url":"git://github.com/natpuot92/152586-keksobooking.git","ssh_url":"git@github.com:natpuot92/152586-keksobooking.git","clone_url":"https://github.com/natpuot92/152586-keksobooking.git","svn_url":"https://github.com/natpuot92/152586-keksobooking","homepage":null,"size":2030,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"c00ceac7b883150e56a7396e46f8be1e45db7765","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars1.githubusercontent.com/u/14179712?v=3","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":85741258,"name":"152586-keksobooking","full_name":"htmlacademy-javascript/152586-keksobooking","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars1.githubusercontent.com/u/14179712?v=3","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/152586-keksobooking","description":"Денис Пелевин","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/deployments","created_at":"2017-03-21T18:52:52Z","updated_at":"2017-03-21T19:20:35Z","pushed_at":"2017-04-10T21:48:44Z","git_url":"git://github.com/htmlacademy-javascript/152586-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/152586-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/152586-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/152586-keksobooking","homepage":"https://github.com/natpuot92/152586-keksobooking","size":2026,"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,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/3"},"html":{"href":"https://github.com/htmlacademy-javascript/152586-keksobooking/pull/3"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/issues/3"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/152586-keksobooking/statuses/6873623a8bf9bfeb78d08be8a6f1448b40d55382"}}}}
{"actor":{"display_login":"korosteleva"}}