Additional code clean up and login page stylizations

This commit is contained in:
Lucas Patenaude
2024-04-10 02:16:31 -06:00
parent dc360425ba
commit 273d5c3d9d
5 changed files with 38 additions and 24 deletions

View File

@@ -1,12 +1,8 @@
// Function to render login.hbs when #user is clicked
function renderLogin() {
// Assuming you're using jQuery
$('#user').on('click', function() {
// Load the login.hbs template content using AJAX
res.render('/login');
});
}
// Call the function to enable rendering login.hbs
renderLogin();
$(document).ready(function() {
// When #user is clicked
$('#user').click(function() {
// Toggle the visibility of the login container
$('#login-container').toggle();
});
});