{"action":"created","comment":{"url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/comments/46519618","id":46519618,"diff_hunk":"@@ -226,6 +267,7 @@\n \n     filterForm.classList.add('invisible');\n     uploadForm.classList.remove('invisible');\n+    document.cookie = 'filter=' + filterImage.className.split(' ')[1] + '; expires=' + getCookieExpirationDate();","path":"js/upload.js","position":87,"original_position":87,"commit_id":"8e8aa9fa184d4154430e26efe40fb777edb75427","original_commit_id":"8e8aa9fa184d4154430e26efe40fb777edb75427","user":{"login":"h4","id":430023,"avatar_url":"https://avatars.githubusercontent.com/u/430023?v=3","gravatar_id":"","url":"https://api.github.com/users/h4","html_url":"https://github.com/h4","followers_url":"https://api.github.com/users/h4/followers","following_url":"https://api.github.com/users/h4/following{/other_user}","gists_url":"https://api.github.com/users/h4/gists{/gist_id}","starred_url":"https://api.github.com/users/h4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4/subscriptions","organizations_url":"https://api.github.com/users/h4/orgs","repos_url":"https://api.github.com/users/h4/repos","events_url":"https://api.github.com/users/h4/events{/privacy}","received_events_url":"https://api.github.com/users/h4/received_events","type":"User","site_admin":false},"body":"Неа, мы не просто так библиотеку `cookies.js` подключили. Надо её использовать.","created_at":"2015-12-03T07:19:20Z","updated_at":"2015-12-03T07:19:20Z","html_url":"https://github.com/js-htmlacademy/30917-keksogram/pull/5#discussion_r46519618","pull_request_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/comments/46519618"},"html":{"href":"https://github.com/js-htmlacademy/30917-keksogram/pull/5#discussion_r46519618"},"pull_request":{"href":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/5","id":52224360,"html_url":"https://github.com/js-htmlacademy/30917-keksogram/pull/5","diff_url":"https://github.com/js-htmlacademy/30917-keksogram/pull/5.diff","patch_url":"https://github.com/js-htmlacademy/30917-keksogram/pull/5.patch","issue_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/issues/5","number":5,"state":"open","locked":false,"title":"Cookies","user":{"login":"misterblblbl","id":12000927,"avatar_url":"https://avatars.githubusercontent.com/u/12000927?v=3","gravatar_id":"","url":"https://api.github.com/users/misterblblbl","html_url":"https://github.com/misterblblbl","followers_url":"https://api.github.com/users/misterblblbl/followers","following_url":"https://api.github.com/users/misterblblbl/following{/other_user}","gists_url":"https://api.github.com/users/misterblblbl/gists{/gist_id}","starred_url":"https://api.github.com/users/misterblblbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterblblbl/subscriptions","organizations_url":"https://api.github.com/users/misterblblbl/orgs","repos_url":"https://api.github.com/users/misterblblbl/repos","events_url":"https://api.github.com/users/misterblblbl/events{/privacy}","received_events_url":"https://api.github.com/users/misterblblbl/received_events","type":"User","site_admin":false},"body":"Сохранение примененных фильтров в cookies\n\n--\n:boom: https://js-htmlacademy.github.io/30917-keksogram/5/","created_at":"2015-12-01T07:26:12Z","updated_at":"2015-12-03T07:19:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa8d19e1773a194ffef441e5c81514e9b47f162e","assignee":{"login":"h4","id":430023,"avatar_url":"https://avatars.githubusercontent.com/u/430023?v=3","gravatar_id":"","url":"https://api.github.com/users/h4","html_url":"https://github.com/h4","followers_url":"https://api.github.com/users/h4/followers","following_url":"https://api.github.com/users/h4/following{/other_user}","gists_url":"https://api.github.com/users/h4/gists{/gist_id}","starred_url":"https://api.github.com/users/h4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4/subscriptions","organizations_url":"https://api.github.com/users/h4/orgs","repos_url":"https://api.github.com/users/h4/repos","events_url":"https://api.github.com/users/h4/events{/privacy}","received_events_url":"https://api.github.com/users/h4/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/5/commits","review_comments_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/5/comments","review_comment_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/issues/5/comments","statuses_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/statuses/8e8aa9fa184d4154430e26efe40fb777edb75427","head":{"label":"misterblblbl:module3-task2","ref":"module3-task2","sha":"8e8aa9fa184d4154430e26efe40fb777edb75427","user":{"login":"misterblblbl","id":12000927,"avatar_url":"https://avatars.githubusercontent.com/u/12000927?v=3","gravatar_id":"","url":"https://api.github.com/users/misterblblbl","html_url":"https://github.com/misterblblbl","followers_url":"https://api.github.com/users/misterblblbl/followers","following_url":"https://api.github.com/users/misterblblbl/following{/other_user}","gists_url":"https://api.github.com/users/misterblblbl/gists{/gist_id}","starred_url":"https://api.github.com/users/misterblblbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterblblbl/subscriptions","organizations_url":"https://api.github.com/users/misterblblbl/orgs","repos_url":"https://api.github.com/users/misterblblbl/repos","events_url":"https://api.github.com/users/misterblblbl/events{/privacy}","received_events_url":"https://api.github.com/users/misterblblbl/received_events","type":"User","site_admin":false},"repo":{"id":46027409,"name":"30917-keksogram","full_name":"misterblblbl/30917-keksogram","owner":{"login":"misterblblbl","id":12000927,"avatar_url":"https://avatars.githubusercontent.com/u/12000927?v=3","gravatar_id":"","url":"https://api.github.com/users/misterblblbl","html_url":"https://github.com/misterblblbl","followers_url":"https://api.github.com/users/misterblblbl/followers","following_url":"https://api.github.com/users/misterblblbl/following{/other_user}","gists_url":"https://api.github.com/users/misterblblbl/gists{/gist_id}","starred_url":"https://api.github.com/users/misterblblbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterblblbl/subscriptions","organizations_url":"https://api.github.com/users/misterblblbl/orgs","repos_url":"https://api.github.com/users/misterblblbl/repos","events_url":"https://api.github.com/users/misterblblbl/events{/privacy}","received_events_url":"https://api.github.com/users/misterblblbl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/misterblblbl/30917-keksogram","description":"Александра Годун","fork":true,"url":"https://api.github.com/repos/misterblblbl/30917-keksogram","forks_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/forks","keys_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/teams","hooks_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/hooks","issue_events_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/events","assignees_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/tags","blobs_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/languages","stargazers_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/stargazers","contributors_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/contributors","subscribers_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/subscribers","subscription_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/subscription","commits_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/merges","archive_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/downloads","issues_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/misterblblbl/30917-keksogram/releases{/id}","created_at":"2015-11-12T03:41:13Z","updated_at":"2015-11-12T03:41:14Z","pushed_at":"2015-12-01T07:24:56Z","git_url":"git://github.com/misterblblbl/30917-keksogram.git","ssh_url":"git@github.com:misterblblbl/30917-keksogram.git","clone_url":"https://github.com/misterblblbl/30917-keksogram.git","svn_url":"https://github.com/misterblblbl/30917-keksogram","homepage":null,"size":3780,"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":"js-htmlacademy:master","ref":"master","sha":"44b5392f321956b00589a1ca093d7070d83568a1","user":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":45948668,"name":"30917-keksogram","full_name":"js-htmlacademy/30917-keksogram","owner":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/js-htmlacademy/30917-keksogram","description":"Александра Годун","fork":false,"url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram","forks_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/forks","keys_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/teams","hooks_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/hooks","issue_events_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/events","assignees_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/tags","blobs_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/languages","stargazers_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/stargazers","contributors_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/contributors","subscribers_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/subscribers","subscription_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/subscription","commits_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/merges","archive_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/downloads","issues_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/releases{/id}","created_at":"2015-11-11T00:02:03Z","updated_at":"2015-11-13T21:23:14Z","pushed_at":"2015-12-01T08:06:40Z","git_url":"git://github.com/js-htmlacademy/30917-keksogram.git","ssh_url":"git@github.com:js-htmlacademy/30917-keksogram.git","clone_url":"https://github.com/js-htmlacademy/30917-keksogram.git","svn_url":"https://github.com/js-htmlacademy/30917-keksogram","homepage":"https://github.com/misterblblbl/30917-keksogram","size":3787,"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/js-htmlacademy/30917-keksogram/pulls/5"},"html":{"href":"https://github.com/js-htmlacademy/30917-keksogram/pull/5"},"issue":{"href":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/issues/5"},"comments":{"href":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/js-htmlacademy/30917-keksogram/statuses/8e8aa9fa184d4154430e26efe40fb777edb75427"}}}}