Semi-stable version with old variable names

This commit is contained in:
Fabio Herzig
2026-07-16 18:43:30 +02:00
parent 3731183654
commit c8e7ce9174
165 changed files with 25654 additions and 9728 deletions
-30
View File
@@ -65,33 +65,3 @@ function deleteCookieBanner() {
$div.remove();
}, 400);
}
/* function hasSessionCookie(callback) {
$.ajax({
url: '/myjupa/api/check-php-session.php',
method: 'GET',
cache: false, // Ensure we don't get a cached result
success: function(response) {
callback(response.cookieExists);
},
error: function() {
callback(false);
}
});
}
// Usage in your click handler
$(document).on('click', 'a[href*="/myjupa/"]', function (el) {
el.preventDefault();
const target = $(this).attr("href");
hasSessionCookie(function(exists) {
if (exists) {
window.location.assign(target);
} else {
deleteCookieBanner();
displayCookieBanner(target);
}
});
}); */