{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/comments/214571798","pull_request_review_id":151654868,"id":214571798,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDU3MTc5OA==","diff_hunk":"@@ -0,0 +1,62 @@\n+'use strict';\n+\n+var CLOUD_WIDTH = 420;\n+var CLOUD_HEIGHT = 270;\n+var CLOUD_X = 100;\n+var CLOUD_Y = 270;\n+var GAP_X = 50;\n+var GAP_Y = 10;\n+var GAP_TOP = 90;\n+var FONT_GAP = 20;\n+var BAR_WIDTH = 40;\n+var BAR_COLOR = 'rgba(255, 0, 0, 1)';\n+var barHeight = CLOUD_Y - GAP_Y - FONT_GAP - GAP_TOP;\n+\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+  if (arr.length === 0) {\n+    return null;\n+  }\n+\n+  var maxElement = arr[0];\n+  for (var i = 0; i < arr.length; i++) {\n+    if (arr[i] > maxElement) {\n+      maxElement = arr[i];\n+    }\n+  }\n+\n+  return maxElement;\n+};\n+\n+window.renderStatistics = function (ctx, names, times) {\n+  renderCloud(ctx, 110, 20, 'rgba(0, 0, 0, 0.7)');\n+  renderCloud(ctx, 100, 10, '#fff');","path":"js/stat.js","position":38,"original_position":38,"commit_id":"242098f2169535f56fe2eba5d98ad754ce24bf6f","original_commit_id":"242098f2169535f56fe2eba5d98ad754ce24bf6f","user":{"login":"dmfedotov","id":23505268,"node_id":"MDQ6VXNlcjIzNTA1MjY4","avatar_url":"https://avatars3.githubusercontent.com/u/23505268?v=4","gravatar_id":"","url":"https://api.github.com/users/dmfedotov","html_url":"https://github.com/dmfedotov","followers_url":"https://api.github.com/users/dmfedotov/followers","following_url":"https://api.github.com/users/dmfedotov/following{/other_user}","gists_url":"https://api.github.com/users/dmfedotov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmfedotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmfedotov/subscriptions","organizations_url":"https://api.github.com/users/dmfedotov/orgs","repos_url":"https://api.github.com/users/dmfedotov/repos","events_url":"https://api.github.com/users/dmfedotov/events{/privacy}","received_events_url":"https://api.github.com/users/dmfedotov/received_events","type":"User","site_admin":false},"body":"Если придется создать еще одно облако с другим цветом, тогда что? Не менять же константу, которая будет хранить цвет.","created_at":"2018-09-03T03:59:46Z","updated_at":"2018-09-03T03:59:46Z","html_url":"https://github.com/htmlacademy-javascript/125454-code-and-magick/pull/2#discussion_r214571798","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/2","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/comments/214571798"},"html":{"href":"https://github.com/htmlacademy-javascript/125454-code-and-magick/pull/2#discussion_r214571798"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/2"}},"in_reply_to_id":214570677},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/2","id":212610535,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNjEwNTM1","html_url":"https://github.com/htmlacademy-javascript/125454-code-and-magick/pull/2","diff_url":"https://github.com/htmlacademy-javascript/125454-code-and-magick/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/125454-code-and-magick/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/issues/2","number":2,"state":"open","locked":false,"title":"Учебный проект «Холст»","user":{"login":"dmfedotov","id":23505268,"node_id":"MDQ6VXNlcjIzNTA1MjY4","avatar_url":"https://avatars3.githubusercontent.com/u/23505268?v=4","gravatar_id":"","url":"https://api.github.com/users/dmfedotov","html_url":"https://github.com/dmfedotov","followers_url":"https://api.github.com/users/dmfedotov/followers","following_url":"https://api.github.com/users/dmfedotov/following{/other_user}","gists_url":"https://api.github.com/users/dmfedotov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmfedotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmfedotov/subscriptions","organizations_url":"https://api.github.com/users/dmfedotov/orgs","repos_url":"https://api.github.com/users/dmfedotov/repos","events_url":"https://api.github.com/users/dmfedotov/events{/privacy}","received_events_url":"https://api.github.com/users/dmfedotov/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Учебный проект «Холст»](https://up.htmlacademy.ru/javascript/15/user/125454/tasks/10)\n\n:boom: https://htmlacademy-javascript.github.io/125454-code-and-magick/2/","created_at":"2018-09-02T20:37:36Z","updated_at":"2018-09-03T03:59:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"015c1541fc6ec53d0075ce6471efb7a4d9659026","assignee":{"login":"MarusyaFilippova","id":25072556,"node_id":"MDQ6VXNlcjI1MDcyNTU2","avatar_url":"https://avatars1.githubusercontent.com/u/25072556?v=4","gravatar_id":"","url":"https://api.github.com/users/MarusyaFilippova","html_url":"https://github.com/MarusyaFilippova","followers_url":"https://api.github.com/users/MarusyaFilippova/followers","following_url":"https://api.github.com/users/MarusyaFilippova/following{/other_user}","gists_url":"https://api.github.com/users/MarusyaFilippova/gists{/gist_id}","starred_url":"https://api.github.com/users/MarusyaFilippova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarusyaFilippova/subscriptions","organizations_url":"https://api.github.com/users/MarusyaFilippova/orgs","repos_url":"https://api.github.com/users/MarusyaFilippova/repos","events_url":"https://api.github.com/users/MarusyaFilippova/events{/privacy}","received_events_url":"https://api.github.com/users/MarusyaFilippova/received_events","type":"User","site_admin":false},"assignees":[{"login":"MarusyaFilippova","id":25072556,"node_id":"MDQ6VXNlcjI1MDcyNTU2","avatar_url":"https://avatars1.githubusercontent.com/u/25072556?v=4","gravatar_id":"","url":"https://api.github.com/users/MarusyaFilippova","html_url":"https://github.com/MarusyaFilippova","followers_url":"https://api.github.com/users/MarusyaFilippova/followers","following_url":"https://api.github.com/users/MarusyaFilippova/following{/other_user}","gists_url":"https://api.github.com/users/MarusyaFilippova/gists{/gist_id}","starred_url":"https://api.github.com/users/MarusyaFilippova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarusyaFilippova/subscriptions","organizations_url":"https://api.github.com/users/MarusyaFilippova/orgs","repos_url":"https://api.github.com/users/MarusyaFilippova/repos","events_url":"https://api.github.com/users/MarusyaFilippova/events{/privacy}","received_events_url":"https://api.github.com/users/MarusyaFilippova/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/statuses/242098f2169535f56fe2eba5d98ad754ce24bf6f","head":{"label":"dmfedotov:module2-task1","ref":"module2-task1","sha":"242098f2169535f56fe2eba5d98ad754ce24bf6f","user":{"login":"dmfedotov","id":23505268,"node_id":"MDQ6VXNlcjIzNTA1MjY4","avatar_url":"https://avatars3.githubusercontent.com/u/23505268?v=4","gravatar_id":"","url":"https://api.github.com/users/dmfedotov","html_url":"https://github.com/dmfedotov","followers_url":"https://api.github.com/users/dmfedotov/followers","following_url":"https://api.github.com/users/dmfedotov/following{/other_user}","gists_url":"https://api.github.com/users/dmfedotov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmfedotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmfedotov/subscriptions","organizations_url":"https://api.github.com/users/dmfedotov/orgs","repos_url":"https://api.github.com/users/dmfedotov/repos","events_url":"https://api.github.com/users/dmfedotov/events{/privacy}","received_events_url":"https://api.github.com/users/dmfedotov/received_events","type":"User","site_admin":false},"repo":{"id":146603282,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2MDMyODI=","name":"125454-code-and-magick","full_name":"dmfedotov/125454-code-and-magick","owner":{"login":"dmfedotov","id":23505268,"node_id":"MDQ6VXNlcjIzNTA1MjY4","avatar_url":"https://avatars3.githubusercontent.com/u/23505268?v=4","gravatar_id":"","url":"https://api.github.com/users/dmfedotov","html_url":"https://github.com/dmfedotov","followers_url":"https://api.github.com/users/dmfedotov/followers","following_url":"https://api.github.com/users/dmfedotov/following{/other_user}","gists_url":"https://api.github.com/users/dmfedotov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmfedotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmfedotov/subscriptions","organizations_url":"https://api.github.com/users/dmfedotov/orgs","repos_url":"https://api.github.com/users/dmfedotov/repos","events_url":"https://api.github.com/users/dmfedotov/events{/privacy}","received_events_url":"https://api.github.com/users/dmfedotov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmfedotov/125454-code-and-magick","description":"Дмитрий Федотов","fork":true,"url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick","forks_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/forks","keys_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/teams","hooks_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/events","assignees_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/tags","blobs_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/subscription","commits_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/merges","archive_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/downloads","issues_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/dmfedotov/125454-code-and-magick/deployments","created_at":"2018-08-29T13:23:09Z","updated_at":"2018-08-30T18:34:12Z","pushed_at":"2018-09-02T20:59:46Z","git_url":"git://github.com/dmfedotov/125454-code-and-magick.git","ssh_url":"git@github.com:dmfedotov/125454-code-and-magick.git","clone_url":"https://github.com/dmfedotov/125454-code-and-magick.git","svn_url":"https://github.com/dmfedotov/125454-code-and-magick","homepage":null,"size":1080,"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":"2b279d83052e57224f814b296bb2febb5af188a7","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":146602828,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2MDI4Mjg=","name":"125454-code-and-magick","full_name":"htmlacademy-javascript/125454-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/125454-code-and-magick","description":"Дмитрий Федотов","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/deployments","created_at":"2018-08-29T13:19:56Z","updated_at":"2018-08-30T18:30:11Z","pushed_at":"2018-09-03T03:42:26Z","git_url":"git://github.com/htmlacademy-javascript/125454-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/125454-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/125454-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/125454-code-and-magick","homepage":"https://github.com/dmfedotov/125454-code-and-magick","size":1079,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/125454-code-and-magick/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/125454-code-and-magick/statuses/242098f2169535f56fe2eba5d98ad754ce24bf6f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dmfedotov"}}