+\r
+/* GitHub login box management */\r
+\r
+function createLoginBox() {\r
+ $("nav.main ul").append(\r
+ "<li id='liGitHub'>" +\r
+ " <a class='btn' id='logGitHub'>" +\r
+ " <img id='imgGitHub' src='resources/icons/github-icon.png' alt='GitHub'/>" +\r
+ " </a>" +\r
+ " <div class='popover bottom' style='display: none;'>" +\r
+ " <div class='arrow'> </div>" +\r
+ " <div class='githubTitle'>" +\r
+ " <h3>Github Sign In</h3>" +\r
+ " </div>" +\r
+ " <div>" +\r
+ " <label id='lbloginGit'>Username</label>" +\r
+ " <input id='loginGit' name='login' type='text'/>" +\r
+ " <label id='logginMessage'>Hello " +\r
+ " <a id='githubAccount'><strong id='nickName'></strong></a>" +\r
+ " </label>" +\r
+ " </div>" +\r
+ " <div>" +\r
+ " <label id='lbpasswordGit'>Password</label>" +\r
+ " <input id='passwordGit' name='password' type='password'/>" +\r
+ " <div id='listBranches'>" +\r
+ " <label id='lbBranches'>Branch</label>" +\r
+ " <select class='dropdown' id='dropBranches' name='dropBranches' tabindex='1'></select>" +\r
+ " </div>" +\r
+ " </div>" +\r
+ " <div>" +\r
+ " <label id='lbrepositoryGit'>Repository</label>" +\r
+ " <input id='repositoryGit' name='repository' type='text'/>" +\r
+ " </div>" +\r
+ " <div>" +\r
+ " <label id='lbbranchGit'>Branch</label>" +\r
+ " <input id='branchGit' name='branch' type='text'/>" +\r
+ " </div>" +\r
+ " <div>" +\r
+ " <a id='signIn'>Sign In</a>" +\r
+ " </div>" +\r
+ " </div>" +\r
+ " </div>" +\r
+ "</li>"\r
+ );\r
+}\r
+\r
+function toggleLoginBox(){\r
+ if ($('.popover').is(':hidden')) {\r
+ if(sessionStarted){ getListBranches(); }\r
+ $('.popover').show();\r
+ } else {\r
+ $('.popover').hide();\r
+ }\r
+ updateDisplaying();\r
+}\r