{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/comments/113307731","pull_request_review_id":34684755,"id":113307731,"diff_hunk":"@@ -155,6 +180,87 @@ window.form = (function () {\n     openFilterForm();\n   }\n \n+  // установка фильтра по движению ползунка\n+  function setFilter(coords) {\n+    switch (defaultFilter) {\n+      case 'chrome': filterImgPreview.style.filter = 'grayscale(' + (coords / PIN_MAX_COORDS) + ')';\n+        break;\n+      case 'sepia': filterImgPreview.style.filter = 'sepia(' + (coords / PIN_MAX_COORDS) + ')';\n+        break;\n+      case 'marvin': filterImgPreview.style.filter = 'invert(' + (coords / PIN_MAX_COORDS) * 100 + '%' + ')';\n+        break;\n+      case 'phobos': filterImgPreview.style.filter = 'blur(' + (coords / PIN_MAX_COORDS) * 3 + 'px' + ')';\n+        break;\n+      case 'heat': filterImgPreview.style.filter = 'brightness(' + (coords / PIN_MAX_COORDS) * 3 + ')';\n+        break;\n+    }\n+  }\n+\n+  // обработчик события клика на ползунке фильтра\n+  function onFilterPinMouseDown(evt) {\n+    var starCoords = {\n+      x: evt.clientX,\n+      y: evt.clientY\n+    };\n+\n+    evt.preventDefault();\n+\n+    // обработчик события движения мышки при нажатии\n+    function onDocumentMouseMove(moveEvt) {\n+      moveEvt.preventDefault();\n+\n+      // смещение\n+      var shift = {\n+        x: starCoords.x - moveEvt.clientX\n+      };\n+\n+      // перезапись кординат на новые\n+      starCoords = {\n+        x: moveEvt.clientX\n+      };\n+\n+\n+      if (parseInt(filterPin.style.left, 10) <= PIN_MIN_COORDS) {\n+        filterPin.style.left = PIN_MIN_COORDS + 'px';\n+      }\n+\n+      if (parseInt(filterPin.style.left, 10) >= PIN_MAX_COORDS) {\n+        filterPin.style.left = PIN_MAX_COORDS + 'px';\n+      }\n+\n+      filterPin.style.left = (filterPin.offsetLeft - shift.x) + 'px';\n+      filterProgress.style.width = (filterPin.offsetLeft - shift.x) + 'px';\n+\n+      var coordsPin = filterPin.offsetLeft - shift.x;\n+      setFilter(coordsPin);\n+    }\n+\n+    // обработчик события отжатия клавиши мыши\n+    function onDocumentMouseUp(upEvt) {\n+      upEvt.preventDefault();\n+\n+      filterPin.removeEventListener('blur', onFilterPinMouseBlure);\n+      document.removeEventListener('mousemove', onDocumentMouseMove);\n+      document.removeEventListener('mouseup', onDocumentMouseUp);\n+    }\n+\n+    // обработчик события потери фокуса с ползунка\n+    function onFilterPinMouseBlure(blureEvt) {","path":"js/form.js","position":185,"original_position":185,"commit_id":"4f1543f8e3936bff5bc76b643654ad969f864b54","original_commit_id":"4f1543f8e3936bff5bc76b643654ad969f864b54","user":{"login":"HungryOwl","id":15196793,"avatar_url":"https://avatars2.githubusercontent.com/u/15196793?v=3","gravatar_id":"","url":"https://api.github.com/users/HungryOwl","html_url":"https://github.com/HungryOwl","followers_url":"https://api.github.com/users/HungryOwl/followers","following_url":"https://api.github.com/users/HungryOwl/following{/other_user}","gists_url":"https://api.github.com/users/HungryOwl/gists{/gist_id}","starred_url":"https://api.github.com/users/HungryOwl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HungryOwl/subscriptions","organizations_url":"https://api.github.com/users/HungryOwl/orgs","repos_url":"https://api.github.com/users/HungryOwl/repos","events_url":"https://api.github.com/users/HungryOwl/events{/privacy}","received_events_url":"https://api.github.com/users/HungryOwl/received_events","type":"User","site_admin":false},"body":"все blure везде поправь на blur, потому что пишется blur","created_at":"2017-04-25T20:51:21Z","updated_at":"2017-04-25T20:51:21Z","html_url":"https://github.com/htmlacademy-javascript/323827-kekstagram/pull/6#discussion_r113307731","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/comments/113307731"},"html":{"href":"https://github.com/htmlacademy-javascript/323827-kekstagram/pull/6#discussion_r113307731"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/6","id":117165527,"html_url":"https://github.com/htmlacademy-javascript/323827-kekstagram/pull/6","diff_url":"https://github.com/htmlacademy-javascript/323827-kekstagram/pull/6.diff","patch_url":"https://github.com/htmlacademy-javascript/323827-kekstagram/pull/6.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/issues/6","number":6,"state":"open","locked":false,"title":"Личный проект: максимум подвижности","user":{"login":"Arigami28","id":25018720,"avatar_url":"https://avatars1.githubusercontent.com/u/25018720?v=3","gravatar_id":"","url":"https://api.github.com/users/Arigami28","html_url":"https://github.com/Arigami28","followers_url":"https://api.github.com/users/Arigami28/followers","following_url":"https://api.github.com/users/Arigami28/following{/other_user}","gists_url":"https://api.github.com/users/Arigami28/gists{/gist_id}","starred_url":"https://api.github.com/users/Arigami28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arigami28/subscriptions","organizations_url":"https://api.github.com/users/Arigami28/orgs","repos_url":"https://api.github.com/users/Arigami28/repos","events_url":"https://api.github.com/users/Arigami28/events{/privacy}","received_events_url":"https://api.github.com/users/Arigami28/received_events","type":"User","site_admin":false},"body":"я сделал ползунок но застопорился на  привязки к нему фильтров\n\n---\n:mortar_board: [Личный проект: максимум подвижности](https://up.htmlacademy.ru/javascript/9/user/323827/tasks/16)\n\n:boom: https://htmlacademy-javascript.github.io/323827-kekstagram/6/","created_at":"2017-04-23T20:56:27Z","updated_at":"2017-04-25T20:51:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe28eec490a26964a94879424f8334f289426855","assignee":{"login":"HungryOwl","id":15196793,"avatar_url":"https://avatars2.githubusercontent.com/u/15196793?v=3","gravatar_id":"","url":"https://api.github.com/users/HungryOwl","html_url":"https://github.com/HungryOwl","followers_url":"https://api.github.com/users/HungryOwl/followers","following_url":"https://api.github.com/users/HungryOwl/following{/other_user}","gists_url":"https://api.github.com/users/HungryOwl/gists{/gist_id}","starred_url":"https://api.github.com/users/HungryOwl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HungryOwl/subscriptions","organizations_url":"https://api.github.com/users/HungryOwl/orgs","repos_url":"https://api.github.com/users/HungryOwl/repos","events_url":"https://api.github.com/users/HungryOwl/events{/privacy}","received_events_url":"https://api.github.com/users/HungryOwl/received_events","type":"User","site_admin":false},"assignees":[{"login":"HungryOwl","id":15196793,"avatar_url":"https://avatars2.githubusercontent.com/u/15196793?v=3","gravatar_id":"","url":"https://api.github.com/users/HungryOwl","html_url":"https://github.com/HungryOwl","followers_url":"https://api.github.com/users/HungryOwl/followers","following_url":"https://api.github.com/users/HungryOwl/following{/other_user}","gists_url":"https://api.github.com/users/HungryOwl/gists{/gist_id}","starred_url":"https://api.github.com/users/HungryOwl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HungryOwl/subscriptions","organizations_url":"https://api.github.com/users/HungryOwl/orgs","repos_url":"https://api.github.com/users/HungryOwl/repos","events_url":"https://api.github.com/users/HungryOwl/events{/privacy}","received_events_url":"https://api.github.com/users/HungryOwl/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/6/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/6/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/issues/6/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/statuses/4f1543f8e3936bff5bc76b643654ad969f864b54","head":{"label":"Arigami28:module5-task2","ref":"module5-task2","sha":"4f1543f8e3936bff5bc76b643654ad969f864b54","user":{"login":"Arigami28","id":25018720,"avatar_url":"https://avatars1.githubusercontent.com/u/25018720?v=3","gravatar_id":"","url":"https://api.github.com/users/Arigami28","html_url":"https://github.com/Arigami28","followers_url":"https://api.github.com/users/Arigami28/followers","following_url":"https://api.github.com/users/Arigami28/following{/other_user}","gists_url":"https://api.github.com/users/Arigami28/gists{/gist_id}","starred_url":"https://api.github.com/users/Arigami28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arigami28/subscriptions","organizations_url":"https://api.github.com/users/Arigami28/orgs","repos_url":"https://api.github.com/users/Arigami28/repos","events_url":"https://api.github.com/users/Arigami28/events{/privacy}","received_events_url":"https://api.github.com/users/Arigami28/received_events","type":"User","site_admin":false},"repo":{"id":85746901,"name":"kekstagram","full_name":"Arigami28/kekstagram","owner":{"login":"Arigami28","id":25018720,"avatar_url":"https://avatars1.githubusercontent.com/u/25018720?v=3","gravatar_id":"","url":"https://api.github.com/users/Arigami28","html_url":"https://github.com/Arigami28","followers_url":"https://api.github.com/users/Arigami28/followers","following_url":"https://api.github.com/users/Arigami28/following{/other_user}","gists_url":"https://api.github.com/users/Arigami28/gists{/gist_id}","starred_url":"https://api.github.com/users/Arigami28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arigami28/subscriptions","organizations_url":"https://api.github.com/users/Arigami28/orgs","repos_url":"https://api.github.com/users/Arigami28/repos","events_url":"https://api.github.com/users/Arigami28/events{/privacy}","received_events_url":"https://api.github.com/users/Arigami28/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Arigami28/kekstagram","description":"Роман Андреев","fork":true,"url":"https://api.github.com/repos/Arigami28/kekstagram","forks_url":"https://api.github.com/repos/Arigami28/kekstagram/forks","keys_url":"https://api.github.com/repos/Arigami28/kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arigami28/kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arigami28/kekstagram/teams","hooks_url":"https://api.github.com/repos/Arigami28/kekstagram/hooks","issue_events_url":"https://api.github.com/repos/Arigami28/kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/Arigami28/kekstagram/events","assignees_url":"https://api.github.com/repos/Arigami28/kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/Arigami28/kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/Arigami28/kekstagram/tags","blobs_url":"https://api.github.com/repos/Arigami28/kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arigami28/kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arigami28/kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arigami28/kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arigami28/kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/Arigami28/kekstagram/languages","stargazers_url":"https://api.github.com/repos/Arigami28/kekstagram/stargazers","contributors_url":"https://api.github.com/repos/Arigami28/kekstagram/contributors","subscribers_url":"https://api.github.com/repos/Arigami28/kekstagram/subscribers","subscription_url":"https://api.github.com/repos/Arigami28/kekstagram/subscription","commits_url":"https://api.github.com/repos/Arigami28/kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arigami28/kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arigami28/kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arigami28/kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arigami28/kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/Arigami28/kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arigami28/kekstagram/merges","archive_url":"https://api.github.com/repos/Arigami28/kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arigami28/kekstagram/downloads","issues_url":"https://api.github.com/repos/Arigami28/kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/Arigami28/kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/Arigami28/kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/Arigami28/kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arigami28/kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/Arigami28/kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/Arigami28/kekstagram/deployments","created_at":"2017-03-21T19:54:49Z","updated_at":"2017-04-20T11:54:50Z","pushed_at":"2017-04-25T20:43:41Z","git_url":"git://github.com/Arigami28/kekstagram.git","ssh_url":"git@github.com:Arigami28/kekstagram.git","clone_url":"https://github.com/Arigami28/kekstagram.git","svn_url":"https://github.com/Arigami28/kekstagram","homepage":null,"size":4316,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"fc1b0bded75a5335c89113320a5b0563c6335c15","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars1.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":85746787,"name":"323827-kekstagram","full_name":"htmlacademy-javascript/323827-kekstagram","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars1.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/323827-kekstagram","description":"Роман Андреев","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram","forks_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/deployments","created_at":"2017-03-21T19:53:35Z","updated_at":"2017-04-19T22:36:58Z","pushed_at":"2017-04-25T20:43:42Z","git_url":"git://github.com/htmlacademy-javascript/323827-kekstagram.git","ssh_url":"git@github.com:htmlacademy-javascript/323827-kekstagram.git","clone_url":"https://github.com/htmlacademy-javascript/323827-kekstagram.git","svn_url":"https://github.com/htmlacademy-javascript/323827-kekstagram","homepage":"https://github.com/Arigami28/kekstagram","size":4324,"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,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/6"},"html":{"href":"https://github.com/htmlacademy-javascript/323827-kekstagram/pull/6"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/issues/6"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/323827-kekstagram/statuses/4f1543f8e3936bff5bc76b643654ad969f864b54"}}}}
{"actor":{"display_login":"HungryOwl"}}