{"action":"created","comment":{"url":"https://api.github.com/repos/TheNech/RollingSphere/pulls/comments/157346271","pull_request_review_id":83979175,"id":157346271,"diff_hunk":"@@ -15,52 +15,204 @@\n </head>\r\n <body>\r\n \t<div id=\"container\"></div>\r\n+\r\n \t<div id=\"overlay-start\">\r\n-\t\t<!-- <div id=\"start-screen\">\r\n-\t\t\t\r\n-\t\t\t<P>Press space to start...</P>\r\n-\t\t</div> -->\r\n-\t\t<p>Rolling Sphere</p>\t\t\t\r\n-\t\t<button type=\"button\" class=\"btn btn-success btn-lg\" data-toggle=\"modal\" data-target=\"#modalBox\">\r\n-\t\t\tAuthorization\r\n-\t\t</button>\r\n+\t\t<p>Rolling Sphere</p>\r\n+\t\t<form id=\"inputs\">\t\t\t\r\n+\t\t\t<input id=\"inputNickname\" class=\"form-control\" name=\"nickname\" placeholder=\"Your nickname\">\r\n+\t\t\t<input id=\"inputPassword\" class=\"form-control\" name=\"password\" placeholder=\"Your password\" type=\"password\">\r\n+\t\t\t<div id=\"validationAuth\"></div>\r\n+\t\t\t<div id=\"buttons\">\r\n+\t\t\t\t<button id=\"btnReg\" class=\"btn-link active\" type=\"button\">Registration</button>\r\n+\t\t\t\t<button id=\"btnEnter\" class=\"btn btn-primary\" type=\"button\">Login</button>\t\r\n+\t\t\t</div>\r\n+\t\t</form>\t\t\r\n \t</div>\r\n+\r\n+\t<script type=\"text/javascript\">\t\r\n+\r\n+\t\tvar bestScore, numberOfCoins, timeInGame;\r\n+\r\n+\t\t$(\"#btnEnter\").on('click', (function() {\r\n+\r\n+\t\t\tvar nick = $('#inputNickname').val(),\r\n+\t\t\t\tpass = $('#inputPassword').val();\r\n+\r\n+\t\t\tif (nick.length == 0 || pass.length == 0) {\r","path":"www/index.html","position":35,"original_position":35,"commit_id":"8a5ee3403c5aef86c657d81c45ab702974ad274d","original_commit_id":"8a5ee3403c5aef86c657d81c45ab702974ad274d","user":{"login":"d3m1d0v","id":26671342,"avatar_url":"https://avatars3.githubusercontent.com/u/26671342?v=4","gravatar_id":"","url":"https://api.github.com/users/d3m1d0v","html_url":"https://github.com/d3m1d0v","followers_url":"https://api.github.com/users/d3m1d0v/followers","following_url":"https://api.github.com/users/d3m1d0v/following{/other_user}","gists_url":"https://api.github.com/users/d3m1d0v/gists{/gist_id}","starred_url":"https://api.github.com/users/d3m1d0v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3m1d0v/subscriptions","organizations_url":"https://api.github.com/users/d3m1d0v/orgs","repos_url":"https://api.github.com/users/d3m1d0v/repos","events_url":"https://api.github.com/users/d3m1d0v/events{/privacy}","received_events_url":"https://api.github.com/users/d3m1d0v/received_events","type":"User","site_admin":false},"body":"Перед проверкой нужно убирать пробелы по краям строки (метод .trim() )\r\nТак же нужно проверять чтобы нигде не было пробелов и длины строк были не меньше определённого кол-ва (например в 3 и 6 символов соответственно)","created_at":"2017-12-16T17:06:06Z","updated_at":"2017-12-16T17:06:06Z","html_url":"https://github.com/TheNech/RollingSphere/pull/14#discussion_r157346271","pull_request_url":"https://api.github.com/repos/TheNech/RollingSphere/pulls/14","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/TheNech/RollingSphere/pulls/comments/157346271"},"html":{"href":"https://github.com/TheNech/RollingSphere/pull/14#discussion_r157346271"},"pull_request":{"href":"https://api.github.com/repos/TheNech/RollingSphere/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/TheNech/RollingSphere/pulls/14","id":157249939,"html_url":"https://github.com/TheNech/RollingSphere/pull/14","diff_url":"https://github.com/TheNech/RollingSphere/pull/14.diff","patch_url":"https://github.com/TheNech/RollingSphere/pull/14.patch","issue_url":"https://api.github.com/repos/TheNech/RollingSphere/issues/14","number":14,"state":"open","locked":false,"title":"Design","user":{"login":"vinarut","id":26749245,"avatar_url":"https://avatars1.githubusercontent.com/u/26749245?v=4","gravatar_id":"","url":"https://api.github.com/users/vinarut","html_url":"https://github.com/vinarut","followers_url":"https://api.github.com/users/vinarut/followers","following_url":"https://api.github.com/users/vinarut/following{/other_user}","gists_url":"https://api.github.com/users/vinarut/gists{/gist_id}","starred_url":"https://api.github.com/users/vinarut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinarut/subscriptions","organizations_url":"https://api.github.com/users/vinarut/orgs","repos_url":"https://api.github.com/users/vinarut/repos","events_url":"https://api.github.com/users/vinarut/events{/privacy}","received_events_url":"https://api.github.com/users/vinarut/received_events","type":"User","site_admin":false},"body":"1) Стартовый экран: модальное окно авторизации заменено форму, добавлена кнопка и модальное окно регистрации\r\n2) Главный экран: кнопка входа в игру (остальное позже)\r\n3) По завершении игры всплывает окно с результатами. ","created_at":"2017-12-08T14:04:54Z","updated_at":"2017-12-16T17:06:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15e75b719430f0f051252bf16b91d1aeed52c099","assignee":null,"assignees":[],"requested_reviewers":[{"login":"TheNech","id":24471472,"avatar_url":"https://avatars3.githubusercontent.com/u/24471472?v=4","gravatar_id":"","url":"https://api.github.com/users/TheNech","html_url":"https://github.com/TheNech","followers_url":"https://api.github.com/users/TheNech/followers","following_url":"https://api.github.com/users/TheNech/following{/other_user}","gists_url":"https://api.github.com/users/TheNech/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNech/subscriptions","organizations_url":"https://api.github.com/users/TheNech/orgs","repos_url":"https://api.github.com/users/TheNech/repos","events_url":"https://api.github.com/users/TheNech/events{/privacy}","received_events_url":"https://api.github.com/users/TheNech/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/TheNech/RollingSphere/pulls/14/commits","review_comments_url":"https://api.github.com/repos/TheNech/RollingSphere/pulls/14/comments","review_comment_url":"https://api.github.com/repos/TheNech/RollingSphere/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TheNech/RollingSphere/issues/14/comments","statuses_url":"https://api.github.com/repos/TheNech/RollingSphere/statuses/8a5ee3403c5aef86c657d81c45ab702974ad274d","head":{"label":"TheNech:design","ref":"design","sha":"8a5ee3403c5aef86c657d81c45ab702974ad274d","user":{"login":"TheNech","id":24471472,"avatar_url":"https://avatars3.githubusercontent.com/u/24471472?v=4","gravatar_id":"","url":"https://api.github.com/users/TheNech","html_url":"https://github.com/TheNech","followers_url":"https://api.github.com/users/TheNech/followers","following_url":"https://api.github.com/users/TheNech/following{/other_user}","gists_url":"https://api.github.com/users/TheNech/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNech/subscriptions","organizations_url":"https://api.github.com/users/TheNech/orgs","repos_url":"https://api.github.com/users/TheNech/repos","events_url":"https://api.github.com/users/TheNech/events{/privacy}","received_events_url":"https://api.github.com/users/TheNech/received_events","type":"User","site_admin":false},"repo":{"id":88084729,"name":"RollingSphere","full_name":"TheNech/RollingSphere","owner":{"login":"TheNech","id":24471472,"avatar_url":"https://avatars3.githubusercontent.com/u/24471472?v=4","gravatar_id":"","url":"https://api.github.com/users/TheNech","html_url":"https://github.com/TheNech","followers_url":"https://api.github.com/users/TheNech/followers","following_url":"https://api.github.com/users/TheNech/following{/other_user}","gists_url":"https://api.github.com/users/TheNech/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNech/subscriptions","organizations_url":"https://api.github.com/users/TheNech/orgs","repos_url":"https://api.github.com/users/TheNech/repos","events_url":"https://api.github.com/users/TheNech/events{/privacy}","received_events_url":"https://api.github.com/users/TheNech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheNech/RollingSphere","description":null,"fork":false,"url":"https://api.github.com/repos/TheNech/RollingSphere","forks_url":"https://api.github.com/repos/TheNech/RollingSphere/forks","keys_url":"https://api.github.com/repos/TheNech/RollingSphere/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheNech/RollingSphere/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheNech/RollingSphere/teams","hooks_url":"https://api.github.com/repos/TheNech/RollingSphere/hooks","issue_events_url":"https://api.github.com/repos/TheNech/RollingSphere/issues/events{/number}","events_url":"https://api.github.com/repos/TheNech/RollingSphere/events","assignees_url":"https://api.github.com/repos/TheNech/RollingSphere/assignees{/user}","branches_url":"https://api.github.com/repos/TheNech/RollingSphere/branches{/branch}","tags_url":"https://api.github.com/repos/TheNech/RollingSphere/tags","blobs_url":"https://api.github.com/repos/TheNech/RollingSphere/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheNech/RollingSphere/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheNech/RollingSphere/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheNech/RollingSphere/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheNech/RollingSphere/statuses/{sha}","languages_url":"https://api.github.com/repos/TheNech/RollingSphere/languages","stargazers_url":"https://api.github.com/repos/TheNech/RollingSphere/stargazers","contributors_url":"https://api.github.com/repos/TheNech/RollingSphere/contributors","subscribers_url":"https://api.github.com/repos/TheNech/RollingSphere/subscribers","subscription_url":"https://api.github.com/repos/TheNech/RollingSphere/subscription","commits_url":"https://api.github.com/repos/TheNech/RollingSphere/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheNech/RollingSphere/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheNech/RollingSphere/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheNech/RollingSphere/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheNech/RollingSphere/contents/{+path}","compare_url":"https://api.github.com/repos/TheNech/RollingSphere/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheNech/RollingSphere/merges","archive_url":"https://api.github.com/repos/TheNech/RollingSphere/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheNech/RollingSphere/downloads","issues_url":"https://api.github.com/repos/TheNech/RollingSphere/issues{/number}","pulls_url":"https://api.github.com/repos/TheNech/RollingSphere/pulls{/number}","milestones_url":"https://api.github.com/repos/TheNech/RollingSphere/milestones{/number}","notifications_url":"https://api.github.com/repos/TheNech/RollingSphere/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheNech/RollingSphere/labels{/name}","releases_url":"https://api.github.com/repos/TheNech/RollingSphere/releases{/id}","deployments_url":"https://api.github.com/repos/TheNech/RollingSphere/deployments","created_at":"2017-04-12T18:40:03Z","updated_at":"2017-11-30T08:40:07Z","pushed_at":"2017-12-16T15:25:18Z","git_url":"git://github.com/TheNech/RollingSphere.git","ssh_url":"git@github.com:TheNech/RollingSphere.git","clone_url":"https://github.com/TheNech/RollingSphere.git","svn_url":"https://github.com/TheNech/RollingSphere","homepage":null,"size":942,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"TheNech:master","ref":"master","sha":"c6e744119ac89e590c8437b593b91b6601130d17","user":{"login":"TheNech","id":24471472,"avatar_url":"https://avatars3.githubusercontent.com/u/24471472?v=4","gravatar_id":"","url":"https://api.github.com/users/TheNech","html_url":"https://github.com/TheNech","followers_url":"https://api.github.com/users/TheNech/followers","following_url":"https://api.github.com/users/TheNech/following{/other_user}","gists_url":"https://api.github.com/users/TheNech/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNech/subscriptions","organizations_url":"https://api.github.com/users/TheNech/orgs","repos_url":"https://api.github.com/users/TheNech/repos","events_url":"https://api.github.com/users/TheNech/events{/privacy}","received_events_url":"https://api.github.com/users/TheNech/received_events","type":"User","site_admin":false},"repo":{"id":88084729,"name":"RollingSphere","full_name":"TheNech/RollingSphere","owner":{"login":"TheNech","id":24471472,"avatar_url":"https://avatars3.githubusercontent.com/u/24471472?v=4","gravatar_id":"","url":"https://api.github.com/users/TheNech","html_url":"https://github.com/TheNech","followers_url":"https://api.github.com/users/TheNech/followers","following_url":"https://api.github.com/users/TheNech/following{/other_user}","gists_url":"https://api.github.com/users/TheNech/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNech/subscriptions","organizations_url":"https://api.github.com/users/TheNech/orgs","repos_url":"https://api.github.com/users/TheNech/repos","events_url":"https://api.github.com/users/TheNech/events{/privacy}","received_events_url":"https://api.github.com/users/TheNech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheNech/RollingSphere","description":null,"fork":false,"url":"https://api.github.com/repos/TheNech/RollingSphere","forks_url":"https://api.github.com/repos/TheNech/RollingSphere/forks","keys_url":"https://api.github.com/repos/TheNech/RollingSphere/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheNech/RollingSphere/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheNech/RollingSphere/teams","hooks_url":"https://api.github.com/repos/TheNech/RollingSphere/hooks","issue_events_url":"https://api.github.com/repos/TheNech/RollingSphere/issues/events{/number}","events_url":"https://api.github.com/repos/TheNech/RollingSphere/events","assignees_url":"https://api.github.com/repos/TheNech/RollingSphere/assignees{/user}","branches_url":"https://api.github.com/repos/TheNech/RollingSphere/branches{/branch}","tags_url":"https://api.github.com/repos/TheNech/RollingSphere/tags","blobs_url":"https://api.github.com/repos/TheNech/RollingSphere/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheNech/RollingSphere/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheNech/RollingSphere/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheNech/RollingSphere/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheNech/RollingSphere/statuses/{sha}","languages_url":"https://api.github.com/repos/TheNech/RollingSphere/languages","stargazers_url":"https://api.github.com/repos/TheNech/RollingSphere/stargazers","contributors_url":"https://api.github.com/repos/TheNech/RollingSphere/contributors","subscribers_url":"https://api.github.com/repos/TheNech/RollingSphere/subscribers","subscription_url":"https://api.github.com/repos/TheNech/RollingSphere/subscription","commits_url":"https://api.github.com/repos/TheNech/RollingSphere/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheNech/RollingSphere/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheNech/RollingSphere/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheNech/RollingSphere/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheNech/RollingSphere/contents/{+path}","compare_url":"https://api.github.com/repos/TheNech/RollingSphere/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheNech/RollingSphere/merges","archive_url":"https://api.github.com/repos/TheNech/RollingSphere/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheNech/RollingSphere/downloads","issues_url":"https://api.github.com/repos/TheNech/RollingSphere/issues{/number}","pulls_url":"https://api.github.com/repos/TheNech/RollingSphere/pulls{/number}","milestones_url":"https://api.github.com/repos/TheNech/RollingSphere/milestones{/number}","notifications_url":"https://api.github.com/repos/TheNech/RollingSphere/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheNech/RollingSphere/labels{/name}","releases_url":"https://api.github.com/repos/TheNech/RollingSphere/releases{/id}","deployments_url":"https://api.github.com/repos/TheNech/RollingSphere/deployments","created_at":"2017-04-12T18:40:03Z","updated_at":"2017-11-30T08:40:07Z","pushed_at":"2017-12-16T15:25:18Z","git_url":"git://github.com/TheNech/RollingSphere.git","ssh_url":"git@github.com:TheNech/RollingSphere.git","clone_url":"https://github.com/TheNech/RollingSphere.git","svn_url":"https://github.com/TheNech/RollingSphere","homepage":null,"size":942,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TheNech/RollingSphere/pulls/14"},"html":{"href":"https://github.com/TheNech/RollingSphere/pull/14"},"issue":{"href":"https://api.github.com/repos/TheNech/RollingSphere/issues/14"},"comments":{"href":"https://api.github.com/repos/TheNech/RollingSphere/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/TheNech/RollingSphere/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/TheNech/RollingSphere/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TheNech/RollingSphere/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/TheNech/RollingSphere/statuses/8a5ee3403c5aef86c657d81c45ab702974ad274d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"d3m1d0v"}}