{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/comments/169542923","pull_request_review_id":98083992,"id":169542923,"diff_hunk":"@@ -0,0 +1,43 @@\n+'use strict';\n+\n+(function () {\n+  window.save = function (data, onLoad, onError) {\n+    var URL = 'https://js.dump.academy/code-and-magick';\n+    var xhr = new XMLHttpRequest();\n+    xhr.responseType = 'json';\n+    xhr.timeout = '10000';\n+    xhr.addEventListener('load', function () {\n+      if (xhr.status === 200) {","path":"js/backend.js","position":10,"original_position":10,"commit_id":"459b96e37c6fa6ccee904b193b11e4776cf21a81","original_commit_id":"459b96e37c6fa6ccee904b193b11e4776cf21a81","user":{"login":"serhiirubets","id":31925406,"avatar_url":"https://avatars3.githubusercontent.com/u/31925406?v=4","gravatar_id":"","url":"https://api.github.com/users/serhiirubets","html_url":"https://github.com/serhiirubets","followers_url":"https://api.github.com/users/serhiirubets/followers","following_url":"https://api.github.com/users/serhiirubets/following{/other_user}","gists_url":"https://api.github.com/users/serhiirubets/gists{/gist_id}","starred_url":"https://api.github.com/users/serhiirubets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serhiirubets/subscriptions","organizations_url":"https://api.github.com/users/serhiirubets/orgs","repos_url":"https://api.github.com/users/serhiirubets/repos","events_url":"https://api.github.com/users/serhiirubets/events{/privacy}","received_events_url":"https://api.github.com/users/serhiirubets/received_events","type":"User","site_admin":false},"body":"Статусы тоже выносим в константы, например:\r\nvar status: {\r\n  ok: 200,\r\n  notFound: 404\r\n}","created_at":"2018-02-21T06:13:19Z","updated_at":"2018-02-21T06:13:39Z","html_url":"https://github.com/htmlacademy-javascript/398575-code-and-magick/pull/7#discussion_r169542923","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/comments/169542923"},"html":{"href":"https://github.com/htmlacademy-javascript/398575-code-and-magick/pull/7#discussion_r169542923"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/7","id":170238633,"html_url":"https://github.com/htmlacademy-javascript/398575-code-and-magick/pull/7","diff_url":"https://github.com/htmlacademy-javascript/398575-code-and-magick/pull/7.diff","patch_url":"https://github.com/htmlacademy-javascript/398575-code-and-magick/pull/7.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/issues/7","number":7,"state":"open","locked":false,"title":"Учебный проект: pimp my mage","user":{"login":"amidkoruzam","id":33291143,"avatar_url":"https://avatars3.githubusercontent.com/u/33291143?v=4","gravatar_id":"","url":"https://api.github.com/users/amidkoruzam","html_url":"https://github.com/amidkoruzam","followers_url":"https://api.github.com/users/amidkoruzam/followers","following_url":"https://api.github.com/users/amidkoruzam/following{/other_user}","gists_url":"https://api.github.com/users/amidkoruzam/gists{/gist_id}","starred_url":"https://api.github.com/users/amidkoruzam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amidkoruzam/subscriptions","organizations_url":"https://api.github.com/users/amidkoruzam/orgs","repos_url":"https://api.github.com/users/amidkoruzam/repos","events_url":"https://api.github.com/users/amidkoruzam/events{/privacy}","received_events_url":"https://api.github.com/users/amidkoruzam/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Учебный проект: pimp my mage](https://up.htmlacademy.ru/javascript/12/user/398575/tasks/21)\n\n:boom: https://htmlacademy-javascript.github.io/398575-code-and-magick/7/","created_at":"2018-02-20T16:15:56Z","updated_at":"2018-02-21T06:13:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85c9ec5fed8456e7107ad1f338993eba95ae1a73","assignee":{"login":"sergeyamator","id":8464200,"avatar_url":"https://avatars1.githubusercontent.com/u/8464200?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeyamator","html_url":"https://github.com/sergeyamator","followers_url":"https://api.github.com/users/sergeyamator/followers","following_url":"https://api.github.com/users/sergeyamator/following{/other_user}","gists_url":"https://api.github.com/users/sergeyamator/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyamator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyamator/subscriptions","organizations_url":"https://api.github.com/users/sergeyamator/orgs","repos_url":"https://api.github.com/users/sergeyamator/repos","events_url":"https://api.github.com/users/sergeyamator/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyamator/received_events","type":"User","site_admin":false},"assignees":[{"login":"sergeyamator","id":8464200,"avatar_url":"https://avatars1.githubusercontent.com/u/8464200?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeyamator","html_url":"https://github.com/sergeyamator","followers_url":"https://api.github.com/users/sergeyamator/followers","following_url":"https://api.github.com/users/sergeyamator/following{/other_user}","gists_url":"https://api.github.com/users/sergeyamator/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyamator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyamator/subscriptions","organizations_url":"https://api.github.com/users/sergeyamator/orgs","repos_url":"https://api.github.com/users/sergeyamator/repos","events_url":"https://api.github.com/users/sergeyamator/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyamator/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/7/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/7/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/issues/7/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/statuses/459b96e37c6fa6ccee904b193b11e4776cf21a81","head":{"label":"amidkoruzam:module6-task2","ref":"module6-task2","sha":"459b96e37c6fa6ccee904b193b11e4776cf21a81","user":{"login":"amidkoruzam","id":33291143,"avatar_url":"https://avatars3.githubusercontent.com/u/33291143?v=4","gravatar_id":"","url":"https://api.github.com/users/amidkoruzam","html_url":"https://github.com/amidkoruzam","followers_url":"https://api.github.com/users/amidkoruzam/followers","following_url":"https://api.github.com/users/amidkoruzam/following{/other_user}","gists_url":"https://api.github.com/users/amidkoruzam/gists{/gist_id}","starred_url":"https://api.github.com/users/amidkoruzam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amidkoruzam/subscriptions","organizations_url":"https://api.github.com/users/amidkoruzam/orgs","repos_url":"https://api.github.com/users/amidkoruzam/repos","events_url":"https://api.github.com/users/amidkoruzam/events{/privacy}","received_events_url":"https://api.github.com/users/amidkoruzam/received_events","type":"User","site_admin":false},"repo":{"id":118760196,"name":"398575-code-and-magick","full_name":"amidkoruzam/398575-code-and-magick","owner":{"login":"amidkoruzam","id":33291143,"avatar_url":"https://avatars3.githubusercontent.com/u/33291143?v=4","gravatar_id":"","url":"https://api.github.com/users/amidkoruzam","html_url":"https://github.com/amidkoruzam","followers_url":"https://api.github.com/users/amidkoruzam/followers","following_url":"https://api.github.com/users/amidkoruzam/following{/other_user}","gists_url":"https://api.github.com/users/amidkoruzam/gists{/gist_id}","starred_url":"https://api.github.com/users/amidkoruzam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amidkoruzam/subscriptions","organizations_url":"https://api.github.com/users/amidkoruzam/orgs","repos_url":"https://api.github.com/users/amidkoruzam/repos","events_url":"https://api.github.com/users/amidkoruzam/events{/privacy}","received_events_url":"https://api.github.com/users/amidkoruzam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amidkoruzam/398575-code-and-magick","description":"Дмитрий Мазурок","fork":true,"url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick","forks_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/forks","keys_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/teams","hooks_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/events","assignees_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/tags","blobs_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/subscription","commits_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/merges","archive_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/downloads","issues_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/amidkoruzam/398575-code-and-magick/deployments","created_at":"2018-01-24T12:06:23Z","updated_at":"2018-01-24T12:06:26Z","pushed_at":"2018-02-20T16:26:45Z","git_url":"git://github.com/amidkoruzam/398575-code-and-magick.git","ssh_url":"git@github.com:amidkoruzam/398575-code-and-magick.git","clone_url":"https://github.com/amidkoruzam/398575-code-and-magick.git","svn_url":"https://github.com/amidkoruzam/398575-code-and-magick","homepage":null,"size":1114,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"661fb4f785cb4fd676a9cec7de3707c4a244b52b","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":118671581,"name":"398575-code-and-magick","full_name":"htmlacademy-javascript/398575-code-and-magick","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/398575-code-and-magick","description":"Дмитрий Мазурок","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/deployments","created_at":"2018-01-23T21:22:37Z","updated_at":"2018-01-25T19:49:36Z","pushed_at":"2018-02-21T06:12:13Z","git_url":"git://github.com/htmlacademy-javascript/398575-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/398575-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/398575-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/398575-code-and-magick","homepage":"https://github.com/amidkoruzam/398575-code-and-magick","size":1128,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/398575-code-and-magick/pulls/7"},"html":{"href":"https://github.com/htmlacademy-javascript/398575-code-and-magick/pull/7"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/issues/7"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/398575-code-and-magick/statuses/459b96e37c6fa6ccee904b193b11e4776cf21a81"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"serhiirubets"}}