{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/comments/221646512","pull_request_review_id":160344729,"id":221646512,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTY0NjUxMg==","diff_hunk":"@@ -0,0 +1,39 @@\n+'use strict';\n+\n+(function () {\n+\n+  var errorTemplate = document.querySelector('#error')\n+    .content\n+    .querySelector('.error');\n+  var main = document.querySelector('main');\n+  var errorButton;\n+\n+  var show = function (message) {\n+    var errorMessage = errorTemplate.cloneNode(true);\n+    errorMessage.querySelector('.error__message').textContent = message;\n+    errorButton = errorMessage.querySelector('.error__button');\n+    document.addEventListener('keydown', window.error.escPress);\n+    document.addEventListener('click', window.error.onPageClickPress);\n+    main.appendChild(errorMessage);\n+  };\n+\n+  var escPress = function (evt) {\n+    if (evt.keyCode === window.utils.ESC_KEYCODE) {\n+      document.querySelector('main').removeChild(document.querySelector('.error'));\n+      document.removeEventListener('keydown', escPress);\n+    }\n+  };\n+\n+  var onPageClickPress = function () {\n+    document.querySelector('main').removeChild(document.querySelector('.error'));\n+    document.removeEventListener('click', onPageClickPress);\n+  };\n+\n+  window.error = {\n+    show: show,\n+    escPress: escPress,\n+    onPageClickPress: onPageClickPress,","path":"js/error.js","position":35,"original_position":35,"commit_id":"4a30a9996347c867a9707eeff8ab22a521fc04c7","original_commit_id":"4a30a9996347c867a9707eeff8ab22a521fc04c7","user":{"login":"haschish","id":13051723,"node_id":"MDQ6VXNlcjEzMDUxNzIz","avatar_url":"https://avatars2.githubusercontent.com/u/13051723?v=4","gravatar_id":"","url":"https://api.github.com/users/haschish","html_url":"https://github.com/haschish","followers_url":"https://api.github.com/users/haschish/followers","following_url":"https://api.github.com/users/haschish/following{/other_user}","gists_url":"https://api.github.com/users/haschish/gists{/gist_id}","starred_url":"https://api.github.com/users/haschish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haschish/subscriptions","organizations_url":"https://api.github.com/users/haschish/orgs","repos_url":"https://api.github.com/users/haschish/repos","events_url":"https://api.github.com/users/haschish/events{/privacy}","received_events_url":"https://api.github.com/users/haschish/received_events","type":"User","site_admin":false},"body":"escPress, onPageClickPress не используются вне модуля, удаляем из API\r\nаналогично в success.js","created_at":"2018-10-01T15:11:07Z","updated_at":"2018-10-01T15:11:07Z","html_url":"https://github.com/htmlacademy-javascript/685293-keksobooking/pull/6#discussion_r221646512","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/6","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/comments/221646512"},"html":{"href":"https://github.com/htmlacademy-javascript/685293-keksobooking/pull/6#discussion_r221646512"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/6","id":218644344,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4NjQ0MzQ0","html_url":"https://github.com/htmlacademy-javascript/685293-keksobooking/pull/6","diff_url":"https://github.com/htmlacademy-javascript/685293-keksobooking/pull/6.diff","patch_url":"https://github.com/htmlacademy-javascript/685293-keksobooking/pull/6.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/issues/6","number":6,"state":"open","locked":false,"title":"Личный проект: надо подкачаться","user":{"login":"inaumovd","id":37299804,"node_id":"MDQ6VXNlcjM3Mjk5ODA0","avatar_url":"https://avatars1.githubusercontent.com/u/37299804?v=4","gravatar_id":"","url":"https://api.github.com/users/inaumovd","html_url":"https://github.com/inaumovd","followers_url":"https://api.github.com/users/inaumovd/followers","following_url":"https://api.github.com/users/inaumovd/following{/other_user}","gists_url":"https://api.github.com/users/inaumovd/gists{/gist_id}","starred_url":"https://api.github.com/users/inaumovd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inaumovd/subscriptions","organizations_url":"https://api.github.com/users/inaumovd/orgs","repos_url":"https://api.github.com/users/inaumovd/repos","events_url":"https://api.github.com/users/inaumovd/events{/privacy}","received_events_url":"https://api.github.com/users/inaumovd/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: надо подкачаться](https://up.htmlacademy.ru/javascript/15/user/685293/tasks/23)","created_at":"2018-09-27T13:03:23Z","updated_at":"2018-10-01T15:11:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1368bd84979421d4a986375b2063d991d20db9a0","assignee":{"login":"haschish","id":13051723,"node_id":"MDQ6VXNlcjEzMDUxNzIz","avatar_url":"https://avatars2.githubusercontent.com/u/13051723?v=4","gravatar_id":"","url":"https://api.github.com/users/haschish","html_url":"https://github.com/haschish","followers_url":"https://api.github.com/users/haschish/followers","following_url":"https://api.github.com/users/haschish/following{/other_user}","gists_url":"https://api.github.com/users/haschish/gists{/gist_id}","starred_url":"https://api.github.com/users/haschish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haschish/subscriptions","organizations_url":"https://api.github.com/users/haschish/orgs","repos_url":"https://api.github.com/users/haschish/repos","events_url":"https://api.github.com/users/haschish/events{/privacy}","received_events_url":"https://api.github.com/users/haschish/received_events","type":"User","site_admin":false},"assignees":[{"login":"haschish","id":13051723,"node_id":"MDQ6VXNlcjEzMDUxNzIz","avatar_url":"https://avatars2.githubusercontent.com/u/13051723?v=4","gravatar_id":"","url":"https://api.github.com/users/haschish","html_url":"https://github.com/haschish","followers_url":"https://api.github.com/users/haschish/followers","following_url":"https://api.github.com/users/haschish/following{/other_user}","gists_url":"https://api.github.com/users/haschish/gists{/gist_id}","starred_url":"https://api.github.com/users/haschish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haschish/subscriptions","organizations_url":"https://api.github.com/users/haschish/orgs","repos_url":"https://api.github.com/users/haschish/repos","events_url":"https://api.github.com/users/haschish/events{/privacy}","received_events_url":"https://api.github.com/users/haschish/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/6/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/6/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/issues/6/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/statuses/4a30a9996347c867a9707eeff8ab22a521fc04c7","head":{"label":"inaumovd:module6-task1","ref":"module6-task1","sha":"4a30a9996347c867a9707eeff8ab22a521fc04c7","user":{"login":"inaumovd","id":37299804,"node_id":"MDQ6VXNlcjM3Mjk5ODA0","avatar_url":"https://avatars1.githubusercontent.com/u/37299804?v=4","gravatar_id":"","url":"https://api.github.com/users/inaumovd","html_url":"https://github.com/inaumovd","followers_url":"https://api.github.com/users/inaumovd/followers","following_url":"https://api.github.com/users/inaumovd/following{/other_user}","gists_url":"https://api.github.com/users/inaumovd/gists{/gist_id}","starred_url":"https://api.github.com/users/inaumovd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inaumovd/subscriptions","organizations_url":"https://api.github.com/users/inaumovd/orgs","repos_url":"https://api.github.com/users/inaumovd/repos","events_url":"https://api.github.com/users/inaumovd/events{/privacy}","received_events_url":"https://api.github.com/users/inaumovd/received_events","type":"User","site_admin":false},"repo":{"id":149207299,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkyMDcyOTk=","name":"685293-keksobooking","full_name":"inaumovd/685293-keksobooking","private":false,"owner":{"login":"inaumovd","id":37299804,"node_id":"MDQ6VXNlcjM3Mjk5ODA0","avatar_url":"https://avatars1.githubusercontent.com/u/37299804?v=4","gravatar_id":"","url":"https://api.github.com/users/inaumovd","html_url":"https://github.com/inaumovd","followers_url":"https://api.github.com/users/inaumovd/followers","following_url":"https://api.github.com/users/inaumovd/following{/other_user}","gists_url":"https://api.github.com/users/inaumovd/gists{/gist_id}","starred_url":"https://api.github.com/users/inaumovd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inaumovd/subscriptions","organizations_url":"https://api.github.com/users/inaumovd/orgs","repos_url":"https://api.github.com/users/inaumovd/repos","events_url":"https://api.github.com/users/inaumovd/events{/privacy}","received_events_url":"https://api.github.com/users/inaumovd/received_events","type":"User","site_admin":false},"html_url":"https://github.com/inaumovd/685293-keksobooking","description":"Дмитрий  Наумов","fork":true,"url":"https://api.github.com/repos/inaumovd/685293-keksobooking","forks_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/forks","keys_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/teams","hooks_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/events","assignees_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/tags","blobs_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/languages","stargazers_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/subscription","commits_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/merges","archive_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/downloads","issues_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/inaumovd/685293-keksobooking/deployments","created_at":"2018-09-18T00:51:51Z","updated_at":"2018-09-27T08:59:29Z","pushed_at":"2018-10-01T12:46:14Z","git_url":"git://github.com/inaumovd/685293-keksobooking.git","ssh_url":"git@github.com:inaumovd/685293-keksobooking.git","clone_url":"https://github.com/inaumovd/685293-keksobooking.git","svn_url":"https://github.com/inaumovd/685293-keksobooking","homepage":null,"size":924,"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,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"c8b3bd031852b10e82f67fdfc183b29a4caa85a9","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":149207268,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkyMDcyNjg=","name":"685293-keksobooking","full_name":"htmlacademy-javascript/685293-keksobooking","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/685293-keksobooking","description":"Дмитрий  Наумов","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/deployments","created_at":"2018-09-18T00:51:28Z","updated_at":"2018-09-27T08:50:52Z","pushed_at":"2018-10-01T12:46:15Z","git_url":"git://github.com/htmlacademy-javascript/685293-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/685293-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/685293-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/685293-keksobooking","homepage":"https://github.com/inaumovd/685293-keksobooking","size":950,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":false,"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/685293-keksobooking/pulls/6"},"html":{"href":"https://github.com/htmlacademy-javascript/685293-keksobooking/pull/6"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/issues/6"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/685293-keksobooking/statuses/4a30a9996347c867a9707eeff8ab22a521fc04c7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"haschish"}}