{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/comments/110682993","pull_request_review_id":31871089,"id":110682993,"diff_hunk":"@@ -101,32 +96,44 @@ var fragment = document.createDocumentFragment();                       // со\n for (i = 0; i < pinAdress.length; i++) {\n   var newPin = document.createElement('div');\n   newPin.className = 'pin';\n-  newPin.innerHTML = '<img  src=\"' + pinAdress[i].author.avatar + '\"  class=\"rounded\" width=\"40\" height=\"40\">';\n+  newPin.innerHTML = '<img  src=\"' + pinAdress[i].author.avatar + '\"  class=\"rounded\" width=\"40\" height=\"40\" tabindex=\"0\">';\n   newPin.style = 'left: ' + pinAdress[i].location.x + 'px; top: ' + pinAdress[i].location.y + 'px';\n   fragment.appendChild(newPin);\n }\n allPin.appendChild(fragment);\n var listElement = document.querySelector('.dialog');                    // начинаем клонировать элемент (левая плашка и описание метки карты)\n var replicedElement = document.querySelector('.dialog__panel');\n var listTemplate = document.querySelector('#lodge-template').content;\n-i = 0;\n var dialogElement = listTemplate.cloneNode(true);\n listElement.replaceChild(dialogElement, replicedElement);                           // замена блока другим\n-listElement.querySelector('.lodge__title').innerHTML = pinAdress[i].offer.title;               // внесение данных из массива объектов\n-listElement.querySelector('.lodge__address').innerHTML = pinAdress[i].offer.address;              // внесение данных из массива объектов\n-listElement.querySelector('.lodge__price').innerHTML = pinAdress[i].offer.price + ' &#x20bd;/ночь';     // внесение данных из массива объектов\n-listElement.querySelector('.lodge__type').innerHTML = flatFunc();     // вызов функции выбора апартаментов\n-listElement.querySelector('.lodge__rooms-and-guests').innerHTML = 'Для ' + pinAdress[i].offer.guests + ' гостей в ' + pinAdress[i].offer.rooms + ' в комнатах';              // внесение данных из массива объектов\n-listElement.querySelector('.lodge__checkin-time').innerHTML = 'Заезд после ' + pinAdress[i].offer.checkin + ' , выезд до ' + pinAdress[i].offer.checkout + '';        // внесение данных из массива объектов\n-var allSpan = document.querySelector('.lodge__features');          // создание пустых span в зависимости от полученных данных\n-var fragmentSpan = document.createDocumentFragment();\n-var j;\n-for (j = 0; j < pinAdress[i].offer.features.length; j++) {\n-  var newSpan = document.createElement('span');\n-  newSpan.className = 'feature__image feature__image--' + pinAdress[i].offer.features[j] + '';\n-  fragmentSpan.appendChild(newSpan);\n-}\n-allSpan.appendChild(fragmentSpan);\n-listElement.querySelector('.lodge__description').innerHTML = pinAdress[i].offer.description;       // внесение данных из массива объектов\n-var avatarTitle = document.querySelector('.dialog__title');\n-avatarTitle.innerHTML = '<img src=\"' + pinAdress[i].author.avatar + '\" alt=\"Avatar\" width=\"70\" height=\"70\">';       // замена аватарки\n+var showPopupFunc = function (pin) {\n+  listElement.querySelector('.lodge__title').innerHTML = pinAdress[pin].offer.title;               // внесение данных из массива объектов","path":"js/map.js","position":null,"original_position":185,"commit_id":"237a44ac4e48a31a32aebd0f9b021afa40d8a5e7","original_commit_id":"8b10c19f860dd54f263c70f8692098f15f673420","user":{"login":"ademaro","id":416356,"avatar_url":"https://avatars0.githubusercontent.com/u/416356?v=3","gravatar_id":"","url":"https://api.github.com/users/ademaro","html_url":"https://github.com/ademaro","followers_url":"https://api.github.com/users/ademaro/followers","following_url":"https://api.github.com/users/ademaro/following{/other_user}","gists_url":"https://api.github.com/users/ademaro/gists{/gist_id}","starred_url":"https://api.github.com/users/ademaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ademaro/subscriptions","organizations_url":"https://api.github.com/users/ademaro/orgs","repos_url":"https://api.github.com/users/ademaro/repos","events_url":"https://api.github.com/users/ademaro/events{/privacy}","received_events_url":"https://api.github.com/users/ademaro/received_events","type":"User","site_admin":false},"body":"Почитай про [textContent](https://developer.mozilla.org/ru/docs/Web/API/Node/textContent)","created_at":"2017-04-10T15:13:48Z","updated_at":"2017-04-10T15:24:11Z","html_url":"https://github.com/htmlacademy-javascript/214038-keksobooking/pull/2#discussion_r110682993","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/comments/110682993"},"html":{"href":"https://github.com/htmlacademy-javascript/214038-keksobooking/pull/2#discussion_r110682993"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/2","id":113967240,"html_url":"https://github.com/htmlacademy-javascript/214038-keksobooking/pull/2","diff_url":"https://github.com/htmlacademy-javascript/214038-keksobooking/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/214038-keksobooking/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/issues/2","number":2,"state":"open","locked":false,"title":"Личный проект: милый DOM","user":{"login":"left38331","id":20695681,"avatar_url":"https://avatars3.githubusercontent.com/u/20695681?v=3","gravatar_id":"","url":"https://api.github.com/users/left38331","html_url":"https://github.com/left38331","followers_url":"https://api.github.com/users/left38331/followers","following_url":"https://api.github.com/users/left38331/following{/other_user}","gists_url":"https://api.github.com/users/left38331/gists{/gist_id}","starred_url":"https://api.github.com/users/left38331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/left38331/subscriptions","organizations_url":"https://api.github.com/users/left38331/orgs","repos_url":"https://api.github.com/users/left38331/repos","events_url":"https://api.github.com/users/left38331/events{/privacy}","received_events_url":"https://api.github.com/users/left38331/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: милый DOM](https://up.htmlacademy.ru/javascript/9/user/214038/tasks/9)\n\n:boom: https://htmlacademy-javascript.github.io/214038-keksobooking/2/","created_at":"2017-04-03T16:11:04Z","updated_at":"2017-04-10T15:24:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc90e24fdaf7f42d6e9dd95d84f94b5555b73179","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/statuses/237a44ac4e48a31a32aebd0f9b021afa40d8a5e7","head":{"label":"left38331:module3-task1","ref":"module3-task1","sha":"237a44ac4e48a31a32aebd0f9b021afa40d8a5e7","user":{"login":"left38331","id":20695681,"avatar_url":"https://avatars3.githubusercontent.com/u/20695681?v=3","gravatar_id":"","url":"https://api.github.com/users/left38331","html_url":"https://github.com/left38331","followers_url":"https://api.github.com/users/left38331/followers","following_url":"https://api.github.com/users/left38331/following{/other_user}","gists_url":"https://api.github.com/users/left38331/gists{/gist_id}","starred_url":"https://api.github.com/users/left38331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/left38331/subscriptions","organizations_url":"https://api.github.com/users/left38331/orgs","repos_url":"https://api.github.com/users/left38331/repos","events_url":"https://api.github.com/users/left38331/events{/privacy}","received_events_url":"https://api.github.com/users/left38331/received_events","type":"User","site_admin":false},"repo":{"id":85952701,"name":"214038-keksobooking","full_name":"left38331/214038-keksobooking","owner":{"login":"left38331","id":20695681,"avatar_url":"https://avatars3.githubusercontent.com/u/20695681?v=3","gravatar_id":"","url":"https://api.github.com/users/left38331","html_url":"https://github.com/left38331","followers_url":"https://api.github.com/users/left38331/followers","following_url":"https://api.github.com/users/left38331/following{/other_user}","gists_url":"https://api.github.com/users/left38331/gists{/gist_id}","starred_url":"https://api.github.com/users/left38331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/left38331/subscriptions","organizations_url":"https://api.github.com/users/left38331/orgs","repos_url":"https://api.github.com/users/left38331/repos","events_url":"https://api.github.com/users/left38331/events{/privacy}","received_events_url":"https://api.github.com/users/left38331/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/left38331/214038-keksobooking","description":"Егор Перхальский","fork":true,"url":"https://api.github.com/repos/left38331/214038-keksobooking","forks_url":"https://api.github.com/repos/left38331/214038-keksobooking/forks","keys_url":"https://api.github.com/repos/left38331/214038-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/left38331/214038-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/left38331/214038-keksobooking/teams","hooks_url":"https://api.github.com/repos/left38331/214038-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/left38331/214038-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/left38331/214038-keksobooking/events","assignees_url":"https://api.github.com/repos/left38331/214038-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/left38331/214038-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/left38331/214038-keksobooking/tags","blobs_url":"https://api.github.com/repos/left38331/214038-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/left38331/214038-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/left38331/214038-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/left38331/214038-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/left38331/214038-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/left38331/214038-keksobooking/languages","stargazers_url":"https://api.github.com/repos/left38331/214038-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/left38331/214038-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/left38331/214038-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/left38331/214038-keksobooking/subscription","commits_url":"https://api.github.com/repos/left38331/214038-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/left38331/214038-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/left38331/214038-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/left38331/214038-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/left38331/214038-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/left38331/214038-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/left38331/214038-keksobooking/merges","archive_url":"https://api.github.com/repos/left38331/214038-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/left38331/214038-keksobooking/downloads","issues_url":"https://api.github.com/repos/left38331/214038-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/left38331/214038-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/left38331/214038-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/left38331/214038-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/left38331/214038-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/left38331/214038-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/left38331/214038-keksobooking/deployments","created_at":"2017-03-23T13:25:42Z","updated_at":"2017-03-23T13:25:44Z","pushed_at":"2017-04-10T11:02:30Z","git_url":"git://github.com/left38331/214038-keksobooking.git","ssh_url":"git@github.com:left38331/214038-keksobooking.git","clone_url":"https://github.com/left38331/214038-keksobooking.git","svn_url":"https://github.com/left38331/214038-keksobooking","homepage":null,"size":2021,"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":"2e65040e6636ec57d2ff32aa1fae2984fac8bb79","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":85952388,"name":"214038-keksobooking","full_name":"htmlacademy-javascript/214038-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/214038-keksobooking","description":"Егор Перхальский","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/deployments","created_at":"2017-03-23T13:22:34Z","updated_at":"2017-03-23T14:14:02Z","pushed_at":"2017-04-10T11:02:31Z","git_url":"git://github.com/htmlacademy-javascript/214038-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/214038-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/214038-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/214038-keksobooking","homepage":"https://github.com/left38331/214038-keksobooking","size":2014,"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/214038-keksobooking/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/214038-keksobooking/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/214038-keksobooking/statuses/237a44ac4e48a31a32aebd0f9b021afa40d8a5e7"}}}}
{"actor":{"display_login":"ademaro"}}