Code fixes to make menus more unified

This commit is contained in:
Lucas Patenaude
2024-04-24 18:46:31 -06:00
parent e5ac576391
commit 77b33a0606
10 changed files with 37 additions and 18 deletions

View File

@@ -5,10 +5,10 @@ $(document).ready(function() {
$('#register-screen-container').hide();
// Toggle the visibility of the login container
$('#login-page').toggle();
$('#login-pane').toggle();
});
$('#register-page-login-button').click(function() {
$('#register-page-login-button').click(function (event) {
event.preventDefault(); // Prevent the default action of following the link
$('#register-screen-container').hide();
@@ -27,4 +27,15 @@ $(document).ready(function () {
// Show the register container
$('#register-screen-container').show();
});
});
$(document).ready(function() {
// When #user is clicked
$('#user-profile-button').click(function() {
// Toggle the visibility of the login container
$('#account-pane').toggle();
});
});