{"action":"created","comment":{"url":"https://api.github.com/repos/sharova/epic-book-store/pulls/comments/238439553","pull_request_review_id":180980289,"id":238439553,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODQzOTU1Mw==","diff_hunk":"@@ -1,11 +1,100 @@\n-// function ready(fn) {\n-//   if (document.attachEvent ? document.readyState === \"complete\" : document.readyState !== \"loading\"){\n-//     fn();\n-//   } else {\n-//     document.addEventListener('DOMContentLoaded', fn);\n-//   }\n-// }\n-//\n-// ready(function(){\n-//   console.log('DOM ready');\n-// });\n+function ready(fn) {\n+  if (document.attachEvent ? document.readyState === \"complete\" : document.readyState !== \"loading\"){\n+    fn();\n+  } else {\n+    document.addEventListener('DOMContentLoaded', fn);\n+  }\n+}\n+\n+ready(function(){\n+  console.log('DOM ready');","path":"js/script.js","position":21,"original_position":21,"commit_id":"6a864b5ab9b65cf3745602e03b31e3450878a55a","original_commit_id":"6a864b5ab9b65cf3745602e03b31e3450878a55a","user":{"login":"nicothin","id":3499680,"node_id":"MDQ6VXNlcjM0OTk2ODA=","avatar_url":"https://avatars3.githubusercontent.com/u/3499680?v=4","gravatar_id":"","url":"https://api.github.com/users/nicothin","html_url":"https://github.com/nicothin","followers_url":"https://api.github.com/users/nicothin/followers","following_url":"https://api.github.com/users/nicothin/following{/other_user}","gists_url":"https://api.github.com/users/nicothin/gists{/gist_id}","starred_url":"https://api.github.com/users/nicothin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicothin/subscriptions","organizations_url":"https://api.github.com/users/nicothin/orgs","repos_url":"https://api.github.com/users/nicothin/repos","events_url":"https://api.github.com/users/nicothin/events{/privacy}","received_events_url":"https://api.github.com/users/nicothin/received_events","type":"User","site_admin":false},"body":"весь ваш код должен быть написан тут, внутри `ready`, вместо этого `console.log`","created_at":"2018-12-03T21:14:14Z","updated_at":"2018-12-03T21:16:38Z","html_url":"https://github.com/sharova/epic-book-store/pull/5#discussion_r238439553","pull_request_url":"https://api.github.com/repos/sharova/epic-book-store/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sharova/epic-book-store/pulls/comments/238439553"},"html":{"href":"https://github.com/sharova/epic-book-store/pull/5#discussion_r238439553"},"pull_request":{"href":"https://api.github.com/repos/sharova/epic-book-store/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/sharova/epic-book-store/pulls/5","id":235538808,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NTM4ODA4","html_url":"https://github.com/sharova/epic-book-store/pull/5","diff_url":"https://github.com/sharova/epic-book-store/pull/5.diff","patch_url":"https://github.com/sharova/epic-book-store/pull/5.patch","issue_url":"https://api.github.com/repos/sharova/epic-book-store/issues/5","number":5,"state":"open","locked":false,"title":"Карточки JS на главной","user":{"login":"sharova","id":14889432,"node_id":"MDQ6VXNlcjE0ODg5NDMy","avatar_url":"https://avatars3.githubusercontent.com/u/14889432?v=4","gravatar_id":"","url":"https://api.github.com/users/sharova","html_url":"https://github.com/sharova","followers_url":"https://api.github.com/users/sharova/followers","following_url":"https://api.github.com/users/sharova/following{/other_user}","gists_url":"https://api.github.com/users/sharova/gists{/gist_id}","starred_url":"https://api.github.com/users/sharova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharova/subscriptions","organizations_url":"https://api.github.com/users/sharova/orgs","repos_url":"https://api.github.com/users/sharova/repos","events_url":"https://api.github.com/users/sharova/events{/privacy}","received_events_url":"https://api.github.com/users/sharova/received_events","type":"User","site_admin":false},"body":"В каталоге отображаются, а в новинках пока не получилось.","created_at":"2018-12-03T17:58:37Z","updated_at":"2018-12-03T21:16:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"298b73a411a586301edc67ea5439b65a5ff8a5d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sharova/epic-book-store/pulls/5/commits","review_comments_url":"https://api.github.com/repos/sharova/epic-book-store/pulls/5/comments","review_comment_url":"https://api.github.com/repos/sharova/epic-book-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sharova/epic-book-store/issues/5/comments","statuses_url":"https://api.github.com/repos/sharova/epic-book-store/statuses/6a864b5ab9b65cf3745602e03b31e3450878a55a","head":{"label":"sharova:index-js","ref":"index-js","sha":"6a864b5ab9b65cf3745602e03b31e3450878a55a","user":{"login":"sharova","id":14889432,"node_id":"MDQ6VXNlcjE0ODg5NDMy","avatar_url":"https://avatars3.githubusercontent.com/u/14889432?v=4","gravatar_id":"","url":"https://api.github.com/users/sharova","html_url":"https://github.com/sharova","followers_url":"https://api.github.com/users/sharova/followers","following_url":"https://api.github.com/users/sharova/following{/other_user}","gists_url":"https://api.github.com/users/sharova/gists{/gist_id}","starred_url":"https://api.github.com/users/sharova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharova/subscriptions","organizations_url":"https://api.github.com/users/sharova/orgs","repos_url":"https://api.github.com/users/sharova/repos","events_url":"https://api.github.com/users/sharova/events{/privacy}","received_events_url":"https://api.github.com/users/sharova/received_events","type":"User","site_admin":false},"repo":{"id":159502474,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk1MDI0NzQ=","name":"epic-book-store","full_name":"sharova/epic-book-store","private":false,"owner":{"login":"sharova","id":14889432,"node_id":"MDQ6VXNlcjE0ODg5NDMy","avatar_url":"https://avatars3.githubusercontent.com/u/14889432?v=4","gravatar_id":"","url":"https://api.github.com/users/sharova","html_url":"https://github.com/sharova","followers_url":"https://api.github.com/users/sharova/followers","following_url":"https://api.github.com/users/sharova/following{/other_user}","gists_url":"https://api.github.com/users/sharova/gists{/gist_id}","starred_url":"https://api.github.com/users/sharova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharova/subscriptions","organizations_url":"https://api.github.com/users/sharova/orgs","repos_url":"https://api.github.com/users/sharova/repos","events_url":"https://api.github.com/users/sharova/events{/privacy}","received_events_url":"https://api.github.com/users/sharova/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sharova/epic-book-store","description":null,"fork":false,"url":"https://api.github.com/repos/sharova/epic-book-store","forks_url":"https://api.github.com/repos/sharova/epic-book-store/forks","keys_url":"https://api.github.com/repos/sharova/epic-book-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sharova/epic-book-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sharova/epic-book-store/teams","hooks_url":"https://api.github.com/repos/sharova/epic-book-store/hooks","issue_events_url":"https://api.github.com/repos/sharova/epic-book-store/issues/events{/number}","events_url":"https://api.github.com/repos/sharova/epic-book-store/events","assignees_url":"https://api.github.com/repos/sharova/epic-book-store/assignees{/user}","branches_url":"https://api.github.com/repos/sharova/epic-book-store/branches{/branch}","tags_url":"https://api.github.com/repos/sharova/epic-book-store/tags","blobs_url":"https://api.github.com/repos/sharova/epic-book-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sharova/epic-book-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sharova/epic-book-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/sharova/epic-book-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sharova/epic-book-store/statuses/{sha}","languages_url":"https://api.github.com/repos/sharova/epic-book-store/languages","stargazers_url":"https://api.github.com/repos/sharova/epic-book-store/stargazers","contributors_url":"https://api.github.com/repos/sharova/epic-book-store/contributors","subscribers_url":"https://api.github.com/repos/sharova/epic-book-store/subscribers","subscription_url":"https://api.github.com/repos/sharova/epic-book-store/subscription","commits_url":"https://api.github.com/repos/sharova/epic-book-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/sharova/epic-book-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/sharova/epic-book-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/sharova/epic-book-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/sharova/epic-book-store/contents/{+path}","compare_url":"https://api.github.com/repos/sharova/epic-book-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sharova/epic-book-store/merges","archive_url":"https://api.github.com/repos/sharova/epic-book-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sharova/epic-book-store/downloads","issues_url":"https://api.github.com/repos/sharova/epic-book-store/issues{/number}","pulls_url":"https://api.github.com/repos/sharova/epic-book-store/pulls{/number}","milestones_url":"https://api.github.com/repos/sharova/epic-book-store/milestones{/number}","notifications_url":"https://api.github.com/repos/sharova/epic-book-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sharova/epic-book-store/labels{/name}","releases_url":"https://api.github.com/repos/sharova/epic-book-store/releases{/id}","deployments_url":"https://api.github.com/repos/sharova/epic-book-store/deployments","created_at":"2018-11-28T12:58:45Z","updated_at":"2018-11-28T13:34:21Z","pushed_at":"2018-12-03T17:58:38Z","git_url":"git://github.com/sharova/epic-book-store.git","ssh_url":"git@github.com:sharova/epic-book-store.git","clone_url":"https://github.com/sharova/epic-book-store.git","svn_url":"https://github.com/sharova/epic-book-store","homepage":null,"size":163,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"sharova:master","ref":"master","sha":"8d0e54c360bdafefafb1372400623a07c7154608","user":{"login":"sharova","id":14889432,"node_id":"MDQ6VXNlcjE0ODg5NDMy","avatar_url":"https://avatars3.githubusercontent.com/u/14889432?v=4","gravatar_id":"","url":"https://api.github.com/users/sharova","html_url":"https://github.com/sharova","followers_url":"https://api.github.com/users/sharova/followers","following_url":"https://api.github.com/users/sharova/following{/other_user}","gists_url":"https://api.github.com/users/sharova/gists{/gist_id}","starred_url":"https://api.github.com/users/sharova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharova/subscriptions","organizations_url":"https://api.github.com/users/sharova/orgs","repos_url":"https://api.github.com/users/sharova/repos","events_url":"https://api.github.com/users/sharova/events{/privacy}","received_events_url":"https://api.github.com/users/sharova/received_events","type":"User","site_admin":false},"repo":{"id":159502474,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk1MDI0NzQ=","name":"epic-book-store","full_name":"sharova/epic-book-store","private":false,"owner":{"login":"sharova","id":14889432,"node_id":"MDQ6VXNlcjE0ODg5NDMy","avatar_url":"https://avatars3.githubusercontent.com/u/14889432?v=4","gravatar_id":"","url":"https://api.github.com/users/sharova","html_url":"https://github.com/sharova","followers_url":"https://api.github.com/users/sharova/followers","following_url":"https://api.github.com/users/sharova/following{/other_user}","gists_url":"https://api.github.com/users/sharova/gists{/gist_id}","starred_url":"https://api.github.com/users/sharova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharova/subscriptions","organizations_url":"https://api.github.com/users/sharova/orgs","repos_url":"https://api.github.com/users/sharova/repos","events_url":"https://api.github.com/users/sharova/events{/privacy}","received_events_url":"https://api.github.com/users/sharova/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sharova/epic-book-store","description":null,"fork":false,"url":"https://api.github.com/repos/sharova/epic-book-store","forks_url":"https://api.github.com/repos/sharova/epic-book-store/forks","keys_url":"https://api.github.com/repos/sharova/epic-book-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sharova/epic-book-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sharova/epic-book-store/teams","hooks_url":"https://api.github.com/repos/sharova/epic-book-store/hooks","issue_events_url":"https://api.github.com/repos/sharova/epic-book-store/issues/events{/number}","events_url":"https://api.github.com/repos/sharova/epic-book-store/events","assignees_url":"https://api.github.com/repos/sharova/epic-book-store/assignees{/user}","branches_url":"https://api.github.com/repos/sharova/epic-book-store/branches{/branch}","tags_url":"https://api.github.com/repos/sharova/epic-book-store/tags","blobs_url":"https://api.github.com/repos/sharova/epic-book-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sharova/epic-book-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sharova/epic-book-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/sharova/epic-book-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sharova/epic-book-store/statuses/{sha}","languages_url":"https://api.github.com/repos/sharova/epic-book-store/languages","stargazers_url":"https://api.github.com/repos/sharova/epic-book-store/stargazers","contributors_url":"https://api.github.com/repos/sharova/epic-book-store/contributors","subscribers_url":"https://api.github.com/repos/sharova/epic-book-store/subscribers","subscription_url":"https://api.github.com/repos/sharova/epic-book-store/subscription","commits_url":"https://api.github.com/repos/sharova/epic-book-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/sharova/epic-book-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/sharova/epic-book-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/sharova/epic-book-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/sharova/epic-book-store/contents/{+path}","compare_url":"https://api.github.com/repos/sharova/epic-book-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sharova/epic-book-store/merges","archive_url":"https://api.github.com/repos/sharova/epic-book-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sharova/epic-book-store/downloads","issues_url":"https://api.github.com/repos/sharova/epic-book-store/issues{/number}","pulls_url":"https://api.github.com/repos/sharova/epic-book-store/pulls{/number}","milestones_url":"https://api.github.com/repos/sharova/epic-book-store/milestones{/number}","notifications_url":"https://api.github.com/repos/sharova/epic-book-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sharova/epic-book-store/labels{/name}","releases_url":"https://api.github.com/repos/sharova/epic-book-store/releases{/id}","deployments_url":"https://api.github.com/repos/sharova/epic-book-store/deployments","created_at":"2018-11-28T12:58:45Z","updated_at":"2018-11-28T13:34:21Z","pushed_at":"2018-12-03T17:58:38Z","git_url":"git://github.com/sharova/epic-book-store.git","ssh_url":"git@github.com:sharova/epic-book-store.git","clone_url":"https://github.com/sharova/epic-book-store.git","svn_url":"https://github.com/sharova/epic-book-store","homepage":null,"size":163,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sharova/epic-book-store/pulls/5"},"html":{"href":"https://github.com/sharova/epic-book-store/pull/5"},"issue":{"href":"https://api.github.com/repos/sharova/epic-book-store/issues/5"},"comments":{"href":"https://api.github.com/repos/sharova/epic-book-store/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/sharova/epic-book-store/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/sharova/epic-book-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sharova/epic-book-store/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/sharova/epic-book-store/statuses/6a864b5ab9b65cf3745602e03b31e3450878a55a"}},"author_association":"OWNER"}}
{"actor":{"display_login":"nicothin"}}