{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/comments/68650247","id":68650247,"diff_hunk":"@@ -1,69 +1,23 @@\n 'use strict';\n \n-var picturesContainer = document.querySelector('.pictures');\n-var templateElement = document.querySelector('template');\n-var elementToClone;\n-\n-var PICTURES_LOAD_URL = 'https://o0.github.io/assets/json/pictures.json';\n-\n-var ACTIVE_FILTER_CLASSNAME = 'picture-filter-active';\n-\n-var PAGE_SIZE = 12;\n-var pageNumber = 0;\n-\n+var CONST = require('./constants');\n+var cssSelectorsDictionary = require('./cssSelectorsDictionary');\n+var getPictureElement = require('./render-image');\n+var getFilteredPictures = require('./filter');\n+var utils = require('./utils');\n+\n+var picturesContainer = document.querySelector(cssSelectorsDictionary.picturesContainerClassName);\n+var PICTURES_LOAD_URL = CONST.picturesLoadUrl;\n+var ACTIVE_FILTER_CLASSNAME = cssSelectorsDictionary.activeFilterClassname;\n+var pageSize = CONST.pageSize;","path":"src/pictures.js","position":23,"original_position":23,"commit_id":"24564f4605578bfef518bdb9545e3cb16aac7871","original_commit_id":"24564f4605578bfef518bdb9545e3cb16aac7871","user":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"body":"почему ACTIVE_FILTER_CLASSNAME капсом, а pageSize нет?","created_at":"2016-06-27T20:32:01Z","updated_at":"2016-06-27T20:32:01Z","html_url":"https://github.com/htmlacademy-javascript/3467-kekstagram/pull/12#discussion_r68650247","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/comments/68650247"},"html":{"href":"https://github.com/htmlacademy-javascript/3467-kekstagram/pull/12#discussion_r68650247"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/12","id":75238175,"html_url":"https://github.com/htmlacademy-javascript/3467-kekstagram/pull/12","diff_url":"https://github.com/htmlacademy-javascript/3467-kekstagram/pull/12.diff","patch_url":"https://github.com/htmlacademy-javascript/3467-kekstagram/pull/12.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/issues/12","number":12,"state":"open","locked":false,"title":"Еще больше модулей","user":{"login":"Drix87","id":5791707,"avatar_url":"https://avatars.githubusercontent.com/u/5791707?v=3","gravatar_id":"","url":"https://api.github.com/users/Drix87","html_url":"https://github.com/Drix87","followers_url":"https://api.github.com/users/Drix87/followers","following_url":"https://api.github.com/users/Drix87/following{/other_user}","gists_url":"https://api.github.com/users/Drix87/gists{/gist_id}","starred_url":"https://api.github.com/users/Drix87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drix87/subscriptions","organizations_url":"https://api.github.com/users/Drix87/orgs","repos_url":"https://api.github.com/users/Drix87/repos","events_url":"https://api.github.com/users/Drix87/events{/privacy}","received_events_url":"https://api.github.com/users/Drix87/received_events","type":"User","site_admin":false},"body":"\n\n--\n:boom: https://htmlacademy-javascript.github.io/3467-kekstagram/12/","created_at":"2016-06-26T19:22:41Z","updated_at":"2016-06-27T20:32:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"747eaed82a83ec333d0b8b9695478aab97cc728f","assignee":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"assignees":[{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/12/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/12/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/issues/12/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/statuses/24564f4605578bfef518bdb9545e3cb16aac7871","head":{"label":"Drix87:module7-task1","ref":"module7-task1","sha":"24564f4605578bfef518bdb9545e3cb16aac7871","user":{"login":"Drix87","id":5791707,"avatar_url":"https://avatars.githubusercontent.com/u/5791707?v=3","gravatar_id":"","url":"https://api.github.com/users/Drix87","html_url":"https://github.com/Drix87","followers_url":"https://api.github.com/users/Drix87/followers","following_url":"https://api.github.com/users/Drix87/following{/other_user}","gists_url":"https://api.github.com/users/Drix87/gists{/gist_id}","starred_url":"https://api.github.com/users/Drix87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drix87/subscriptions","organizations_url":"https://api.github.com/users/Drix87/orgs","repos_url":"https://api.github.com/users/Drix87/repos","events_url":"https://api.github.com/users/Drix87/events{/privacy}","received_events_url":"https://api.github.com/users/Drix87/received_events","type":"User","site_admin":false},"repo":{"id":59602880,"name":"3467-kekstagram","full_name":"Drix87/3467-kekstagram","owner":{"login":"Drix87","id":5791707,"avatar_url":"https://avatars.githubusercontent.com/u/5791707?v=3","gravatar_id":"","url":"https://api.github.com/users/Drix87","html_url":"https://github.com/Drix87","followers_url":"https://api.github.com/users/Drix87/followers","following_url":"https://api.github.com/users/Drix87/following{/other_user}","gists_url":"https://api.github.com/users/Drix87/gists{/gist_id}","starred_url":"https://api.github.com/users/Drix87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drix87/subscriptions","organizations_url":"https://api.github.com/users/Drix87/orgs","repos_url":"https://api.github.com/users/Drix87/repos","events_url":"https://api.github.com/users/Drix87/events{/privacy}","received_events_url":"https://api.github.com/users/Drix87/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Drix87/3467-kekstagram","description":"Кирилл Бондарь","fork":true,"url":"https://api.github.com/repos/Drix87/3467-kekstagram","forks_url":"https://api.github.com/repos/Drix87/3467-kekstagram/forks","keys_url":"https://api.github.com/repos/Drix87/3467-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Drix87/3467-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Drix87/3467-kekstagram/teams","hooks_url":"https://api.github.com/repos/Drix87/3467-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/Drix87/3467-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/Drix87/3467-kekstagram/events","assignees_url":"https://api.github.com/repos/Drix87/3467-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/Drix87/3467-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/Drix87/3467-kekstagram/tags","blobs_url":"https://api.github.com/repos/Drix87/3467-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Drix87/3467-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Drix87/3467-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/Drix87/3467-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Drix87/3467-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/Drix87/3467-kekstagram/languages","stargazers_url":"https://api.github.com/repos/Drix87/3467-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/Drix87/3467-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/Drix87/3467-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/Drix87/3467-kekstagram/subscription","commits_url":"https://api.github.com/repos/Drix87/3467-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/Drix87/3467-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/Drix87/3467-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/Drix87/3467-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/Drix87/3467-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/Drix87/3467-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Drix87/3467-kekstagram/merges","archive_url":"https://api.github.com/repos/Drix87/3467-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Drix87/3467-kekstagram/downloads","issues_url":"https://api.github.com/repos/Drix87/3467-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/Drix87/3467-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/Drix87/3467-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/Drix87/3467-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Drix87/3467-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/Drix87/3467-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/Drix87/3467-kekstagram/deployments","created_at":"2016-05-24T19:37:36Z","updated_at":"2016-05-24T19:37:37Z","pushed_at":"2016-06-27T18:36:46Z","git_url":"git://github.com/Drix87/3467-kekstagram.git","ssh_url":"git@github.com:Drix87/3467-kekstagram.git","clone_url":"https://github.com/Drix87/3467-kekstagram.git","svn_url":"https://github.com/Drix87/3467-kekstagram","homepage":null,"size":3839,"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":"731c25efe2d4265ec332da8f8fe53075ed6ece8e","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":59600973,"name":"3467-kekstagram","full_name":"htmlacademy-javascript/3467-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/3467-kekstagram","description":"Кирилл Бондарь","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram","forks_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/deployments","created_at":"2016-05-24T19:09:13Z","updated_at":"2016-05-24T20:39:15Z","pushed_at":"2016-06-27T18:36:46Z","git_url":"git://github.com/htmlacademy-javascript/3467-kekstagram.git","ssh_url":"git@github.com:htmlacademy-javascript/3467-kekstagram.git","clone_url":"https://github.com/htmlacademy-javascript/3467-kekstagram.git","svn_url":"https://github.com/htmlacademy-javascript/3467-kekstagram","homepage":"https://github.com/Drix87/3467-kekstagram","size":3890,"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/3467-kekstagram/pulls/12"},"html":{"href":"https://github.com/htmlacademy-javascript/3467-kekstagram/pull/12"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/issues/12"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/3467-kekstagram/statuses/24564f4605578bfef518bdb9545e3cb16aac7871"}}}}
{"actor":{"display_login":"bvanyushin"}}