update
This commit is contained in:
@@ -59,23 +59,10 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
}
|
||||
|
||||
// ==========================================
|
||||
// 3. LOGIN BUTTON
|
||||
// 3. LOGIN BUTTON (REMOVED)
|
||||
// ==========================================
|
||||
|
||||
const loginBtn = document.getElementById('loginBtn');
|
||||
if (loginBtn) {
|
||||
const currentPath = window.location.pathname;
|
||||
let loginPath = 'sites/login.html';
|
||||
|
||||
if (currentPath.includes('/sites/')) {
|
||||
loginPath = currentPath.includes('login.html') ? 'register.html' : 'login.html';
|
||||
}
|
||||
|
||||
loginBtn.onclick = (e) => {
|
||||
e.preventDefault();
|
||||
window.location.href = loginPath;
|
||||
};
|
||||
}
|
||||
// Login button functionality has been removed
|
||||
|
||||
// ==========================================
|
||||
// 4. FORM SUBMISSION
|
||||
|
||||
Reference in New Issue
Block a user