{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/comments/59984674","id":59984674,"diff_hunk":"@@ -229,6 +327,15 @@\n   };\n \n   /**\n+   * Установка сохраненного в cookie фильтра по умолчанию\n+   */\n+  var filterVal = browserCookies.get('filter-value');\n+  if(filterVal) {\n+    document.querySelector('input[value=' + filterVal + ']').checked = true;\n+  }\n+  filterImage.className = 'filter-image-preview filter-' + filterVal;","path":"src/upload.js","position":158,"original_position":158,"commit_id":"4510018593670589d134381e3c8828b71d6ef367","original_commit_id":"4510018593670589d134381e3c8828b71d6ef367","user":{"login":"brusenskiy","id":193839,"avatar_url":"https://avatars.githubusercontent.com/u/193839?v=3","gravatar_id":"","url":"https://api.github.com/users/brusenskiy","html_url":"https://github.com/brusenskiy","followers_url":"https://api.github.com/users/brusenskiy/followers","following_url":"https://api.github.com/users/brusenskiy/following{/other_user}","gists_url":"https://api.github.com/users/brusenskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/brusenskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brusenskiy/subscriptions","organizations_url":"https://api.github.com/users/brusenskiy/orgs","repos_url":"https://api.github.com/users/brusenskiy/repos","events_url":"https://api.github.com/users/brusenskiy/events{/privacy}","received_events_url":"https://api.github.com/users/brusenskiy/received_events","type":"User","site_admin":false},"body":"Если в куках для `filter-value` будет пусто, то `className` будет «недоделанный».","created_at":"2016-04-17T13:48:46Z","updated_at":"2016-04-17T13:48:46Z","html_url":"https://github.com/htmlacademy-javascript/18012-kekstagram/pull/6#discussion_r59984674","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/comments/59984674"},"html":{"href":"https://github.com/htmlacademy-javascript/18012-kekstagram/pull/6#discussion_r59984674"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/6","id":66218413,"html_url":"https://github.com/htmlacademy-javascript/18012-kekstagram/pull/6","diff_url":"https://github.com/htmlacademy-javascript/18012-kekstagram/pull/6.diff","patch_url":"https://github.com/htmlacademy-javascript/18012-kekstagram/pull/6.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/issues/6","number":6,"state":"open","locked":false,"title":"Cookies","user":{"login":"bananafishh","id":15823704,"avatar_url":"https://avatars.githubusercontent.com/u/15823704?v=3","gravatar_id":"","url":"https://api.github.com/users/bananafishh","html_url":"https://github.com/bananafishh","followers_url":"https://api.github.com/users/bananafishh/followers","following_url":"https://api.github.com/users/bananafishh/following{/other_user}","gists_url":"https://api.github.com/users/bananafishh/gists{/gist_id}","starred_url":"https://api.github.com/users/bananafishh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananafishh/subscriptions","organizations_url":"https://api.github.com/users/bananafishh/orgs","repos_url":"https://api.github.com/users/bananafishh/repos","events_url":"https://api.github.com/users/bananafishh/events{/privacy}","received_events_url":"https://api.github.com/users/bananafishh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-12T20:01:04Z","updated_at":"2016-04-17T13:48:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ab5ad120e00afa6924ccafe2245d98c62bee833","assignee":{"login":"brusenskiy","id":193839,"avatar_url":"https://avatars.githubusercontent.com/u/193839?v=3","gravatar_id":"","url":"https://api.github.com/users/brusenskiy","html_url":"https://github.com/brusenskiy","followers_url":"https://api.github.com/users/brusenskiy/followers","following_url":"https://api.github.com/users/brusenskiy/following{/other_user}","gists_url":"https://api.github.com/users/brusenskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/brusenskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brusenskiy/subscriptions","organizations_url":"https://api.github.com/users/brusenskiy/orgs","repos_url":"https://api.github.com/users/brusenskiy/repos","events_url":"https://api.github.com/users/brusenskiy/events{/privacy}","received_events_url":"https://api.github.com/users/brusenskiy/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/6/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/6/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/issues/6/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/statuses/4510018593670589d134381e3c8828b71d6ef367","head":{"label":"bananafishh:module3-task3","ref":"module3-task3","sha":"4510018593670589d134381e3c8828b71d6ef367","user":{"login":"bananafishh","id":15823704,"avatar_url":"https://avatars.githubusercontent.com/u/15823704?v=3","gravatar_id":"","url":"https://api.github.com/users/bananafishh","html_url":"https://github.com/bananafishh","followers_url":"https://api.github.com/users/bananafishh/followers","following_url":"https://api.github.com/users/bananafishh/following{/other_user}","gists_url":"https://api.github.com/users/bananafishh/gists{/gist_id}","starred_url":"https://api.github.com/users/bananafishh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananafishh/subscriptions","organizations_url":"https://api.github.com/users/bananafishh/orgs","repos_url":"https://api.github.com/users/bananafishh/repos","events_url":"https://api.github.com/users/bananafishh/events{/privacy}","received_events_url":"https://api.github.com/users/bananafishh/received_events","type":"User","site_admin":false},"repo":{"id":54500781,"name":"18012-kekstagram","full_name":"bananafishh/18012-kekstagram","owner":{"login":"bananafishh","id":15823704,"avatar_url":"https://avatars.githubusercontent.com/u/15823704?v=3","gravatar_id":"","url":"https://api.github.com/users/bananafishh","html_url":"https://github.com/bananafishh","followers_url":"https://api.github.com/users/bananafishh/followers","following_url":"https://api.github.com/users/bananafishh/following{/other_user}","gists_url":"https://api.github.com/users/bananafishh/gists{/gist_id}","starred_url":"https://api.github.com/users/bananafishh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananafishh/subscriptions","organizations_url":"https://api.github.com/users/bananafishh/orgs","repos_url":"https://api.github.com/users/bananafishh/repos","events_url":"https://api.github.com/users/bananafishh/events{/privacy}","received_events_url":"https://api.github.com/users/bananafishh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bananafishh/18012-kekstagram","description":"Зули Дышекова","fork":true,"url":"https://api.github.com/repos/bananafishh/18012-kekstagram","forks_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/forks","keys_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/teams","hooks_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/events","assignees_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/tags","blobs_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/languages","stargazers_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/subscription","commits_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/merges","archive_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/downloads","issues_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/bananafishh/18012-kekstagram/deployments","created_at":"2016-03-22T18:53:44Z","updated_at":"2016-03-22T18:53:46Z","pushed_at":"2016-04-17T13:47:54Z","git_url":"git://github.com/bananafishh/18012-kekstagram.git","ssh_url":"git@github.com:bananafishh/18012-kekstagram.git","clone_url":"https://github.com/bananafishh/18012-kekstagram.git","svn_url":"https://github.com/bananafishh/18012-kekstagram","homepage":null,"size":3779,"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":"77813261425e81e26e9c0ed0af0f17e616fbd84c","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":54500540,"name":"18012-kekstagram","full_name":"htmlacademy-javascript/18012-kekstagram","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/18012-kekstagram","description":"Зули Дышекова","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram","forks_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/deployments","created_at":"2016-03-22T18:50:05Z","updated_at":"2016-03-25T14:38:04Z","pushed_at":"2016-04-17T13:24:39Z","git_url":"git://github.com/htmlacademy-javascript/18012-kekstagram.git","ssh_url":"git@github.com:htmlacademy-javascript/18012-kekstagram.git","clone_url":"https://github.com/htmlacademy-javascript/18012-kekstagram.git","svn_url":"https://github.com/htmlacademy-javascript/18012-kekstagram","homepage":"https://github.com/bananafishh/18012-kekstagram","size":3789,"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":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/6"},"html":{"href":"https://github.com/htmlacademy-javascript/18012-kekstagram/pull/6"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/issues/6"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/18012-kekstagram/statuses/4510018593670589d134381e3c8828b71d6ef367"}}}}