{"action":"created","comment":{"url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/comments/56763787","id":56763787,"diff_hunk":"@@ -0,0 +1,36 @@\n+$(\"#enter\").click(function() {\n+  input = $(\"#inpt\").val().split(',');\n+\n+  if(isEmpty(input))\n+    return;\n+  showArrNums(input);\n+\n+  $(\"#enter\").hide();\n+  $(\"#cancel\").show();\n+  $(\"#next\").show();\n+\n+  $(\"#inpt\").attr(\"disabled\", true).attr('unselectable', 'on');\n+});\n+\n+function isEmpty (arr) {\n+  if (arr[0] === \"\") {\n+    $(\"#inpt\").css(\"box-sizing\", \"border-box\")\n+              .css(\"border\", \"2px dashed rgb(255, 0, 0)\");\n+    return true;\n+  }\n+  return false;\n+}\n+function showArrNums(arr) {\n+  for (var i = 0; i < arr.length; i++)\n+    $(\"<div id='num\" + i + \"'>\").appendTo('#animation')\n+                                .attr(\"class\", \"num\")\n+                                .text(arr[i])\n+                                .css(\"width\",checkWidth(arr[i]));\n+}\n+function checkWidth(el) {\n+  el+=\"\";\n+  var rank = el.length;\n+  if(rank>2)\n+   return (rank/2*64)+\"px\"\n+  return \"64px\";\n+}","path":"js/buttons/enter.js","position":36,"original_position":36,"commit_id":"fa6b92c643d7bf6634b41ab5caaa14348c2c9d1b","original_commit_id":"fa6b92c643d7bf6634b41ab5caaa14348c2c9d1b","user":{"login":"Nebelwerfergranate","id":13796514,"avatar_url":"https://avatars.githubusercontent.com/u/13796514?v=3","gravatar_id":"","url":"https://api.github.com/users/Nebelwerfergranate","html_url":"https://github.com/Nebelwerfergranate","followers_url":"https://api.github.com/users/Nebelwerfergranate/followers","following_url":"https://api.github.com/users/Nebelwerfergranate/following{/other_user}","gists_url":"https://api.github.com/users/Nebelwerfergranate/gists{/gist_id}","starred_url":"https://api.github.com/users/Nebelwerfergranate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nebelwerfergranate/subscriptions","organizations_url":"https://api.github.com/users/Nebelwerfergranate/orgs","repos_url":"https://api.github.com/users/Nebelwerfergranate/repos","events_url":"https://api.github.com/users/Nebelwerfergranate/events{/privacy}","received_events_url":"https://api.github.com/users/Nebelwerfergranate/received_events","type":"User","site_admin":false},"body":"Пустые строки между объявлениями функций были бы не лишними.","created_at":"2016-03-20T12:44:41Z","updated_at":"2016-03-20T12:44:41Z","html_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort/pull/2#discussion_r56763787","pull_request_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/comments/56763787"},"html":{"href":"https://github.com/chocky335/JSPro_task-1_bubbleSort/pull/2#discussion_r56763787"},"pull_request":{"href":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/2","id":63234089,"html_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort/pull/2","diff_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort/pull/2.diff","patch_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort/pull/2.patch","issue_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues/2","number":2,"state":"open","locked":false,"title":"1","user":{"login":"chocky335","id":17751725,"avatar_url":"https://avatars.githubusercontent.com/u/17751725?v=3","gravatar_id":"","url":"https://api.github.com/users/chocky335","html_url":"https://github.com/chocky335","followers_url":"https://api.github.com/users/chocky335/followers","following_url":"https://api.github.com/users/chocky335/following{/other_user}","gists_url":"https://api.github.com/users/chocky335/gists{/gist_id}","starred_url":"https://api.github.com/users/chocky335/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocky335/subscriptions","organizations_url":"https://api.github.com/users/chocky335/orgs","repos_url":"https://api.github.com/users/chocky335/repos","events_url":"https://api.github.com/users/chocky335/events{/privacy}","received_events_url":"https://api.github.com/users/chocky335/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-17T14:46:26Z","updated_at":"2016-03-20T12:44:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"456ba49ef9b94cd64f7786b947f202f9c9f9d1f1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/2/commits","review_comments_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/2/comments","review_comment_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues/2/comments","statuses_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/statuses/fa6b92c643d7bf6634b41ab5caaa14348c2c9d1b","head":{"label":"chocky335:features","ref":"features","sha":"fa6b92c643d7bf6634b41ab5caaa14348c2c9d1b","user":{"login":"chocky335","id":17751725,"avatar_url":"https://avatars.githubusercontent.com/u/17751725?v=3","gravatar_id":"","url":"https://api.github.com/users/chocky335","html_url":"https://github.com/chocky335","followers_url":"https://api.github.com/users/chocky335/followers","following_url":"https://api.github.com/users/chocky335/following{/other_user}","gists_url":"https://api.github.com/users/chocky335/gists{/gist_id}","starred_url":"https://api.github.com/users/chocky335/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocky335/subscriptions","organizations_url":"https://api.github.com/users/chocky335/orgs","repos_url":"https://api.github.com/users/chocky335/repos","events_url":"https://api.github.com/users/chocky335/events{/privacy}","received_events_url":"https://api.github.com/users/chocky335/received_events","type":"User","site_admin":false},"repo":{"id":53814963,"name":"JSPro_task-1_bubbleSort","full_name":"chocky335/JSPro_task-1_bubbleSort","owner":{"login":"chocky335","id":17751725,"avatar_url":"https://avatars.githubusercontent.com/u/17751725?v=3","gravatar_id":"","url":"https://api.github.com/users/chocky335","html_url":"https://github.com/chocky335","followers_url":"https://api.github.com/users/chocky335/followers","following_url":"https://api.github.com/users/chocky335/following{/other_user}","gists_url":"https://api.github.com/users/chocky335/gists{/gist_id}","starred_url":"https://api.github.com/users/chocky335/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocky335/subscriptions","organizations_url":"https://api.github.com/users/chocky335/orgs","repos_url":"https://api.github.com/users/chocky335/repos","events_url":"https://api.github.com/users/chocky335/events{/privacy}","received_events_url":"https://api.github.com/users/chocky335/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort","description":"","fork":false,"url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort","forks_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/forks","keys_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/teams","hooks_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/hooks","issue_events_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues/events{/number}","events_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/events","assignees_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/assignees{/user}","branches_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/branches{/branch}","tags_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/tags","blobs_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/refs{/sha}","trees_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/statuses/{sha}","languages_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/languages","stargazers_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/stargazers","contributors_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/contributors","subscribers_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/subscribers","subscription_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/subscription","commits_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/commits{/sha}","git_commits_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/commits{/sha}","comments_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/comments{/number}","issue_comment_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues/comments{/number}","contents_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/contents/{+path}","compare_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/merges","archive_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/downloads","issues_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues{/number}","pulls_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls{/number}","milestones_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/milestones{/number}","notifications_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/labels{/name}","releases_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/releases{/id}","deployments_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/deployments","created_at":"2016-03-14T00:16:31Z","updated_at":"2016-03-14T00:16:31Z","pushed_at":"2016-03-17T14:46:26Z","git_url":"git://github.com/chocky335/JSPro_task-1_bubbleSort.git","ssh_url":"git@github.com:chocky335/JSPro_task-1_bubbleSort.git","clone_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort.git","svn_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort","homepage":null,"size":75,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"chocky335:master","ref":"master","sha":"83620ab8a1fb0f91d90df5990759e0c95b749b6d","user":{"login":"chocky335","id":17751725,"avatar_url":"https://avatars.githubusercontent.com/u/17751725?v=3","gravatar_id":"","url":"https://api.github.com/users/chocky335","html_url":"https://github.com/chocky335","followers_url":"https://api.github.com/users/chocky335/followers","following_url":"https://api.github.com/users/chocky335/following{/other_user}","gists_url":"https://api.github.com/users/chocky335/gists{/gist_id}","starred_url":"https://api.github.com/users/chocky335/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocky335/subscriptions","organizations_url":"https://api.github.com/users/chocky335/orgs","repos_url":"https://api.github.com/users/chocky335/repos","events_url":"https://api.github.com/users/chocky335/events{/privacy}","received_events_url":"https://api.github.com/users/chocky335/received_events","type":"User","site_admin":false},"repo":{"id":53814963,"name":"JSPro_task-1_bubbleSort","full_name":"chocky335/JSPro_task-1_bubbleSort","owner":{"login":"chocky335","id":17751725,"avatar_url":"https://avatars.githubusercontent.com/u/17751725?v=3","gravatar_id":"","url":"https://api.github.com/users/chocky335","html_url":"https://github.com/chocky335","followers_url":"https://api.github.com/users/chocky335/followers","following_url":"https://api.github.com/users/chocky335/following{/other_user}","gists_url":"https://api.github.com/users/chocky335/gists{/gist_id}","starred_url":"https://api.github.com/users/chocky335/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocky335/subscriptions","organizations_url":"https://api.github.com/users/chocky335/orgs","repos_url":"https://api.github.com/users/chocky335/repos","events_url":"https://api.github.com/users/chocky335/events{/privacy}","received_events_url":"https://api.github.com/users/chocky335/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort","description":"","fork":false,"url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort","forks_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/forks","keys_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/teams","hooks_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/hooks","issue_events_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues/events{/number}","events_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/events","assignees_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/assignees{/user}","branches_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/branches{/branch}","tags_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/tags","blobs_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/refs{/sha}","trees_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/statuses/{sha}","languages_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/languages","stargazers_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/stargazers","contributors_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/contributors","subscribers_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/subscribers","subscription_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/subscription","commits_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/commits{/sha}","git_commits_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/git/commits{/sha}","comments_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/comments{/number}","issue_comment_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues/comments{/number}","contents_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/contents/{+path}","compare_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/merges","archive_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/downloads","issues_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues{/number}","pulls_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls{/number}","milestones_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/milestones{/number}","notifications_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/labels{/name}","releases_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/releases{/id}","deployments_url":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/deployments","created_at":"2016-03-14T00:16:31Z","updated_at":"2016-03-14T00:16:31Z","pushed_at":"2016-03-17T14:46:26Z","git_url":"git://github.com/chocky335/JSPro_task-1_bubbleSort.git","ssh_url":"git@github.com:chocky335/JSPro_task-1_bubbleSort.git","clone_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort.git","svn_url":"https://github.com/chocky335/JSPro_task-1_bubbleSort","homepage":null,"size":75,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/2"},"html":{"href":"https://github.com/chocky335/JSPro_task-1_bubbleSort/pull/2"},"issue":{"href":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues/2"},"comments":{"href":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/chocky335/JSPro_task-1_bubbleSort/statuses/fa6b92c643d7bf6634b41ab5caaa14348c2c9d1b"}}}}