{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/comments/195138333","pull_request_review_id":128443331,"id":195138333,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTEzODMzMw==","diff_hunk":"@@ -0,0 +1,67 @@\n+'use strict';\n+\n+var CLOUD_WIDTH = 420;\n+var CLOUD_HEIGHT = 270;\n+var CLOUD_X = 100;\n+var CLOUD_Y = 10;\n+var GAP = 10;\n+var PADDING = 30;\n+var FONT_GAP = 16;\n+// var TEXT_WIDTH = 50;\n+var BAR_HEIGHT = 150;\n+var BAR_WIDTH = 40;\n+var BAR_GAP = 50;\n+var WHITE = '#fff';\n+var BLACK = '#000';\n+var SHADOW = 'rgba(0, 0, 0, 0.7)';\n+var RED = 'rgba(255, 0, 0, 1)';\n+\n+var renderCloud = function (ctx, x, y, color) {\n+  ctx.fillStyle = color;\n+  ctx.fillRect(x, y, CLOUD_WIDTH, CLOUD_HEIGHT);\n+};\n+\n+var getMaxElement = function (arr) {\n+  var maxElement = arr[0];\n+\n+  for (var i = 0; i < arr.length; i++) {\n+    if (arr[i] > maxElement) {\n+      maxElement = arr[i];\n+    }\n+  }\n+  return maxElement;\n+};\n+\n+var getRandomOpacity = function () {\n+  var opacity = Math.random();\n+  return 'rgba(24, 24, 140, ' + opacity + ')';\n+};\n+\n+window.renderStatistics = function (ctx, names, times) {\n+  renderCloud(ctx, CLOUD_X + GAP, CLOUD_Y + GAP, SHADOW);\n+  renderCloud(ctx, CLOUD_X, CLOUD_Y, WHITE);\n+\n+  ctx.fillStyle = BLACK;\n+  ctx.font = '16px PT Mono';\n+  ctx.fillText('Ура, вы победили!', CLOUD_X + PADDING, CLOUD_Y + PADDING);\n+  ctx.fillText('Список результатов:', CLOUD_X + PADDING, CLOUD_Y + PADDING + FONT_GAP);\n+\n+  var maxTime = getMaxElement(times);\n+\n+  // for (var i = 0; i < 1; i++) {","path":"js/stat.js","position":51,"original_position":51,"commit_id":"b657506b847b0b36f91b667888cac1499b655921","original_commit_id":"b657506b847b0b36f91b667888cac1499b655921","user":{"login":"lunaticusgreen","id":9621964,"node_id":"MDQ6VXNlcjk2MjE5NjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/9621964?v=4","gravatar_id":"","url":"https://api.github.com/users/lunaticusgreen","html_url":"https://github.com/lunaticusgreen","followers_url":"https://api.github.com/users/lunaticusgreen/followers","following_url":"https://api.github.com/users/lunaticusgreen/following{/other_user}","gists_url":"https://api.github.com/users/lunaticusgreen/gists{/gist_id}","starred_url":"https://api.github.com/users/lunaticusgreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunaticusgreen/subscriptions","organizations_url":"https://api.github.com/users/lunaticusgreen/orgs","repos_url":"https://api.github.com/users/lunaticusgreen/repos","events_url":"https://api.github.com/users/lunaticusgreen/events{/privacy}","received_events_url":"https://api.github.com/users/lunaticusgreen/received_events","type":"User","site_admin":false},"body":"Не забудь почистить комментарии\r\n","created_at":"2018-06-13T15:50:08Z","updated_at":"2018-06-13T15:50:13Z","html_url":"https://github.com/htmlacademy-javascript/565341-code-and-magick/pull/3#discussion_r195138333","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/comments/195138333"},"html":{"href":"https://github.com/htmlacademy-javascript/565341-code-and-magick/pull/3#discussion_r195138333"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/3","id":194384369,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0Mzg0MzY5","html_url":"https://github.com/htmlacademy-javascript/565341-code-and-magick/pull/3","diff_url":"https://github.com/htmlacademy-javascript/565341-code-and-magick/pull/3.diff","patch_url":"https://github.com/htmlacademy-javascript/565341-code-and-magick/pull/3.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/issues/3","number":3,"state":"open","locked":false,"title":"Учебный проект «Холст»","user":{"login":"SDim87","id":32322505,"node_id":"MDQ6VXNlcjMyMzIyNTA1","avatar_url":"https://avatars2.githubusercontent.com/u/32322505?v=4","gravatar_id":"","url":"https://api.github.com/users/SDim87","html_url":"https://github.com/SDim87","followers_url":"https://api.github.com/users/SDim87/followers","following_url":"https://api.github.com/users/SDim87/following{/other_user}","gists_url":"https://api.github.com/users/SDim87/gists{/gist_id}","starred_url":"https://api.github.com/users/SDim87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SDim87/subscriptions","organizations_url":"https://api.github.com/users/SDim87/orgs","repos_url":"https://api.github.com/users/SDim87/repos","events_url":"https://api.github.com/users/SDim87/events{/privacy}","received_events_url":"https://api.github.com/users/SDim87/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Учебный проект «Холст»](https://up.htmlacademy.ru/javascript/14/user/565341/tasks/10)\n\n:boom: https://htmlacademy-javascript.github.io/565341-code-and-magick/3/","created_at":"2018-06-12T19:32:17Z","updated_at":"2018-06-13T15:50:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d9e1f2a5aa9e21f1a14e35423166498327f3c2d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/3/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/3/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/issues/3/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/statuses/b657506b847b0b36f91b667888cac1499b655921","head":{"label":"SDim87:module2-task1","ref":"module2-task1","sha":"b657506b847b0b36f91b667888cac1499b655921","user":{"login":"SDim87","id":32322505,"node_id":"MDQ6VXNlcjMyMzIyNTA1","avatar_url":"https://avatars2.githubusercontent.com/u/32322505?v=4","gravatar_id":"","url":"https://api.github.com/users/SDim87","html_url":"https://github.com/SDim87","followers_url":"https://api.github.com/users/SDim87/followers","following_url":"https://api.github.com/users/SDim87/following{/other_user}","gists_url":"https://api.github.com/users/SDim87/gists{/gist_id}","starred_url":"https://api.github.com/users/SDim87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SDim87/subscriptions","organizations_url":"https://api.github.com/users/SDim87/orgs","repos_url":"https://api.github.com/users/SDim87/repos","events_url":"https://api.github.com/users/SDim87/events{/privacy}","received_events_url":"https://api.github.com/users/SDim87/received_events","type":"User","site_admin":false},"repo":{"id":135752444,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU3NTI0NDQ=","name":"565341-code-and-magick","full_name":"SDim87/565341-code-and-magick","owner":{"login":"SDim87","id":32322505,"node_id":"MDQ6VXNlcjMyMzIyNTA1","avatar_url":"https://avatars2.githubusercontent.com/u/32322505?v=4","gravatar_id":"","url":"https://api.github.com/users/SDim87","html_url":"https://github.com/SDim87","followers_url":"https://api.github.com/users/SDim87/followers","following_url":"https://api.github.com/users/SDim87/following{/other_user}","gists_url":"https://api.github.com/users/SDim87/gists{/gist_id}","starred_url":"https://api.github.com/users/SDim87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SDim87/subscriptions","organizations_url":"https://api.github.com/users/SDim87/orgs","repos_url":"https://api.github.com/users/SDim87/repos","events_url":"https://api.github.com/users/SDim87/events{/privacy}","received_events_url":"https://api.github.com/users/SDim87/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SDim87/565341-code-and-magick","description":"Sorokin Dmitriy","fork":true,"url":"https://api.github.com/repos/SDim87/565341-code-and-magick","forks_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/forks","keys_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/teams","hooks_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/events","assignees_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/tags","blobs_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/subscription","commits_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/merges","archive_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/downloads","issues_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/SDim87/565341-code-and-magick/deployments","created_at":"2018-06-01T18:46:24Z","updated_at":"2018-06-12T19:08:41Z","pushed_at":"2018-06-13T12:23:32Z","git_url":"git://github.com/SDim87/565341-code-and-magick.git","ssh_url":"git@github.com:SDim87/565341-code-and-magick.git","clone_url":"https://github.com/SDim87/565341-code-and-magick.git","svn_url":"https://github.com/SDim87/565341-code-and-magick","homepage":null,"size":1079,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"26e41957dea371dc52bbeb7c6124bf3d9f1124c3","user":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","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":135745216,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU3NDUyMTY=","name":"565341-code-and-magick","full_name":"htmlacademy-javascript/565341-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","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/565341-code-and-magick","description":"Sorokin Dmitriy","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/deployments","created_at":"2018-06-01T17:22:02Z","updated_at":"2018-06-04T12:10:34Z","pushed_at":"2018-06-13T12:27:15Z","git_url":"git://github.com/htmlacademy-javascript/565341-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/565341-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/565341-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/565341-code-and-magick","homepage":"https://github.com/SDim87/565341-code-and-magick","size":1086,"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":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/3"},"html":{"href":"https://github.com/htmlacademy-javascript/565341-code-and-magick/pull/3"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/issues/3"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/565341-code-and-magick/statuses/b657506b847b0b36f91b667888cac1499b655921"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lunaticusgreen"}}