{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/comments/98353848","pull_request_review_id":18993767,"id":98353848,"diff_hunk":"@@ -0,0 +1,82 @@\n+'use strict';\n+\n+window.renderStatistics = function (ctx, names, times) {\n+\n+  function drawCloud(x, y, width, height) {\n+    var offset = 10;\n+\n+    ctx.beginPath();\n+    ctx.moveTo(x, y);\n+    ctx.lineTo(x + offset, y + height / 2);\n+    ctx.lineTo(x, y + height);\n+    ctx.lineTo(x + width / 2, y + height - offset);\n+    ctx.lineTo(x + width, y + height);\n+    ctx.lineTo(x + width - offset, y + height / 2);\n+    ctx.lineTo(x + width, y);\n+    ctx.lineTo(x + width / 2, y + offset);\n+    ctx.lineTo(x, y);\n+    ctx.stroke();\n+    ctx.closePath();\n+    ctx.fill();\n+  }\n+\n+  ctx.fillStyle = 'rgba(0, 0, 0, 0.7)';\n+  drawCloud(110, 20, 420, 270);\n+\n+  ctx.fillStyle = 'rgba(256, 256, 256, 1.0)';\n+  drawCloud(100, 10, 420, 270);\n+\n+  ctx.fillStyle = '#000';\n+  ctx.font = '16px PT Mono';\n+  ctx.fillText('Ура вы победили!', 220, 40);\n+  ctx.fillText('Список результатов:', 220, 60);\n+\n+  var max = 0;\n+\n+  times.forEach(function (time) {\n+    if (time > max) {\n+      max = time;\n+    }\n+  });\n+\n+  function drawHisto(text, x, y) {\n+\n+    ctx.fillStyle = '#000';\n+    ctx.fillText(text, x, y);\n+  }\n+\n+  function drawRect(histoX, columnIndent, histoHeight, height) {\n+    if (name === 'Вы') {\n+      ctx.fillStyle = 'rgba(255, 0, 0, 1.0)';","path":"js/stat.js","position":null,"original_position":50,"commit_id":"87395d77d746f6b7eec803f2a228981ca95622b3","original_commit_id":"763973dde9c61823d72a9f4a18275e134b157fa5","user":{"login":"andronuz","id":21239462,"avatar_url":"https://avatars.githubusercontent.com/u/21239462?v=3","gravatar_id":"","url":"https://api.github.com/users/andronuz","html_url":"https://github.com/andronuz","followers_url":"https://api.github.com/users/andronuz/followers","following_url":"https://api.github.com/users/andronuz/following{/other_user}","gists_url":"https://api.github.com/users/andronuz/gists{/gist_id}","starred_url":"https://api.github.com/users/andronuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andronuz/subscriptions","organizations_url":"https://api.github.com/users/andronuz/orgs","repos_url":"https://api.github.com/users/andronuz/repos","events_url":"https://api.github.com/users/andronuz/events{/privacy}","received_events_url":"https://api.github.com/users/andronuz/received_events","type":"User","site_admin":false},"body":"Ограничил функцию рисованием прямоугольников commit 87395d77d746f6b7eec803f2a228981ca95622b3","created_at":"2017-01-29T14:14:18Z","updated_at":"2017-01-29T14:14:18Z","html_url":"https://github.com/htmlacademy-javascript/40812-code-and-magick/pull/2#discussion_r98353848","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/comments/98353848"},"html":{"href":"https://github.com/htmlacademy-javascript/40812-code-and-magick/pull/2#discussion_r98353848"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/2","id":102624884,"html_url":"https://github.com/htmlacademy-javascript/40812-code-and-magick/pull/2","diff_url":"https://github.com/htmlacademy-javascript/40812-code-and-magick/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/40812-code-and-magick/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/issues/2","number":2,"state":"open","locked":false,"title":"Учебный проект: Холст","user":{"login":"andronuz","id":21239462,"avatar_url":"https://avatars.githubusercontent.com/u/21239462?v=3","gravatar_id":"","url":"https://api.github.com/users/andronuz","html_url":"https://github.com/andronuz","followers_url":"https://api.github.com/users/andronuz/followers","following_url":"https://api.github.com/users/andronuz/following{/other_user}","gists_url":"https://api.github.com/users/andronuz/gists{/gist_id}","starred_url":"https://api.github.com/users/andronuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andronuz/subscriptions","organizations_url":"https://api.github.com/users/andronuz/orgs","repos_url":"https://api.github.com/users/andronuz/repos","events_url":"https://api.github.com/users/andronuz/events{/privacy}","received_events_url":"https://api.github.com/users/andronuz/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Учебный проект: Холст](https://up.htmlacademy.ru/javascript/8/user/40812/tasks/8)\n\n:boom: https://htmlacademy-javascript.github.io/40812-code-and-magick/2/","created_at":"2017-01-22T15:41:59Z","updated_at":"2017-01-29T14:14:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d77e634dffe8a5d8fca725f59bca3a50b7f3696","assignee":{"login":"isqua","id":529247,"avatar_url":"https://avatars.githubusercontent.com/u/529247?v=3","gravatar_id":"","url":"https://api.github.com/users/isqua","html_url":"https://github.com/isqua","followers_url":"https://api.github.com/users/isqua/followers","following_url":"https://api.github.com/users/isqua/following{/other_user}","gists_url":"https://api.github.com/users/isqua/gists{/gist_id}","starred_url":"https://api.github.com/users/isqua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isqua/subscriptions","organizations_url":"https://api.github.com/users/isqua/orgs","repos_url":"https://api.github.com/users/isqua/repos","events_url":"https://api.github.com/users/isqua/events{/privacy}","received_events_url":"https://api.github.com/users/isqua/received_events","type":"User","site_admin":false},"assignees":[{"login":"isqua","id":529247,"avatar_url":"https://avatars.githubusercontent.com/u/529247?v=3","gravatar_id":"","url":"https://api.github.com/users/isqua","html_url":"https://github.com/isqua","followers_url":"https://api.github.com/users/isqua/followers","following_url":"https://api.github.com/users/isqua/following{/other_user}","gists_url":"https://api.github.com/users/isqua/gists{/gist_id}","starred_url":"https://api.github.com/users/isqua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isqua/subscriptions","organizations_url":"https://api.github.com/users/isqua/orgs","repos_url":"https://api.github.com/users/isqua/repos","events_url":"https://api.github.com/users/isqua/events{/privacy}","received_events_url":"https://api.github.com/users/isqua/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/statuses/87395d77d746f6b7eec803f2a228981ca95622b3","head":{"label":"andronuz:module2-task1","ref":"module2-task1","sha":"87395d77d746f6b7eec803f2a228981ca95622b3","user":{"login":"andronuz","id":21239462,"avatar_url":"https://avatars.githubusercontent.com/u/21239462?v=3","gravatar_id":"","url":"https://api.github.com/users/andronuz","html_url":"https://github.com/andronuz","followers_url":"https://api.github.com/users/andronuz/followers","following_url":"https://api.github.com/users/andronuz/following{/other_user}","gists_url":"https://api.github.com/users/andronuz/gists{/gist_id}","starred_url":"https://api.github.com/users/andronuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andronuz/subscriptions","organizations_url":"https://api.github.com/users/andronuz/orgs","repos_url":"https://api.github.com/users/andronuz/repos","events_url":"https://api.github.com/users/andronuz/events{/privacy}","received_events_url":"https://api.github.com/users/andronuz/received_events","type":"User","site_admin":false},"repo":{"id":79280019,"name":"40812-code-and-magick","full_name":"andronuz/40812-code-and-magick","owner":{"login":"andronuz","id":21239462,"avatar_url":"https://avatars.githubusercontent.com/u/21239462?v=3","gravatar_id":"","url":"https://api.github.com/users/andronuz","html_url":"https://github.com/andronuz","followers_url":"https://api.github.com/users/andronuz/followers","following_url":"https://api.github.com/users/andronuz/following{/other_user}","gists_url":"https://api.github.com/users/andronuz/gists{/gist_id}","starred_url":"https://api.github.com/users/andronuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andronuz/subscriptions","organizations_url":"https://api.github.com/users/andronuz/orgs","repos_url":"https://api.github.com/users/andronuz/repos","events_url":"https://api.github.com/users/andronuz/events{/privacy}","received_events_url":"https://api.github.com/users/andronuz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andronuz/40812-code-and-magick","description":"Андрей Козлов","fork":true,"url":"https://api.github.com/repos/andronuz/40812-code-and-magick","forks_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/forks","keys_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/teams","hooks_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/events","assignees_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/tags","blobs_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/subscription","commits_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/merges","archive_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/downloads","issues_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/andronuz/40812-code-and-magick/deployments","created_at":"2017-01-17T22:43:13Z","updated_at":"2017-01-17T22:43:15Z","pushed_at":"2017-01-29T14:10:13Z","git_url":"git://github.com/andronuz/40812-code-and-magick.git","ssh_url":"git@github.com:andronuz/40812-code-and-magick.git","clone_url":"https://github.com/andronuz/40812-code-and-magick.git","svn_url":"https://github.com/andronuz/40812-code-and-magick","homepage":null,"size":1086,"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":"8761fd5c2fc20804c99c9a0aeba64aa216f00fce","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":79279990,"name":"40812-code-and-magick","full_name":"htmlacademy-javascript/40812-code-and-magick","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/40812-code-and-magick","description":"Андрей Козлов","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/deployments","created_at":"2017-01-17T22:42:47Z","updated_at":"2017-01-19T14:38:04Z","pushed_at":"2017-01-29T14:10:15Z","git_url":"git://github.com/htmlacademy-javascript/40812-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/40812-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/40812-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/40812-code-and-magick","homepage":"https://github.com/andronuz/40812-code-and-magick","size":1080,"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/40812-code-and-magick/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/40812-code-and-magick/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/40812-code-and-magick/statuses/87395d77d746f6b7eec803f2a228981ca95622b3"}}}}
{"actor":{"display_login":"andronuz"}}