Add BS modals when confirmation needed

This commit is contained in:
William Bouzourène 2025-01-23 14:54:31 +01:00
parent e5b564539e
commit 59b1e32c29
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
7 changed files with 400 additions and 171 deletions

View file

@ -1,11 +1,3 @@
$(document).ready(function() {
$(".areyousure").on("click", function(e) {
if(!confirm("Êtes-vous sûr ?")) {
e.preventDefault();
}
});
});
$(document).ready(function() {
$(".toggle-dark-mode").on("click", function() {
var currentState = $("html").attr("data-bs-theme");