{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/comments/155757083","pull_request_review_id":82130067,"id":155757083,"diff_hunk":"@@ -0,0 +1,115 @@\n+'use strict';\n+var COUNT = 8;\n+var offerParams = {\n+  TITLE: ['Большая уютная квартира', 'Маленькая неуютная квартира', 'Огромный прекрасный дворец', 'Маленький ужасный дворец', 'Красивый гостевой домик', 'Некрасивый негостеприимный домик', 'Уютное бунгало далеко от моря', 'Неуютное бунгало по колено в воде'],\n+  ADDRESS: [\"{{location.x}}, {{location.y}}\"],\n+  TYPE: ['flat', 'house', 'bungalo'],\n+  CHECKIN: ['12:00', '13:00', '14:00'],\n+  CHECKOUT: ['12:00', '13:00', '14:00'],\n+  FEATURES: ['wifi', 'dishwasher', 'parking', 'washer', 'elevator', 'conditioner']\n+};\n+//.querySelector('.map__card')\n+var mapPins = document.querySelector('.map__pins');\n+var AdvertTemplate = document.querySelector('#advert-template').content;\n+\n+var getRandom = function (min, max) {\n+  return (Math.random() * (max - min) + min).toFixed(1);","path":"js/map.js","position":16,"original_position":16,"commit_id":"e26ba2b87a7ad9ded73242eb9224172e6b64ebee","original_commit_id":"e26ba2b87a7ad9ded73242eb9224172e6b64ebee","user":{"login":"fyvfyv","id":3251438,"avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"body":"`toFixed` — возвращает строку, а не число. Надо преобразовать обратно в число","created_at":"2017-12-08T11:26:25Z","updated_at":"2017-12-08T11:36:29Z","html_url":"https://github.com/htmlacademy-javascript/479537-keksobooking/pull/2#discussion_r155757083","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/comments/155757083"},"html":{"href":"https://github.com/htmlacademy-javascript/479537-keksobooking/pull/2#discussion_r155757083"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/2","id":157220402,"html_url":"https://github.com/htmlacademy-javascript/479537-keksobooking/pull/2","diff_url":"https://github.com/htmlacademy-javascript/479537-keksobooking/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/479537-keksobooking/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/issues/2","number":2,"state":"open","locked":false,"title":"Личный проект: милый DOM","user":{"login":"JuliaTsapova","id":30776574,"avatar_url":"https://avatars0.githubusercontent.com/u/30776574?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaTsapova","html_url":"https://github.com/JuliaTsapova","followers_url":"https://api.github.com/users/JuliaTsapova/followers","following_url":"https://api.github.com/users/JuliaTsapova/following{/other_user}","gists_url":"https://api.github.com/users/JuliaTsapova/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaTsapova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaTsapova/subscriptions","organizations_url":"https://api.github.com/users/JuliaTsapova/orgs","repos_url":"https://api.github.com/users/JuliaTsapova/repos","events_url":"https://api.github.com/users/JuliaTsapova/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaTsapova/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: милый DOM](https://up.htmlacademy.ru/javascript/11/user/479537/tasks/10)\n\n:boom: https://htmlacademy-javascript.github.io/479537-keksobooking/2/","created_at":"2017-12-08T11:22:01Z","updated_at":"2017-12-08T11:36:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d28bcb5081f33273e7fd7655470f45eaaff0ff8","assignee":{"login":"fyvfyv","id":3251438,"avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"assignees":[{"login":"fyvfyv","id":3251438,"avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/statuses/e26ba2b87a7ad9ded73242eb9224172e6b64ebee","head":{"label":"JuliaTsapova:module3-task1","ref":"module3-task1","sha":"e26ba2b87a7ad9ded73242eb9224172e6b64ebee","user":{"login":"JuliaTsapova","id":30776574,"avatar_url":"https://avatars0.githubusercontent.com/u/30776574?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaTsapova","html_url":"https://github.com/JuliaTsapova","followers_url":"https://api.github.com/users/JuliaTsapova/followers","following_url":"https://api.github.com/users/JuliaTsapova/following{/other_user}","gists_url":"https://api.github.com/users/JuliaTsapova/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaTsapova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaTsapova/subscriptions","organizations_url":"https://api.github.com/users/JuliaTsapova/orgs","repos_url":"https://api.github.com/users/JuliaTsapova/repos","events_url":"https://api.github.com/users/JuliaTsapova/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaTsapova/received_events","type":"User","site_admin":false},"repo":{"id":110958329,"name":"479537-keksobooking","full_name":"JuliaTsapova/479537-keksobooking","owner":{"login":"JuliaTsapova","id":30776574,"avatar_url":"https://avatars0.githubusercontent.com/u/30776574?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaTsapova","html_url":"https://github.com/JuliaTsapova","followers_url":"https://api.github.com/users/JuliaTsapova/followers","following_url":"https://api.github.com/users/JuliaTsapova/following{/other_user}","gists_url":"https://api.github.com/users/JuliaTsapova/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaTsapova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaTsapova/subscriptions","organizations_url":"https://api.github.com/users/JuliaTsapova/orgs","repos_url":"https://api.github.com/users/JuliaTsapova/repos","events_url":"https://api.github.com/users/JuliaTsapova/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaTsapova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JuliaTsapova/479537-keksobooking","description":"Юлия Цапова","fork":true,"url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking","forks_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/forks","keys_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/teams","hooks_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/events","assignees_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/tags","blobs_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/languages","stargazers_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/subscription","commits_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/merges","archive_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/downloads","issues_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaTsapova/479537-keksobooking/deployments","created_at":"2017-11-16T10:35:26Z","updated_at":"2017-11-16T10:35:28Z","pushed_at":"2017-12-08T11:21:35Z","git_url":"git://github.com/JuliaTsapova/479537-keksobooking.git","ssh_url":"git@github.com:JuliaTsapova/479537-keksobooking.git","clone_url":"https://github.com/JuliaTsapova/479537-keksobooking.git","svn_url":"https://github.com/JuliaTsapova/479537-keksobooking","homepage":null,"size":2186,"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":"4b9dd25374690256df9cd151772479e3c425fcdd","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":110958241,"name":"479537-keksobooking","full_name":"htmlacademy-javascript/479537-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/479537-keksobooking","description":"Юлия Цапова","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/deployments","created_at":"2017-11-16T10:34:27Z","updated_at":"2017-11-16T10:50:23Z","pushed_at":"2017-12-08T11:24:53Z","git_url":"git://github.com/htmlacademy-javascript/479537-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/479537-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/479537-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/479537-keksobooking","homepage":"https://github.com/JuliaTsapova/479537-keksobooking","size":2189,"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,"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/479537-keksobooking/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/479537-keksobooking/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/479537-keksobooking/statuses/e26ba2b87a7ad9ded73242eb9224172e6b64ebee"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fyvfyv"}}