Fixes to login container linking

This commit is contained in:
Lucas Patenaude
2024-04-24 03:44:48 -06:00
parent 93de273a36
commit 9e7d4de169
11 changed files with 36 additions and 43 deletions

View File

@@ -1,19 +1,18 @@
$(document).ready(function() {
// When #user is clicked
$('#user').click(function() {
$('#user-profile-button').click(function() {
$('#register-container').hide();
$('#register-screen-container').hide();
// Toggle the visibility of the login container
$('#login-container').toggle();
$('#login-page').toggle();
});
$('#register-page-login-button').click(function() {
event.preventDefault(); // Prevent the default action of following the link
$('#register-container').hide();
$('#login-container').toggle();
$('#register-screen-container').hide();
$('#login-screen-container').show();
});
});