Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request ehzhang#13 from ScottyLabs/athena
Browse files Browse the repository at this point in the history
Mentor Toggle button
  • Loading branch information
richardg999 authored Feb 9, 2020
2 parents 7abb5ad + b245532 commit e40d462
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/components/login/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@
<label> Username </label>
<input type="text" id='username' placeholder="Username">
</div>
<div class="field">

<div class="field" id= "password-block">
<label> Password </label>
<input type="password" id='password' placeholder="Password">
</div>
<div class="field">
<button id="login-password" class="fluid primary push button"> Login </button>
</div>
<button id="mentor-toggle">Mentor Login</button>
</div>

{{#if enabled.github}}
<br>
<button id="login-github" class="fluid github push button"> Login with Github </button>
Expand Down
10 changes: 10 additions & 0 deletions client/components/login/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ Template.login.events({
'click #login-password': function(e, t){
loginPassword(t);
},
'click #mentor-toggle': function(){
var x = document.getElementById("password-block");
console.log(x)
if (x.style.display==="none"){
x.style.display = "block";
} else {
x.style.display = "none";
}
},

'keyup #password': function(e, t){
if (e.keyCode === 13){
loginPassword(t);
Expand Down

0 comments on commit e40d462

Please sign in to comment.