mirror of
https://github.com/Gerald-Ha/HodlEye-Crypto-Price-Tracker.git
synced 2025-06-25 17:16:27 +00:00
- Adding Portfolio Page - Fixing Alarm Layout with Category - Automatically delete alarms that have expired
23 lines
535 B
JavaScript
23 lines
535 B
JavaScript
|
|
document.querySelectorAll('.modal').forEach(modal => {
|
|
modal.addEventListener('click', function(event) {
|
|
|
|
if (event.target === modal) {
|
|
modal.style.display = 'none';
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
function logout() {
|
|
fetch("/logout", {
|
|
method: "GET",
|
|
credentials: "same-origin"
|
|
}).then(response => {
|
|
if (response.redirected) {
|
|
window.location.href = response.url; // Leitet zur Login-Seite um
|
|
}
|
|
}).catch(error => console.error("Logout-Fehler:", error));
|
|
} |