{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/comments/158600388","pull_request_review_id":85439866,"id":158600388,"diff_hunk":"@@ -0,0 +1,180 @@\n+'use strict';\n+\n+(function () {\n+\n+  var dragPocket = {};\n+  var filterValues = {\n+\n+    'effect-chrome': 1,\n+    'effect-sepia': 1,\n+    'effect-marvin': 100,\n+    'effect-phobos': 5,\n+    'effect-heat': 3\n+\n+  };\n+\n+  var blockSliderLine = document.querySelector('.upload-effect-level-line');\n+  var blockSliderPin = document.querySelector('.upload-effect-level-pin');\n+  var blockSliderVal = document.querySelector('.upload-effect-level-val');\n+\n+  var changeEffectImage = function (target) {\n+\n+    return 'effect-' + target.value;\n+\n+  };\n+\n+  var setValueSlider = function (value) {\n+\n+    blockSliderPin.style.left = value;\n+    blockSliderVal.style.width = value;\n+\n+  };\n+\n+\n+  var setFilterDefault = function (effect, blockSlider) {\n+\n+    if (effect === 'effect-none') {\n+\n+      blockSlider.classList.add('hidden');\n+\n+    } else {\n+\n+      setValueSlider('100%');\n+\n+      blockSlider.classList.remove('hidden');\n+\n+    }\n+\n+  };\n+\n+  window.initializeFilters = {\n+\n+    effectCheckbox: function (blockEffect, blockSlider, applyFilter, setFilterName) {","path":"js/initialize-filters.js","position":52,"original_position":52,"commit_id":"fb80837e4083f9d3c762c65b9441efd4207701c5","original_commit_id":"fb80837e4083f9d3c762c65b9441efd4207701c5","user":{"login":"endophasie","id":3120209,"avatar_url":"https://avatars2.githubusercontent.com/u/3120209?v=4","gravatar_id":"","url":"https://api.github.com/users/endophasie","html_url":"https://github.com/endophasie","followers_url":"https://api.github.com/users/endophasie/followers","following_url":"https://api.github.com/users/endophasie/following{/other_user}","gists_url":"https://api.github.com/users/endophasie/gists{/gist_id}","starred_url":"https://api.github.com/users/endophasie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endophasie/subscriptions","organizations_url":"https://api.github.com/users/endophasie/orgs","repos_url":"https://api.github.com/users/endophasie/repos","events_url":"https://api.github.com/users/endophasie/events{/privacy}","received_events_url":"https://api.github.com/users/endophasie/received_events","type":"User","site_admin":false},"body":"Обрати внимание на [критерий](https://up.htmlacademy.ru/javascript/11/criteries#advanced-4) — сейчас имена параметров те же, что и у значений, которые передаются сюда, код получается сильно связанным. Параметры должны иметь абстрактное имя, описывающее их роль (`setFilter`), а вот значения уже более конкретные (`applyFilter`)","created_at":"2017-12-24T11:55:02Z","updated_at":"2017-12-24T12:04:00Z","html_url":"https://github.com/htmlacademy-javascript/43580-kekstagram/pull/7#discussion_r158600388","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/7","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/comments/158600388"},"html":{"href":"https://github.com/htmlacademy-javascript/43580-kekstagram/pull/7#discussion_r158600388"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/7","id":159969406,"html_url":"https://github.com/htmlacademy-javascript/43580-kekstagram/pull/7","diff_url":"https://github.com/htmlacademy-javascript/43580-kekstagram/pull/7.diff","patch_url":"https://github.com/htmlacademy-javascript/43580-kekstagram/pull/7.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/issues/7","number":7,"state":"open","locked":false,"title":"Личный проект: уникальный код","user":{"login":"Dovakot","id":25502651,"avatar_url":"https://avatars1.githubusercontent.com/u/25502651?v=4","gravatar_id":"","url":"https://api.github.com/users/Dovakot","html_url":"https://github.com/Dovakot","followers_url":"https://api.github.com/users/Dovakot/followers","following_url":"https://api.github.com/users/Dovakot/following{/other_user}","gists_url":"https://api.github.com/users/Dovakot/gists{/gist_id}","starred_url":"https://api.github.com/users/Dovakot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dovakot/subscriptions","organizations_url":"https://api.github.com/users/Dovakot/orgs","repos_url":"https://api.github.com/users/Dovakot/repos","events_url":"https://api.github.com/users/Dovakot/events{/privacy}","received_events_url":"https://api.github.com/users/Dovakot/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: уникальный код](https://up.htmlacademy.ru/javascript/11/user/43580/tasks/20)\n\n:boom: https://htmlacademy-javascript.github.io/43580-kekstagram/7/","created_at":"2017-12-23T14:00:56Z","updated_at":"2017-12-24T12:04:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9081e067c7210f1889d61671bfdba53a26f746fe","assignee":{"login":"endophasie","id":3120209,"avatar_url":"https://avatars2.githubusercontent.com/u/3120209?v=4","gravatar_id":"","url":"https://api.github.com/users/endophasie","html_url":"https://github.com/endophasie","followers_url":"https://api.github.com/users/endophasie/followers","following_url":"https://api.github.com/users/endophasie/following{/other_user}","gists_url":"https://api.github.com/users/endophasie/gists{/gist_id}","starred_url":"https://api.github.com/users/endophasie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endophasie/subscriptions","organizations_url":"https://api.github.com/users/endophasie/orgs","repos_url":"https://api.github.com/users/endophasie/repos","events_url":"https://api.github.com/users/endophasie/events{/privacy}","received_events_url":"https://api.github.com/users/endophasie/received_events","type":"User","site_admin":false},"assignees":[{"login":"endophasie","id":3120209,"avatar_url":"https://avatars2.githubusercontent.com/u/3120209?v=4","gravatar_id":"","url":"https://api.github.com/users/endophasie","html_url":"https://github.com/endophasie","followers_url":"https://api.github.com/users/endophasie/followers","following_url":"https://api.github.com/users/endophasie/following{/other_user}","gists_url":"https://api.github.com/users/endophasie/gists{/gist_id}","starred_url":"https://api.github.com/users/endophasie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endophasie/subscriptions","organizations_url":"https://api.github.com/users/endophasie/orgs","repos_url":"https://api.github.com/users/endophasie/repos","events_url":"https://api.github.com/users/endophasie/events{/privacy}","received_events_url":"https://api.github.com/users/endophasie/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/7/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/7/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/issues/7/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/statuses/fb80837e4083f9d3c762c65b9441efd4207701c5","head":{"label":"Dovakot:module6-task1","ref":"module6-task1","sha":"fb80837e4083f9d3c762c65b9441efd4207701c5","user":{"login":"Dovakot","id":25502651,"avatar_url":"https://avatars1.githubusercontent.com/u/25502651?v=4","gravatar_id":"","url":"https://api.github.com/users/Dovakot","html_url":"https://github.com/Dovakot","followers_url":"https://api.github.com/users/Dovakot/followers","following_url":"https://api.github.com/users/Dovakot/following{/other_user}","gists_url":"https://api.github.com/users/Dovakot/gists{/gist_id}","starred_url":"https://api.github.com/users/Dovakot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dovakot/subscriptions","organizations_url":"https://api.github.com/users/Dovakot/orgs","repos_url":"https://api.github.com/users/Dovakot/repos","events_url":"https://api.github.com/users/Dovakot/events{/privacy}","received_events_url":"https://api.github.com/users/Dovakot/received_events","type":"User","site_admin":false},"repo":{"id":111365666,"name":"43580-kekstagram","full_name":"Dovakot/43580-kekstagram","owner":{"login":"Dovakot","id":25502651,"avatar_url":"https://avatars1.githubusercontent.com/u/25502651?v=4","gravatar_id":"","url":"https://api.github.com/users/Dovakot","html_url":"https://github.com/Dovakot","followers_url":"https://api.github.com/users/Dovakot/followers","following_url":"https://api.github.com/users/Dovakot/following{/other_user}","gists_url":"https://api.github.com/users/Dovakot/gists{/gist_id}","starred_url":"https://api.github.com/users/Dovakot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dovakot/subscriptions","organizations_url":"https://api.github.com/users/Dovakot/orgs","repos_url":"https://api.github.com/users/Dovakot/repos","events_url":"https://api.github.com/users/Dovakot/events{/privacy}","received_events_url":"https://api.github.com/users/Dovakot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dovakot/43580-kekstagram","description":"Анастасия Яковлева","fork":true,"url":"https://api.github.com/repos/Dovakot/43580-kekstagram","forks_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/forks","keys_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/teams","hooks_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/events","assignees_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/tags","blobs_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/languages","stargazers_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/subscription","commits_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/merges","archive_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/downloads","issues_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/Dovakot/43580-kekstagram/deployments","created_at":"2017-11-20T05:26:00Z","updated_at":"2017-12-23T01:58:53Z","pushed_at":"2017-12-23T14:00:27Z","git_url":"git://github.com/Dovakot/43580-kekstagram.git","ssh_url":"git@github.com:Dovakot/43580-kekstagram.git","clone_url":"https://github.com/Dovakot/43580-kekstagram.git","svn_url":"https://github.com/Dovakot/43580-kekstagram","homepage":null,"size":4346,"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":"e0f1040ef0d5f866b9d319699eb64866f6f31a0d","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":111312363,"name":"43580-kekstagram","full_name":"htmlacademy-javascript/43580-kekstagram","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/43580-kekstagram","description":"Анастасия Яковлева","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram","forks_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/deployments","created_at":"2017-11-19T16:29:30Z","updated_at":"2017-12-22T19:46:04Z","pushed_at":"2017-12-23T22:27:08Z","git_url":"git://github.com/htmlacademy-javascript/43580-kekstagram.git","ssh_url":"git@github.com:htmlacademy-javascript/43580-kekstagram.git","clone_url":"https://github.com/htmlacademy-javascript/43580-kekstagram.git","svn_url":"https://github.com/htmlacademy-javascript/43580-kekstagram","homepage":"https://github.com/Dovakot/43580-kekstagram","size":4341,"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/43580-kekstagram/pulls/7"},"html":{"href":"https://github.com/htmlacademy-javascript/43580-kekstagram/pull/7"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/issues/7"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/43580-kekstagram/statuses/fb80837e4083f9d3c762c65b9441efd4207701c5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"endophasie"}}