{"action":"created","comment":{"url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/comments/87995678","pull_request_review_id":8581567,"id":87995678,"diff_hunk":"@@ -24,17 +55,58 @@ $(function () {\n                 name: $(\".modal input\").val()\n             },\n             function (data, status) {\n+\n                 if (status == \"success\") {\n                     token = data;\n                     loginDialog.hide();\n                     loginHandlers.forEach(handler => handler(token));\n+                    avatarWindow.show();\n+                    showVideoFromWebcamera();\n                 }\n             })\n             .fail(function () {\n                 $(\".modal input\").addClass(\"error\");\n             });\n     });\n \n+    $(\".modal-avatar .btn-ok\").click(function () {\n+        var base64ImageUrl = getImageUrlFromVideo();\n+\n+        $(\".my-img\")[0].src = base64ImageUrl; // print img (for testing now)","path":"src/js/login.js","position":65,"original_position":65,"commit_id":"d4f764bf25a83e09930a381bc6ddfd0d631fef62","original_commit_id":"d4f764bf25a83e09930a381bc6ddfd0d631fef62","user":{"login":"DiscoElevator","id":2759038,"avatar_url":"https://avatars.githubusercontent.com/u/2759038?v=3","gravatar_id":"","url":"https://api.github.com/users/DiscoElevator","html_url":"https://github.com/DiscoElevator","followers_url":"https://api.github.com/users/DiscoElevator/followers","following_url":"https://api.github.com/users/DiscoElevator/following{/other_user}","gists_url":"https://api.github.com/users/DiscoElevator/gists{/gist_id}","starred_url":"https://api.github.com/users/DiscoElevator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiscoElevator/subscriptions","organizations_url":"https://api.github.com/users/DiscoElevator/orgs","repos_url":"https://api.github.com/users/DiscoElevator/repos","events_url":"https://api.github.com/users/DiscoElevator/events{/privacy}","received_events_url":"https://api.github.com/users/DiscoElevator/received_events","type":"User","site_admin":false},"body":".get(0)","created_at":"2016-11-15T11:17:04Z","updated_at":"2016-11-15T11:24:58Z","html_url":"https://github.com/DiscoElevator/elevatorsaga/pull/3#discussion_r87995678","pull_request_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/comments/87995678"},"html":{"href":"https://github.com/DiscoElevator/elevatorsaga/pull/3#discussion_r87995678"},"pull_request":{"href":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/3","id":92928405,"html_url":"https://github.com/DiscoElevator/elevatorsaga/pull/3","diff_url":"https://github.com/DiscoElevator/elevatorsaga/pull/3.diff","patch_url":"https://github.com/DiscoElevator/elevatorsaga/pull/3.patch","issue_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues/3","number":3,"state":"open","locked":false,"title":"Avatar","user":{"login":"Kikamilka","id":7958264,"avatar_url":"https://avatars.githubusercontent.com/u/7958264?v=3","gravatar_id":"","url":"https://api.github.com/users/Kikamilka","html_url":"https://github.com/Kikamilka","followers_url":"https://api.github.com/users/Kikamilka/followers","following_url":"https://api.github.com/users/Kikamilka/following{/other_user}","gists_url":"https://api.github.com/users/Kikamilka/gists{/gist_id}","starred_url":"https://api.github.com/users/Kikamilka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kikamilka/subscriptions","organizations_url":"https://api.github.com/users/Kikamilka/orgs","repos_url":"https://api.github.com/users/Kikamilka/repos","events_url":"https://api.github.com/users/Kikamilka/events{/privacy}","received_events_url":"https://api.github.com/users/Kikamilka/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-09T09:25:13Z","updated_at":"2016-11-15T11:24:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6148a49bc2db79639798d9b597465b99afa9f73e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/3/commits","review_comments_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/3/comments","review_comment_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues/3/comments","statuses_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/statuses/d4f764bf25a83e09930a381bc6ddfd0d631fef62","head":{"label":"DiscoElevator:avatar","ref":"avatar","sha":"d4f764bf25a83e09930a381bc6ddfd0d631fef62","user":{"login":"DiscoElevator","id":2759038,"avatar_url":"https://avatars.githubusercontent.com/u/2759038?v=3","gravatar_id":"","url":"https://api.github.com/users/DiscoElevator","html_url":"https://github.com/DiscoElevator","followers_url":"https://api.github.com/users/DiscoElevator/followers","following_url":"https://api.github.com/users/DiscoElevator/following{/other_user}","gists_url":"https://api.github.com/users/DiscoElevator/gists{/gist_id}","starred_url":"https://api.github.com/users/DiscoElevator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiscoElevator/subscriptions","organizations_url":"https://api.github.com/users/DiscoElevator/orgs","repos_url":"https://api.github.com/users/DiscoElevator/repos","events_url":"https://api.github.com/users/DiscoElevator/events{/privacy}","received_events_url":"https://api.github.com/users/DiscoElevator/received_events","type":"User","site_admin":false},"repo":{"id":70056301,"name":"elevatorsaga","full_name":"DiscoElevator/elevatorsaga","owner":{"login":"DiscoElevator","id":2759038,"avatar_url":"https://avatars.githubusercontent.com/u/2759038?v=3","gravatar_id":"","url":"https://api.github.com/users/DiscoElevator","html_url":"https://github.com/DiscoElevator","followers_url":"https://api.github.com/users/DiscoElevator/followers","following_url":"https://api.github.com/users/DiscoElevator/following{/other_user}","gists_url":"https://api.github.com/users/DiscoElevator/gists{/gist_id}","starred_url":"https://api.github.com/users/DiscoElevator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiscoElevator/subscriptions","organizations_url":"https://api.github.com/users/DiscoElevator/orgs","repos_url":"https://api.github.com/users/DiscoElevator/repos","events_url":"https://api.github.com/users/DiscoElevator/events{/privacy}","received_events_url":"https://api.github.com/users/DiscoElevator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DiscoElevator/elevatorsaga","description":"The elevator programming game!","fork":true,"url":"https://api.github.com/repos/DiscoElevator/elevatorsaga","forks_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/forks","keys_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/teams","hooks_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/hooks","issue_events_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues/events{/number}","events_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/events","assignees_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/assignees{/user}","branches_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/branches{/branch}","tags_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/tags","blobs_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/refs{/sha}","trees_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/statuses/{sha}","languages_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/languages","stargazers_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/stargazers","contributors_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/contributors","subscribers_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/subscribers","subscription_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/subscription","commits_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/commits{/sha}","git_commits_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/commits{/sha}","comments_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/comments{/number}","issue_comment_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues/comments{/number}","contents_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/contents/{+path}","compare_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/merges","archive_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/downloads","issues_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues{/number}","pulls_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls{/number}","milestones_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/milestones{/number}","notifications_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/labels{/name}","releases_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/releases{/id}","deployments_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/deployments","created_at":"2016-10-05T12:01:35Z","updated_at":"2016-10-05T12:01:36Z","pushed_at":"2016-11-15T09:25:57Z","git_url":"git://github.com/DiscoElevator/elevatorsaga.git","ssh_url":"git@github.com:DiscoElevator/elevatorsaga.git","clone_url":"https://github.com/DiscoElevator/elevatorsaga.git","svn_url":"https://github.com/DiscoElevator/elevatorsaga","homepage":"http://play.elevatorsaga.com","size":1301,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"DiscoElevator:master","ref":"master","sha":"655a693fe479d10c7cbf64bd124c1a0cea27f1cf","user":{"login":"DiscoElevator","id":2759038,"avatar_url":"https://avatars.githubusercontent.com/u/2759038?v=3","gravatar_id":"","url":"https://api.github.com/users/DiscoElevator","html_url":"https://github.com/DiscoElevator","followers_url":"https://api.github.com/users/DiscoElevator/followers","following_url":"https://api.github.com/users/DiscoElevator/following{/other_user}","gists_url":"https://api.github.com/users/DiscoElevator/gists{/gist_id}","starred_url":"https://api.github.com/users/DiscoElevator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiscoElevator/subscriptions","organizations_url":"https://api.github.com/users/DiscoElevator/orgs","repos_url":"https://api.github.com/users/DiscoElevator/repos","events_url":"https://api.github.com/users/DiscoElevator/events{/privacy}","received_events_url":"https://api.github.com/users/DiscoElevator/received_events","type":"User","site_admin":false},"repo":{"id":70056301,"name":"elevatorsaga","full_name":"DiscoElevator/elevatorsaga","owner":{"login":"DiscoElevator","id":2759038,"avatar_url":"https://avatars.githubusercontent.com/u/2759038?v=3","gravatar_id":"","url":"https://api.github.com/users/DiscoElevator","html_url":"https://github.com/DiscoElevator","followers_url":"https://api.github.com/users/DiscoElevator/followers","following_url":"https://api.github.com/users/DiscoElevator/following{/other_user}","gists_url":"https://api.github.com/users/DiscoElevator/gists{/gist_id}","starred_url":"https://api.github.com/users/DiscoElevator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiscoElevator/subscriptions","organizations_url":"https://api.github.com/users/DiscoElevator/orgs","repos_url":"https://api.github.com/users/DiscoElevator/repos","events_url":"https://api.github.com/users/DiscoElevator/events{/privacy}","received_events_url":"https://api.github.com/users/DiscoElevator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DiscoElevator/elevatorsaga","description":"The elevator programming game!","fork":true,"url":"https://api.github.com/repos/DiscoElevator/elevatorsaga","forks_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/forks","keys_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/teams","hooks_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/hooks","issue_events_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues/events{/number}","events_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/events","assignees_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/assignees{/user}","branches_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/branches{/branch}","tags_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/tags","blobs_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/refs{/sha}","trees_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/statuses/{sha}","languages_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/languages","stargazers_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/stargazers","contributors_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/contributors","subscribers_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/subscribers","subscription_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/subscription","commits_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/commits{/sha}","git_commits_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/git/commits{/sha}","comments_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/comments{/number}","issue_comment_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues/comments{/number}","contents_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/contents/{+path}","compare_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/merges","archive_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/downloads","issues_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues{/number}","pulls_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls{/number}","milestones_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/milestones{/number}","notifications_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/labels{/name}","releases_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/releases{/id}","deployments_url":"https://api.github.com/repos/DiscoElevator/elevatorsaga/deployments","created_at":"2016-10-05T12:01:35Z","updated_at":"2016-10-05T12:01:36Z","pushed_at":"2016-11-15T09:25:57Z","git_url":"git://github.com/DiscoElevator/elevatorsaga.git","ssh_url":"git@github.com:DiscoElevator/elevatorsaga.git","clone_url":"https://github.com/DiscoElevator/elevatorsaga.git","svn_url":"https://github.com/DiscoElevator/elevatorsaga","homepage":"http://play.elevatorsaga.com","size":1301,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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/DiscoElevator/elevatorsaga/pulls/3"},"html":{"href":"https://github.com/DiscoElevator/elevatorsaga/pull/3"},"issue":{"href":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues/3"},"comments":{"href":"https://api.github.com/repos/DiscoElevator/elevatorsaga/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DiscoElevator/elevatorsaga/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/DiscoElevator/elevatorsaga/statuses/d4f764bf25a83e09930a381bc6ddfd0d631fef62"}}}}
{"actor":{"display_login":"DiscoElevator"}}