Files
ScoreSpot/public/assets/js/navigation-bar/user/login-and-register-page-linking.js

41 lines
1008 B
JavaScript
Raw Normal View History

$(document).ready(function() {
2024-04-11 01:30:00 -06:00
// When #user is clicked
2024-04-24 03:44:48 -06:00
$('#user-profile-button').click(function() {
2024-04-24 03:44:48 -06:00
$('#register-screen-container').hide();
// Toggle the visibility of the login container
2024-04-24 18:46:31 -06:00
$('#login-pane').toggle();
});
2024-04-24 01:11:21 -06:00
2024-04-24 18:46:31 -06:00
$('#register-page-login-button').click(function (event) {
2024-04-24 01:11:21 -06:00
event.preventDefault(); // Prevent the default action of following the link
2024-04-24 03:44:48 -06:00
$('#register-screen-container').hide();
$('#login-pane').show();
2024-04-24 01:11:21 -06:00
});
2024-04-24 03:44:48 -06:00
2024-04-11 01:30:00 -06:00
});
$(document).ready(function () {
// Listen for click event on the register button
$('#register-button').click(function (event) {
event.preventDefault(); // Prevent the default action of following the link
$('#login-pane').hide();
// Show the register container
$('#register-screen-container').show();
});
2024-04-24 18:46:31 -06:00
});
$(document).ready(function() {
// When #user is clicked
$('#user-profile-button').click(function() {
// Toggle the visibility of the login container
$('#account-pane').toggle();
});
});