Login page added to user icon in nav bar

This commit is contained in:
Lucas Patenaude
2024-04-10 01:44:44 -06:00
parent ea555155c9
commit 28c98518b2
6 changed files with 54 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
// 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();