From fb517a6f791916bdd562aeb370fcd9ca31cfc92a Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 1 Nov 2025 21:11:31 +0100 Subject: =?UTF-8?q?contenu=20html=20affich=C3=A9=20avec=20toastNotify,=20c?= =?UTF-8?q?opyInClipBoard=20utilise=20toastNotify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/body.css | 4 ++++ public/css/modif_page.css | 1 - public/js/main.js | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/css/body.css b/public/css/body.css index 1f6ef7e..8d5850d 100644 --- a/public/css/body.css +++ b/public/css/body.css @@ -239,6 +239,10 @@ article a:hover } @media screen and (max-width: 500px) { + main + { + padding: 10px; + } .empty_column { display: none; diff --git a/public/css/modif_page.css b/public/css/modif_page.css index 4e38f1b..253f48e 100644 --- a/public/css/modif_page.css +++ b/public/css/modif_page.css @@ -3,7 +3,6 @@ { background-color: white; padding: 10px; - margin: 10px 15px; } .page_modification select, .page_modification input[type=submit] { diff --git a/public/js/main.js b/public/js/main.js index 1e47ebe..5bab6ed 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -26,12 +26,12 @@ function copyInClipBoard(link){ // nettoyage element.parentNode.removeChild(element); - alert('Cette adresse a été copiée dans le presse-papier:\n\n' + link); + toastNotify('Cette adresse a été copiée dans le presse-papier:
' + link); } function toastNotify(message){ var toast = document.getElementById('toast'); - toast.textContent = message; + toast.innerHTML = message; toast.className = 'toast show'; setTimeout(function(){ toast.className = toast.className.replace('show', ''); }, 5000); } -- cgit v1.2.3