{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/comments/134571171","pull_request_review_id":57877535,"id":134571171,"diff_hunk":"@@ -0,0 +1,55 @@\n+'use strict';\n+var comments = [\n+  'Всё отлично!',\n+  'В целом всё неплохо. Но не всё.',\n+  'Когда вы делаете фотографию, хорошо бы убирать палец из кадра. В конце концов это просто непрофессионально.',\n+  'Моя бабушка случайно чихнула с фотоаппаратом в руках и у неё получилась фотография лучше.',\n+  'Я поскользнулся на банановой кожуре и уронил фотоаппарат на кота и у меня получилась фотография лучше.',\n+  'Лица у людей на фотке перекошены, как будто их избивают. Как можно было поймать такой неудачный момент?!'\n+];\n+\n+\n+var showHideOverlay = function () {\n+  var uploadOverlay = document.querySelector('.upload-overlay');\n+  uploadOverlay.classList.add('hidden');\n+  var galleryOverlay = document.querySelector('.gallery-overlay');\n+  galleryOverlay.classList.remove('hidden');\n+};\n+\n+showHideOverlay();\n+\n+\n+var getRandomLikes = function (min, max) {\n+  return Math.floor(Math.random() * (max + 1 - min) + min);\n+};\n+\n+\n+var getRandomComment = function (min, max) {\n+  return Math.floor(Math.random() * (max + 1 - min) + min);\n+};\n+\n+var photoElement = [];\n+\n+for (var i = 0; i <= 24; i++) {\n+  var photo = {\n+    url: 'photos/' + (i + 1) + '.jpg',\n+    likes: getRandomLikes(15, 200),\n+    comments: comments[getRandomComment(0, comments.length - 1)]\n+  };\n+  photoElement[i] = photo;\n+}\n+\n+var someFunction = function (array) {\n+  var fragment = document.createDocumentFragment();\n+  var template = document.querySelector('#picture-template').content;\n+  for (i = 0; i < 3; i++) {\n+    var element = template.cloneNode(true);\n+    element.querySelector('img').textContent = photo.url;\n+    element.querySelector('.picture-comments').textContent = photo.comments;","path":"js/pictures.js","position":48,"original_position":48,"commit_id":"4ddf8f4456f268113cc8aa9276cee8486607ba9b","original_commit_id":"4ddf8f4456f268113cc8aa9276cee8486607ba9b","user":{"login":"bolshovalexandr","id":19558362,"avatar_url":"https://avatars0.githubusercontent.com/u/19558362?v=4","gravatar_id":"","url":"https://api.github.com/users/bolshovalexandr","html_url":"https://github.com/bolshovalexandr","followers_url":"https://api.github.com/users/bolshovalexandr/followers","following_url":"https://api.github.com/users/bolshovalexandr/following{/other_user}","gists_url":"https://api.github.com/users/bolshovalexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshovalexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshovalexandr/subscriptions","organizations_url":"https://api.github.com/users/bolshovalexandr/orgs","repos_url":"https://api.github.com/users/bolshovalexandr/repos","events_url":"https://api.github.com/users/bolshovalexandr/events{/privacy}","received_events_url":"https://api.github.com/users/bolshovalexandr/received_events","type":"User","site_admin":false},"body":"Для чего нужно свойство textContent и у всех ли html-элементов оно одинаково полезно?","created_at":"2017-08-22T18:54:13Z","updated_at":"2017-08-22T18:55:08Z","html_url":"https://github.com/htmlacademy-javascript/305185-kekstagram/pull/2#discussion_r134571171","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/comments/134571171"},"html":{"href":"https://github.com/htmlacademy-javascript/305185-kekstagram/pull/2#discussion_r134571171"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/2","id":136956783,"html_url":"https://github.com/htmlacademy-javascript/305185-kekstagram/pull/2","diff_url":"https://github.com/htmlacademy-javascript/305185-kekstagram/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/305185-kekstagram/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/issues/2","number":2,"state":"open","locked":false,"title":"Личный проект: милый DOM","user":{"login":"Shumnial","id":23168913,"avatar_url":"https://avatars1.githubusercontent.com/u/23168913?v=4","gravatar_id":"","url":"https://api.github.com/users/Shumnial","html_url":"https://github.com/Shumnial","followers_url":"https://api.github.com/users/Shumnial/followers","following_url":"https://api.github.com/users/Shumnial/following{/other_user}","gists_url":"https://api.github.com/users/Shumnial/gists{/gist_id}","starred_url":"https://api.github.com/users/Shumnial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shumnial/subscriptions","organizations_url":"https://api.github.com/users/Shumnial/orgs","repos_url":"https://api.github.com/users/Shumnial/repos","events_url":"https://api.github.com/users/Shumnial/events{/privacy}","received_events_url":"https://api.github.com/users/Shumnial/received_events","type":"User","site_admin":false},"body":"Были написаны следующие функции: 1. функция, возвращающая случайное количество лайков. \r\n2. функция, возвращающая один случайный комментарий. \r\n3. Написан пробный вариант функции, которая принимает на вход массив с объектами данных о фотографии и возвращает DocumentFragment\n\n---\n:mortar_board: [Личный проект: милый DOM](https://up.htmlacademy.ru/javascript/10/user/305185/tasks/9)\n\n:boom: https://htmlacademy-javascript.github.io/305185-kekstagram/2/","created_at":"2017-08-22T11:33:26Z","updated_at":"2017-08-22T18:55:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea8eedb2f776194392605594aedec33403656fdb","assignee":{"login":"bolshovalexandr","id":19558362,"avatar_url":"https://avatars0.githubusercontent.com/u/19558362?v=4","gravatar_id":"","url":"https://api.github.com/users/bolshovalexandr","html_url":"https://github.com/bolshovalexandr","followers_url":"https://api.github.com/users/bolshovalexandr/followers","following_url":"https://api.github.com/users/bolshovalexandr/following{/other_user}","gists_url":"https://api.github.com/users/bolshovalexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshovalexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshovalexandr/subscriptions","organizations_url":"https://api.github.com/users/bolshovalexandr/orgs","repos_url":"https://api.github.com/users/bolshovalexandr/repos","events_url":"https://api.github.com/users/bolshovalexandr/events{/privacy}","received_events_url":"https://api.github.com/users/bolshovalexandr/received_events","type":"User","site_admin":false},"assignees":[{"login":"bolshovalexandr","id":19558362,"avatar_url":"https://avatars0.githubusercontent.com/u/19558362?v=4","gravatar_id":"","url":"https://api.github.com/users/bolshovalexandr","html_url":"https://github.com/bolshovalexandr","followers_url":"https://api.github.com/users/bolshovalexandr/followers","following_url":"https://api.github.com/users/bolshovalexandr/following{/other_user}","gists_url":"https://api.github.com/users/bolshovalexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshovalexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshovalexandr/subscriptions","organizations_url":"https://api.github.com/users/bolshovalexandr/orgs","repos_url":"https://api.github.com/users/bolshovalexandr/repos","events_url":"https://api.github.com/users/bolshovalexandr/events{/privacy}","received_events_url":"https://api.github.com/users/bolshovalexandr/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/statuses/4ddf8f4456f268113cc8aa9276cee8486607ba9b","head":{"label":"Shumnial:module3-task1","ref":"module3-task1","sha":"4ddf8f4456f268113cc8aa9276cee8486607ba9b","user":{"login":"Shumnial","id":23168913,"avatar_url":"https://avatars1.githubusercontent.com/u/23168913?v=4","gravatar_id":"","url":"https://api.github.com/users/Shumnial","html_url":"https://github.com/Shumnial","followers_url":"https://api.github.com/users/Shumnial/followers","following_url":"https://api.github.com/users/Shumnial/following{/other_user}","gists_url":"https://api.github.com/users/Shumnial/gists{/gist_id}","starred_url":"https://api.github.com/users/Shumnial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shumnial/subscriptions","organizations_url":"https://api.github.com/users/Shumnial/orgs","repos_url":"https://api.github.com/users/Shumnial/repos","events_url":"https://api.github.com/users/Shumnial/events{/privacy}","received_events_url":"https://api.github.com/users/Shumnial/received_events","type":"User","site_admin":false},"repo":{"id":99826364,"name":"305185-kekstagram","full_name":"Shumnial/305185-kekstagram","owner":{"login":"Shumnial","id":23168913,"avatar_url":"https://avatars1.githubusercontent.com/u/23168913?v=4","gravatar_id":"","url":"https://api.github.com/users/Shumnial","html_url":"https://github.com/Shumnial","followers_url":"https://api.github.com/users/Shumnial/followers","following_url":"https://api.github.com/users/Shumnial/following{/other_user}","gists_url":"https://api.github.com/users/Shumnial/gists{/gist_id}","starred_url":"https://api.github.com/users/Shumnial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shumnial/subscriptions","organizations_url":"https://api.github.com/users/Shumnial/orgs","repos_url":"https://api.github.com/users/Shumnial/repos","events_url":"https://api.github.com/users/Shumnial/events{/privacy}","received_events_url":"https://api.github.com/users/Shumnial/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Shumnial/305185-kekstagram","description":"Nikita Shumakov","fork":true,"url":"https://api.github.com/repos/Shumnial/305185-kekstagram","forks_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/forks","keys_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/teams","hooks_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/events","assignees_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/tags","blobs_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/languages","stargazers_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/subscription","commits_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/merges","archive_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/downloads","issues_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/Shumnial/305185-kekstagram/deployments","created_at":"2017-08-09T15:52:50Z","updated_at":"2017-08-09T15:52:52Z","pushed_at":"2017-08-22T18:20:10Z","git_url":"git://github.com/Shumnial/305185-kekstagram.git","ssh_url":"git@github.com:Shumnial/305185-kekstagram.git","clone_url":"https://github.com/Shumnial/305185-kekstagram.git","svn_url":"https://github.com/Shumnial/305185-kekstagram","homepage":null,"size":4321,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"fab57e4bf7b11ae02ac323ff7d25c11f72915f71","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":99786950,"name":"305185-kekstagram","full_name":"htmlacademy-javascript/305185-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/305185-kekstagram","description":"Nikita Shumakov","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram","forks_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/deployments","created_at":"2017-08-09T08:57:30Z","updated_at":"2017-08-09T17:21:23Z","pushed_at":"2017-08-22T18:22:35Z","git_url":"git://github.com/htmlacademy-javascript/305185-kekstagram.git","ssh_url":"git@github.com:htmlacademy-javascript/305185-kekstagram.git","clone_url":"https://github.com/htmlacademy-javascript/305185-kekstagram.git","svn_url":"https://github.com/htmlacademy-javascript/305185-kekstagram","homepage":"https://github.com/Shumnial/305185-kekstagram","size":4321,"stargazers_count":0,"watchers_count":0,"language":"CSS","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/305185-kekstagram/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/305185-kekstagram/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/305185-kekstagram/statuses/4ddf8f4456f268113cc8aa9276cee8486607ba9b"}}}}
{"actor":{"display_login":"bolshovalexandr"}}