From 34c4d0d0c37c7f640a1a6373bba30ebe1129d6c4 Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 3 Jun 2026 21:42:46 +0200 Subject: =?UTF-8?q?t=C3=A9l=C3=A9chargement=20des=20fichiers=20media,=20un?= =?UTF-8?q?=20tout=20petit=20peu=20de=20responsive=20design?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/foot.css | 2 +- public/css/maintenance.css | 8 ++++++++ public/js/maintenance.js | 18 +++++++++++------- 3 files changed, 20 insertions(+), 8 deletions(-) (limited to 'public') diff --git a/public/css/foot.css b/public/css/foot.css index ed65666..8ffb6d7 100644 --- a/public/css/foot.css +++ b/public/css/foot.css @@ -177,7 +177,7 @@ footer .data > div position: fixed; z-index: 1; left: 50%; - bottom: 30px; + bottom: 40px; transform: translateX(-50%); /*opacity: 0;*/ transition: opacity 0.5s, visibility 0.5s; diff --git a/public/css/maintenance.css b/public/css/maintenance.css index 9b6f525..4a0dbb0 100644 --- a/public/css/maintenance.css +++ b/public/css/maintenance.css @@ -27,4 +27,12 @@ border-radius: 4px; background-color: white; border: lightgrey 2px outset; +} + +@media screen and (max-width: 480px) +{ + .maintenance select + { + font-size: 86%; + } } \ No newline at end of file diff --git a/public/js/maintenance.js b/public/js/maintenance.js index 078c223..a742cf6 100644 --- a/public/js/maintenance.js +++ b/public/js/maintenance.js @@ -42,19 +42,14 @@ function cleanLogs(){ fetcher.send({}); } -// notification après restauration +// notification de succès ou erreur après restauration document.addEventListener('DOMContentLoaded', function(){ + // 1/ message généré avant la redirection const params = new URLSearchParams(window.location.search); - // ça pourrait être bien de récupérer le message d'erreur de l'exception d'une autre manière (message dans la variable globale window? c'est faisable??) - - if(typeof window.error_message !== "undefined"){ - toastNotify(window.error_message); - } if(params.has('read_backups_dir')){ toastNotify("Une erreur s'est produite:
" + params.get('read_backups_dir')); } - if(params.has('database_restauration')){ if(params.get('database_restauration') === 'successful'){ toastNotify("La base de données a été restaurée avec succès !!"); @@ -63,4 +58,13 @@ document.addEventListener('DOMContentLoaded', function(){ toastNotify("Une erreur s'est produite:
" + params.get('database_restauration')); } } + if(params.has('get_all_media')){ + toastNotify(params.get('get_all_media')); + } + + + // 2/ message généré après la redirection, au moment de l'ouverture de la page + if(typeof window.error_message !== "undefined"){ + toastNotify(window.error_message); + } }); -- cgit v1.2.3