Skip to content

Commit

Permalink
Made login button autofocus, made cum GPA limited to two decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
kdk1616 committed Feb 15, 2020
1 parent 9ca39f8 commit 5a79cb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions public/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,14 +731,14 @@ document.getElementById("cumGPA").innerHTML = "<h3>Cumulative GPA:</h3>" + "<p>P

}
if(type == 1) {
return sumGPA/count;
return (sumGPA/count).toFixed(2);
}
if(type == 2) {
return sumOutOfFour/count;
return (sumOutOfFour/count).toFixed(2);

}
if(type == 3) {
return sumOutOfFive/count;
return (sumOutOfFive/count).toFixed(2);

}
}
Expand Down
2 changes: 1 addition & 1 deletion public/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</div>

<div class="container-login100-form-btn">
<button class="login100-form-btn" style="background:#3F8532">
<button class="login100-form-btn" style="background:#3F8532" autofocus>
Login
</button>

Expand Down

0 comments on commit 5a79cb1

Please sign in to comment.