forked from lucaspatenaude/ScoreSpot
Additional code clean up and login page stylizations
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user