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/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/js') 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