{"action":"created","comment":{"url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/comments/46079949","id":46079949,"diff_hunk":"@@ -229,6 +244,98 @@\n   };\n \n   /**\n+   * Создание и позицианирование сообщения.\n+   */\n+  function createInfoMessage(tooltip) {\n+    var tooltipElem = document.createElement('div');\n+    tooltipElem.className = 'tooltip';\n+    tooltipElem.innerHTML = tooltip;\n+    document.body.appendChild(tooltipElem);\n+\n+    var coords = filterInputs.getBoundingClientRect();\n+\n+    var left = coords.left + (filterInputs.offsetWidth - tooltipElem.offsetWidth) / 2;\n+    if (left < 0) { // не вылезать за левую границу окна","path":"js/upload.js","position":40,"original_position":40,"commit_id":"9b6bbf90115be4e7a41e25c05f7bb996eb9b8142","original_commit_id":"9b6bbf90115be4e7a41e25c05f7bb996eb9b8142","user":{"login":"moonrtv","id":11834223,"avatar_url":"https://avatars.githubusercontent.com/u/11834223?v=3","gravatar_id":"","url":"https://api.github.com/users/moonrtv","html_url":"https://github.com/moonrtv","followers_url":"https://api.github.com/users/moonrtv/followers","following_url":"https://api.github.com/users/moonrtv/following{/other_user}","gists_url":"https://api.github.com/users/moonrtv/gists{/gist_id}","starred_url":"https://api.github.com/users/moonrtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moonrtv/subscriptions","organizations_url":"https://api.github.com/users/moonrtv/orgs","repos_url":"https://api.github.com/users/moonrtv/repos","events_url":"https://api.github.com/users/moonrtv/events{/privacy}","received_events_url":"https://api.github.com/users/moonrtv/received_events","type":"User","site_admin":false},"body":"Спасибо за ссылку) Какое изящное нахождение наибольшего числа в массиве^^\r\nfunction getMaxOfArray(numArray) {\r\n  return Math.max.apply(null, numArray);\r\n}","created_at":"2015-11-28T13:47:03Z","updated_at":"2015-11-28T13:47:03Z","html_url":"https://github.com/js-htmlacademy/11304-keksogram/pull/4#discussion_r46079949","pull_request_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/comments/46079949"},"html":{"href":"https://github.com/js-htmlacademy/11304-keksogram/pull/4#discussion_r46079949"},"pull_request":{"href":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/4","id":51732727,"html_url":"https://github.com/js-htmlacademy/11304-keksogram/pull/4","diff_url":"https://github.com/js-htmlacademy/11304-keksogram/pull/4.diff","patch_url":"https://github.com/js-htmlacademy/11304-keksogram/pull/4.patch","issue_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/issues/4","number":4,"state":"open","locked":false,"title":"Валидация","user":{"login":"moonrtv","id":11834223,"avatar_url":"https://avatars.githubusercontent.com/u/11834223?v=3","gravatar_id":"","url":"https://api.github.com/users/moonrtv","html_url":"https://github.com/moonrtv","followers_url":"https://api.github.com/users/moonrtv/followers","following_url":"https://api.github.com/users/moonrtv/following{/other_user}","gists_url":"https://api.github.com/users/moonrtv/gists{/gist_id}","starred_url":"https://api.github.com/users/moonrtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moonrtv/subscriptions","organizations_url":"https://api.github.com/users/moonrtv/orgs","repos_url":"https://api.github.com/users/moonrtv/repos","events_url":"https://api.github.com/users/moonrtv/events{/privacy}","received_events_url":"https://api.github.com/users/moonrtv/received_events","type":"User","site_admin":false},"body":"\n\n--\n:boom: https://js-htmlacademy.github.io/11304-keksogram/4/","created_at":"2015-11-24T23:27:55Z","updated_at":"2015-11-28T13:47:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05b09079dc60ad79c72c4ce76e29ae09231d039b","assignee":{"login":"ch-ms","id":1389471,"avatar_url":"https://avatars.githubusercontent.com/u/1389471?v=3","gravatar_id":"","url":"https://api.github.com/users/ch-ms","html_url":"https://github.com/ch-ms","followers_url":"https://api.github.com/users/ch-ms/followers","following_url":"https://api.github.com/users/ch-ms/following{/other_user}","gists_url":"https://api.github.com/users/ch-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/ch-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch-ms/subscriptions","organizations_url":"https://api.github.com/users/ch-ms/orgs","repos_url":"https://api.github.com/users/ch-ms/repos","events_url":"https://api.github.com/users/ch-ms/events{/privacy}","received_events_url":"https://api.github.com/users/ch-ms/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/4/commits","review_comments_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/4/comments","review_comment_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/issues/4/comments","statuses_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/statuses/9b6bbf90115be4e7a41e25c05f7bb996eb9b8142","head":{"label":"moonrtv:module3-task1","ref":"module3-task1","sha":"9b6bbf90115be4e7a41e25c05f7bb996eb9b8142","user":{"login":"moonrtv","id":11834223,"avatar_url":"https://avatars.githubusercontent.com/u/11834223?v=3","gravatar_id":"","url":"https://api.github.com/users/moonrtv","html_url":"https://github.com/moonrtv","followers_url":"https://api.github.com/users/moonrtv/followers","following_url":"https://api.github.com/users/moonrtv/following{/other_user}","gists_url":"https://api.github.com/users/moonrtv/gists{/gist_id}","starred_url":"https://api.github.com/users/moonrtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moonrtv/subscriptions","organizations_url":"https://api.github.com/users/moonrtv/orgs","repos_url":"https://api.github.com/users/moonrtv/repos","events_url":"https://api.github.com/users/moonrtv/events{/privacy}","received_events_url":"https://api.github.com/users/moonrtv/received_events","type":"User","site_admin":false},"repo":{"id":46016452,"name":"11304-keksogram","full_name":"moonrtv/11304-keksogram","owner":{"login":"moonrtv","id":11834223,"avatar_url":"https://avatars.githubusercontent.com/u/11834223?v=3","gravatar_id":"","url":"https://api.github.com/users/moonrtv","html_url":"https://github.com/moonrtv","followers_url":"https://api.github.com/users/moonrtv/followers","following_url":"https://api.github.com/users/moonrtv/following{/other_user}","gists_url":"https://api.github.com/users/moonrtv/gists{/gist_id}","starred_url":"https://api.github.com/users/moonrtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moonrtv/subscriptions","organizations_url":"https://api.github.com/users/moonrtv/orgs","repos_url":"https://api.github.com/users/moonrtv/repos","events_url":"https://api.github.com/users/moonrtv/events{/privacy}","received_events_url":"https://api.github.com/users/moonrtv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moonrtv/11304-keksogram","description":"Тарас Родионов","fork":true,"url":"https://api.github.com/repos/moonrtv/11304-keksogram","forks_url":"https://api.github.com/repos/moonrtv/11304-keksogram/forks","keys_url":"https://api.github.com/repos/moonrtv/11304-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moonrtv/11304-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moonrtv/11304-keksogram/teams","hooks_url":"https://api.github.com/repos/moonrtv/11304-keksogram/hooks","issue_events_url":"https://api.github.com/repos/moonrtv/11304-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/moonrtv/11304-keksogram/events","assignees_url":"https://api.github.com/repos/moonrtv/11304-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/moonrtv/11304-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/moonrtv/11304-keksogram/tags","blobs_url":"https://api.github.com/repos/moonrtv/11304-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moonrtv/11304-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moonrtv/11304-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/moonrtv/11304-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moonrtv/11304-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/moonrtv/11304-keksogram/languages","stargazers_url":"https://api.github.com/repos/moonrtv/11304-keksogram/stargazers","contributors_url":"https://api.github.com/repos/moonrtv/11304-keksogram/contributors","subscribers_url":"https://api.github.com/repos/moonrtv/11304-keksogram/subscribers","subscription_url":"https://api.github.com/repos/moonrtv/11304-keksogram/subscription","commits_url":"https://api.github.com/repos/moonrtv/11304-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/moonrtv/11304-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/moonrtv/11304-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/moonrtv/11304-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/moonrtv/11304-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/moonrtv/11304-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moonrtv/11304-keksogram/merges","archive_url":"https://api.github.com/repos/moonrtv/11304-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moonrtv/11304-keksogram/downloads","issues_url":"https://api.github.com/repos/moonrtv/11304-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/moonrtv/11304-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/moonrtv/11304-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/moonrtv/11304-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moonrtv/11304-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/moonrtv/11304-keksogram/releases{/id}","created_at":"2015-11-11T23:23:55Z","updated_at":"2015-11-11T23:23:56Z","pushed_at":"2015-11-26T23:23:27Z","git_url":"git://github.com/moonrtv/11304-keksogram.git","ssh_url":"git@github.com:moonrtv/11304-keksogram.git","clone_url":"https://github.com/moonrtv/11304-keksogram.git","svn_url":"https://github.com/moonrtv/11304-keksogram","homepage":null,"size":3772,"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":"js-htmlacademy:master","ref":"master","sha":"d4826f38fee3bb34af9a1078a48bc70216273597","user":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":46015225,"name":"11304-keksogram","full_name":"js-htmlacademy/11304-keksogram","owner":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/js-htmlacademy/11304-keksogram","description":"Тарас Родионов","fork":false,"url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram","forks_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/forks","keys_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/teams","hooks_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/hooks","issue_events_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/events","assignees_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/tags","blobs_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/languages","stargazers_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/stargazers","contributors_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/contributors","subscribers_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/subscribers","subscription_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/subscription","commits_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/merges","archive_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/downloads","issues_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/releases{/id}","created_at":"2015-11-11T22:58:36Z","updated_at":"2015-11-15T18:35:53Z","pushed_at":"2015-11-27T16:19:22Z","git_url":"git://github.com/js-htmlacademy/11304-keksogram.git","ssh_url":"git@github.com:js-htmlacademy/11304-keksogram.git","clone_url":"https://github.com/js-htmlacademy/11304-keksogram.git","svn_url":"https://github.com/js-htmlacademy/11304-keksogram","homepage":"https://github.com/moonrtv/11304-keksogram","size":3781,"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":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/4"},"html":{"href":"https://github.com/js-htmlacademy/11304-keksogram/pull/4"},"issue":{"href":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/issues/4"},"comments":{"href":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/js-htmlacademy/11304-keksogram/statuses/9b6bbf90115be4e7a41e25c05f7bb996eb9b8142"}}}}