{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/comments/135010737","pull_request_review_id":58367041,"id":135010737,"diff_hunk":"@@ -0,0 +1,98 @@\n+'use strict';\n+\n+var TYPE = ['flat', 'house', 'bungalo'];\n+var CHECKIN = ['12:00', '13:00', '14:00'];\n+var CHECKOUT = ['12:00', '13:00', '14:00'];\n+var FEATURES = ['wifi', 'dishwasher', 'parking', 'washer', 'elevator', 'conditioner'];\n+var TITLE = ['Большая уютная квартира', 'Маленькая неуютная квартира', 'Огромный прекрасный дворец', 'Маленький ужасный дворец', 'Красивый гостевой домик', 'Некрасивый негостеприимный домик', 'Уютное бунгало далеко от моря', 'Неуютное бунгало по колено в воде'];\n+var ADS_COUNT = 8;\n+var GUESTS_COUNT = 100;\n+\n+var fragment = document.createDocumentFragment();\n+var fragment2 = document.createDocumentFragment();\n+var similarAdsTemplate = document.querySelector('#lodge-template').content;\n+var replace = document.querySelector('.dialog__panel');\n+var parentDiv = replace.parentNode;\n+\n+var myads = [];\n+\n+for (var i = 0; i < ADS_COUNT; i++) {\n+  myads[i] = new Ads();\n+  myads[i].author.avatar = getAvatar(i + 1);\n+  myads[i].offer.title = TITLE[i];\n+  myads[i].offer.address = myads[i].mylocation.x + ',' + myads[i].mylocation.y;\n+}\n+\n+function getRandom(max, min) {\n+  if (typeof min === 'undefined') {\n+    min = 0;\n+  }\n+  return Math.floor(Math.random() * (max - min + 1)) + min;\n+}\n+\n+function getAvatar(element) {\n+  return 'img/avatars/user' + '0' + element + '.png';\n+}\n+\n+function Ads() {","path":"js/map.js","position":37,"original_position":37,"commit_id":"79cb35ae902f378645f0e5e2c000adffbf8347d7","original_commit_id":"79cb35ae902f378645f0e5e2c000adffbf8347d7","user":{"login":"dihar","id":12913462,"avatar_url":"https://avatars2.githubusercontent.com/u/12913462?v=4","gravatar_id":"","url":"https://api.github.com/users/dihar","html_url":"https://github.com/dihar","followers_url":"https://api.github.com/users/dihar/followers","following_url":"https://api.github.com/users/dihar/following{/other_user}","gists_url":"https://api.github.com/users/dihar/gists{/gist_id}","starred_url":"https://api.github.com/users/dihar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dihar/subscriptions","organizations_url":"https://api.github.com/users/dihar/orgs","repos_url":"https://api.github.com/users/dihar/repos","events_url":"https://api.github.com/users/dihar/events{/privacy}","received_events_url":"https://api.github.com/users/dihar/received_events","type":"User","site_admin":false},"body":"название класса единственным числом","created_at":"2017-08-24T13:14:49Z","updated_at":"2017-08-24T13:21:58Z","html_url":"https://github.com/htmlacademy-javascript/231833-keksobooking/pull/6#discussion_r135010737","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/comments/135010737"},"html":{"href":"https://github.com/htmlacademy-javascript/231833-keksobooking/pull/6#discussion_r135010737"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/6","id":136893665,"html_url":"https://github.com/htmlacademy-javascript/231833-keksobooking/pull/6","diff_url":"https://github.com/htmlacademy-javascript/231833-keksobooking/pull/6.diff","patch_url":"https://github.com/htmlacademy-javascript/231833-keksobooking/pull/6.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/issues/6","number":6,"state":"open","locked":false,"title":"Личный проект: милый DOM","user":{"login":"mazovladimir","id":18594748,"avatar_url":"https://avatars2.githubusercontent.com/u/18594748?v=4","gravatar_id":"","url":"https://api.github.com/users/mazovladimir","html_url":"https://github.com/mazovladimir","followers_url":"https://api.github.com/users/mazovladimir/followers","following_url":"https://api.github.com/users/mazovladimir/following{/other_user}","gists_url":"https://api.github.com/users/mazovladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/mazovladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mazovladimir/subscriptions","organizations_url":"https://api.github.com/users/mazovladimir/orgs","repos_url":"https://api.github.com/users/mazovladimir/repos","events_url":"https://api.github.com/users/mazovladimir/events{/privacy}","received_events_url":"https://api.github.com/users/mazovladimir/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: милый DOM](https://up.htmlacademy.ru/javascript/10/user/231833/tasks/9)\n\n:boom: https://htmlacademy-javascript.github.io/231833-keksobooking/6/","created_at":"2017-08-22T05:20:12Z","updated_at":"2017-08-24T13:21:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61a64c4461a57bb8a28159d3157e4c15c1587434","assignee":{"login":"dihar","id":12913462,"avatar_url":"https://avatars2.githubusercontent.com/u/12913462?v=4","gravatar_id":"","url":"https://api.github.com/users/dihar","html_url":"https://github.com/dihar","followers_url":"https://api.github.com/users/dihar/followers","following_url":"https://api.github.com/users/dihar/following{/other_user}","gists_url":"https://api.github.com/users/dihar/gists{/gist_id}","starred_url":"https://api.github.com/users/dihar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dihar/subscriptions","organizations_url":"https://api.github.com/users/dihar/orgs","repos_url":"https://api.github.com/users/dihar/repos","events_url":"https://api.github.com/users/dihar/events{/privacy}","received_events_url":"https://api.github.com/users/dihar/received_events","type":"User","site_admin":false},"assignees":[{"login":"dihar","id":12913462,"avatar_url":"https://avatars2.githubusercontent.com/u/12913462?v=4","gravatar_id":"","url":"https://api.github.com/users/dihar","html_url":"https://github.com/dihar","followers_url":"https://api.github.com/users/dihar/followers","following_url":"https://api.github.com/users/dihar/following{/other_user}","gists_url":"https://api.github.com/users/dihar/gists{/gist_id}","starred_url":"https://api.github.com/users/dihar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dihar/subscriptions","organizations_url":"https://api.github.com/users/dihar/orgs","repos_url":"https://api.github.com/users/dihar/repos","events_url":"https://api.github.com/users/dihar/events{/privacy}","received_events_url":"https://api.github.com/users/dihar/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/6/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/6/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/issues/6/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/statuses/79cb35ae902f378645f0e5e2c000adffbf8347d7","head":{"label":"mazovladimir:module3-task1","ref":"module3-task1","sha":"79cb35ae902f378645f0e5e2c000adffbf8347d7","user":{"login":"mazovladimir","id":18594748,"avatar_url":"https://avatars2.githubusercontent.com/u/18594748?v=4","gravatar_id":"","url":"https://api.github.com/users/mazovladimir","html_url":"https://github.com/mazovladimir","followers_url":"https://api.github.com/users/mazovladimir/followers","following_url":"https://api.github.com/users/mazovladimir/following{/other_user}","gists_url":"https://api.github.com/users/mazovladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/mazovladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mazovladimir/subscriptions","organizations_url":"https://api.github.com/users/mazovladimir/orgs","repos_url":"https://api.github.com/users/mazovladimir/repos","events_url":"https://api.github.com/users/mazovladimir/events{/privacy}","received_events_url":"https://api.github.com/users/mazovladimir/received_events","type":"User","site_admin":false},"repo":{"id":100026305,"name":"231833-keksobooking","full_name":"mazovladimir/231833-keksobooking","owner":{"login":"mazovladimir","id":18594748,"avatar_url":"https://avatars2.githubusercontent.com/u/18594748?v=4","gravatar_id":"","url":"https://api.github.com/users/mazovladimir","html_url":"https://github.com/mazovladimir","followers_url":"https://api.github.com/users/mazovladimir/followers","following_url":"https://api.github.com/users/mazovladimir/following{/other_user}","gists_url":"https://api.github.com/users/mazovladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/mazovladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mazovladimir/subscriptions","organizations_url":"https://api.github.com/users/mazovladimir/orgs","repos_url":"https://api.github.com/users/mazovladimir/repos","events_url":"https://api.github.com/users/mazovladimir/events{/privacy}","received_events_url":"https://api.github.com/users/mazovladimir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mazovladimir/231833-keksobooking","description":"Владимир Мазо","fork":true,"url":"https://api.github.com/repos/mazovladimir/231833-keksobooking","forks_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/forks","keys_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/teams","hooks_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/events","assignees_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/tags","blobs_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/languages","stargazers_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/subscription","commits_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/merges","archive_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/downloads","issues_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/mazovladimir/231833-keksobooking/deployments","created_at":"2017-08-11T11:48:48Z","updated_at":"2017-08-15T18:01:49Z","pushed_at":"2017-08-24T05:45:01Z","git_url":"git://github.com/mazovladimir/231833-keksobooking.git","ssh_url":"git@github.com:mazovladimir/231833-keksobooking.git","clone_url":"https://github.com/mazovladimir/231833-keksobooking.git","svn_url":"https://github.com/mazovladimir/231833-keksobooking","homepage":null,"size":2537,"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":"7feb0f48647776199205a35171519cfd0e7e6e8d","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":100024258,"name":"231833-keksobooking","full_name":"htmlacademy-javascript/231833-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/231833-keksobooking","description":"Владимир Мазо","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/deployments","created_at":"2017-08-11T11:18:23Z","updated_at":"2017-08-13T16:47:55Z","pushed_at":"2017-08-24T07:18:39Z","git_url":"git://github.com/htmlacademy-javascript/231833-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/231833-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/231833-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/231833-keksobooking","homepage":"https://github.com/mazovladimir/231833-keksobooking","size":2530,"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/231833-keksobooking/pulls/6"},"html":{"href":"https://github.com/htmlacademy-javascript/231833-keksobooking/pull/6"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/issues/6"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/231833-keksobooking/statuses/79cb35ae902f378645f0e5e2c000adffbf8347d7"}}}}
{"actor":{"display_login":"dihar"}}