Fix js
This commit is contained in:
parent
77e8cfe3ea
commit
ee3d2810c0
@ -1,10 +1,4 @@
|
|||||||
let UserInfo = {};
|
let UserInfo = {};
|
||||||
const toggleButton = document.getElementById("toggle_button")
|
|
||||||
const navLinks = document.getElementById("navsite_list")
|
|
||||||
|
|
||||||
toggleButton.addEventListener('click', () => {
|
|
||||||
navLinks.classList.toggle("active")
|
|
||||||
})
|
|
||||||
async function handleResponse(data, successMessage, failureMessage) {
|
async function handleResponse(data, successMessage, failureMessage) {
|
||||||
const statusMessageContainer = document.getElementById("statusMessageContainer");
|
const statusMessageContainer = document.getElementById("statusMessageContainer");
|
||||||
|
|
||||||
@ -154,6 +148,12 @@ async function initAjax() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
const toggleButton = document.getElementById("toggle_button")
|
||||||
|
const navLinks = document.getElementById("navsite_list")
|
||||||
|
|
||||||
|
toggleButton.addEventListener('click', () => {
|
||||||
|
navLinks.classList.toggle("active")
|
||||||
|
})
|
||||||
await onPageLoad();
|
await onPageLoad();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user