{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/comments/87511162","pull_request_review_id":8122790,"id":87511162,"diff_hunk":"@@ -22,11 +25,40 @@ var renderReviews = function(reviews) {\n   });\n \n   container.appendChild(reviewsFrag);\n-  reviewsFilter.classList.remove('invisible');\n };\n \n var loadReviews = function() {\n-  load(REVIEWS_LOAD_URL, renderReviews);\n+\n+  load(REVIEWS_LOAD_URL, {\n+    from: reviewBlockNumber,\n+    to: reviewBlockNumber + REVIEWS_BLOCK_SIZE,\n+    filter: filterID\n+  }, renderReviews);\n };\n \n+moreReviewsBtn.classList.remove('invisible');\n+\n+moreReviewsBtn.addEventListener('click', function() {\n+  reviewBlockNumber += REVIEWS_BLOCK_SIZE;\n+  load(REVIEWS_LOAD_URL, {\n+    from: reviewBlockNumber,\n+    to: reviewBlockNumber + REVIEWS_BLOCK_SIZE,\n+    filter: filterID\n+  }, renderReviews);\n+});\n+\n+reviewsFilter.addEventListener('change', function(evt) {\n+  console.log(evt.target.name);\n+  if (evt.target.name) {\n+    container.innerHTML = '';\n+    reviewBlockNumber = 0;\n+    filterID = evt.target.id;\n+    load(REVIEWS_LOAD_URL, {\n+      from: reviewBlockNumber,\n+      to: reviewBlockNumber + REVIEWS_BLOCK_SIZE,\n+      filter: filterID\n+    }, renderReviews);","path":"src/js/reviews.js","position":55,"original_position":55,"commit_id":"e510d752e4edad4fc98a4af2418ef170dd399053","original_commit_id":"e510d752e4edad4fc98a4af2418ef170dd399053","user":{"login":"isqua","id":529247,"avatar_url":"https://avatars.githubusercontent.com/u/529247?v=3","gravatar_id":"","url":"https://api.github.com/users/isqua","html_url":"https://github.com/isqua","followers_url":"https://api.github.com/users/isqua/followers","following_url":"https://api.github.com/users/isqua/following{/other_user}","gists_url":"https://api.github.com/users/isqua/gists{/gist_id}","starred_url":"https://api.github.com/users/isqua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isqua/subscriptions","organizations_url":"https://api.github.com/users/isqua/orgs","repos_url":"https://api.github.com/users/isqua/repos","events_url":"https://api.github.com/users/isqua/events{/privacy}","received_events_url":"https://api.github.com/users/isqua/received_events","type":"User","site_admin":false},"body":"И вот опять!","created_at":"2016-11-10T23:43:23Z","updated_at":"2016-11-10T23:43:26Z","html_url":"https://github.com/htmlacademy-javascript/166603-code-and-magick/pull/13#discussion_r87511162","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/comments/87511162"},"html":{"href":"https://github.com/htmlacademy-javascript/166603-code-and-magick/pull/13#discussion_r87511162"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/13","id":93204048,"html_url":"https://github.com/htmlacademy-javascript/166603-code-and-magick/pull/13","diff_url":"https://github.com/htmlacademy-javascript/166603-code-and-magick/pull/13.diff","patch_url":"https://github.com/htmlacademy-javascript/166603-code-and-magick/pull/13.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/issues/13","number":13,"state":"open","locked":false,"title":"Постраничный вывод и делегирование событий","user":{"login":"proektiruet","id":17561804,"avatar_url":"https://avatars.githubusercontent.com/u/17561804?v=3","gravatar_id":"","url":"https://api.github.com/users/proektiruet","html_url":"https://github.com/proektiruet","followers_url":"https://api.github.com/users/proektiruet/followers","following_url":"https://api.github.com/users/proektiruet/following{/other_user}","gists_url":"https://api.github.com/users/proektiruet/gists{/gist_id}","starred_url":"https://api.github.com/users/proektiruet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proektiruet/subscriptions","organizations_url":"https://api.github.com/users/proektiruet/orgs","repos_url":"https://api.github.com/users/proektiruet/repos","events_url":"https://api.github.com/users/proektiruet/events{/privacy}","received_events_url":"https://api.github.com/users/proektiruet/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-10T18:23:25Z","updated_at":"2016-11-10T23:43:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c9f088e05c338ab0f51f98009fb76a1073f63fe","assignee":{"login":"isqua","id":529247,"avatar_url":"https://avatars.githubusercontent.com/u/529247?v=3","gravatar_id":"","url":"https://api.github.com/users/isqua","html_url":"https://github.com/isqua","followers_url":"https://api.github.com/users/isqua/followers","following_url":"https://api.github.com/users/isqua/following{/other_user}","gists_url":"https://api.github.com/users/isqua/gists{/gist_id}","starred_url":"https://api.github.com/users/isqua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isqua/subscriptions","organizations_url":"https://api.github.com/users/isqua/orgs","repos_url":"https://api.github.com/users/isqua/repos","events_url":"https://api.github.com/users/isqua/events{/privacy}","received_events_url":"https://api.github.com/users/isqua/received_events","type":"User","site_admin":false},"assignees":[{"login":"isqua","id":529247,"avatar_url":"https://avatars.githubusercontent.com/u/529247?v=3","gravatar_id":"","url":"https://api.github.com/users/isqua","html_url":"https://github.com/isqua","followers_url":"https://api.github.com/users/isqua/followers","following_url":"https://api.github.com/users/isqua/following{/other_user}","gists_url":"https://api.github.com/users/isqua/gists{/gist_id}","starred_url":"https://api.github.com/users/isqua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isqua/subscriptions","organizations_url":"https://api.github.com/users/isqua/orgs","repos_url":"https://api.github.com/users/isqua/repos","events_url":"https://api.github.com/users/isqua/events{/privacy}","received_events_url":"https://api.github.com/users/isqua/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/13/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/13/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/issues/13/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/statuses/e510d752e4edad4fc98a4af2418ef170dd399053","head":{"label":"proektiruet:module7-task1","ref":"module7-task1","sha":"e510d752e4edad4fc98a4af2418ef170dd399053","user":{"login":"proektiruet","id":17561804,"avatar_url":"https://avatars.githubusercontent.com/u/17561804?v=3","gravatar_id":"","url":"https://api.github.com/users/proektiruet","html_url":"https://github.com/proektiruet","followers_url":"https://api.github.com/users/proektiruet/followers","following_url":"https://api.github.com/users/proektiruet/following{/other_user}","gists_url":"https://api.github.com/users/proektiruet/gists{/gist_id}","starred_url":"https://api.github.com/users/proektiruet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proektiruet/subscriptions","organizations_url":"https://api.github.com/users/proektiruet/orgs","repos_url":"https://api.github.com/users/proektiruet/repos","events_url":"https://api.github.com/users/proektiruet/events{/privacy}","received_events_url":"https://api.github.com/users/proektiruet/received_events","type":"User","site_admin":false},"repo":{"id":69996342,"name":"code-and-magic","full_name":"proektiruet/code-and-magic","owner":{"login":"proektiruet","id":17561804,"avatar_url":"https://avatars.githubusercontent.com/u/17561804?v=3","gravatar_id":"","url":"https://api.github.com/users/proektiruet","html_url":"https://github.com/proektiruet","followers_url":"https://api.github.com/users/proektiruet/followers","following_url":"https://api.github.com/users/proektiruet/following{/other_user}","gists_url":"https://api.github.com/users/proektiruet/gists{/gist_id}","starred_url":"https://api.github.com/users/proektiruet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proektiruet/subscriptions","organizations_url":"https://api.github.com/users/proektiruet/orgs","repos_url":"https://api.github.com/users/proektiruet/repos","events_url":"https://api.github.com/users/proektiruet/events{/privacy}","received_events_url":"https://api.github.com/users/proektiruet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/proektiruet/code-and-magic","description":"Evgeny Kudryavtsev","fork":true,"url":"https://api.github.com/repos/proektiruet/code-and-magic","forks_url":"https://api.github.com/repos/proektiruet/code-and-magic/forks","keys_url":"https://api.github.com/repos/proektiruet/code-and-magic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/proektiruet/code-and-magic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/proektiruet/code-and-magic/teams","hooks_url":"https://api.github.com/repos/proektiruet/code-and-magic/hooks","issue_events_url":"https://api.github.com/repos/proektiruet/code-and-magic/issues/events{/number}","events_url":"https://api.github.com/repos/proektiruet/code-and-magic/events","assignees_url":"https://api.github.com/repos/proektiruet/code-and-magic/assignees{/user}","branches_url":"https://api.github.com/repos/proektiruet/code-and-magic/branches{/branch}","tags_url":"https://api.github.com/repos/proektiruet/code-and-magic/tags","blobs_url":"https://api.github.com/repos/proektiruet/code-and-magic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/proektiruet/code-and-magic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/proektiruet/code-and-magic/git/refs{/sha}","trees_url":"https://api.github.com/repos/proektiruet/code-and-magic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/proektiruet/code-and-magic/statuses/{sha}","languages_url":"https://api.github.com/repos/proektiruet/code-and-magic/languages","stargazers_url":"https://api.github.com/repos/proektiruet/code-and-magic/stargazers","contributors_url":"https://api.github.com/repos/proektiruet/code-and-magic/contributors","subscribers_url":"https://api.github.com/repos/proektiruet/code-and-magic/subscribers","subscription_url":"https://api.github.com/repos/proektiruet/code-and-magic/subscription","commits_url":"https://api.github.com/repos/proektiruet/code-and-magic/commits{/sha}","git_commits_url":"https://api.github.com/repos/proektiruet/code-and-magic/git/commits{/sha}","comments_url":"https://api.github.com/repos/proektiruet/code-and-magic/comments{/number}","issue_comment_url":"https://api.github.com/repos/proektiruet/code-and-magic/issues/comments{/number}","contents_url":"https://api.github.com/repos/proektiruet/code-and-magic/contents/{+path}","compare_url":"https://api.github.com/repos/proektiruet/code-and-magic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/proektiruet/code-and-magic/merges","archive_url":"https://api.github.com/repos/proektiruet/code-and-magic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/proektiruet/code-and-magic/downloads","issues_url":"https://api.github.com/repos/proektiruet/code-and-magic/issues{/number}","pulls_url":"https://api.github.com/repos/proektiruet/code-and-magic/pulls{/number}","milestones_url":"https://api.github.com/repos/proektiruet/code-and-magic/milestones{/number}","notifications_url":"https://api.github.com/repos/proektiruet/code-and-magic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/proektiruet/code-and-magic/labels{/name}","releases_url":"https://api.github.com/repos/proektiruet/code-and-magic/releases{/id}","deployments_url":"https://api.github.com/repos/proektiruet/code-and-magic/deployments","created_at":"2016-10-04T18:56:14Z","updated_at":"2016-11-02T10:37:09Z","pushed_at":"2016-11-10T23:18:47Z","git_url":"git://github.com/proektiruet/code-and-magic.git","ssh_url":"git@github.com:proektiruet/code-and-magic.git","clone_url":"https://github.com/proektiruet/code-and-magic.git","svn_url":"https://github.com/proektiruet/code-and-magic","homepage":null,"size":1138,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"addfdca826adacd1be67d6acfc45288c71ca5baa","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","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":69996235,"name":"166603-code-and-magick","full_name":"htmlacademy-javascript/166603-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","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/166603-code-and-magick","description":"Evgeny Kudryavtsev","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/deployments","created_at":"2016-10-04T18:54:50Z","updated_at":"2016-10-24T10:58:16Z","pushed_at":"2016-11-10T23:18:47Z","git_url":"git://github.com/htmlacademy-javascript/166603-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/166603-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/166603-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/166603-code-and-magick","homepage":"https://github.com/proektiruet/code-and-magick","size":1304,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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/166603-code-and-magick/pulls/13"},"html":{"href":"https://github.com/htmlacademy-javascript/166603-code-and-magick/pull/13"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/issues/13"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/166603-code-and-magick/statuses/e510d752e4edad4fc98a4af2418ef170dd399053"}}}}
{"actor":{"display_login":"isqua"}}