aboutsummaryrefslogtreecommitdiff
path: root/public/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/main.js')
-rw-r--r--public/js/main.js4
1 files changed, 2 insertions, 2 deletions
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){
26 // nettoyage 26 // nettoyage
27 element.parentNode.removeChild(element); 27 element.parentNode.removeChild(element);
28 28
29 alert('Cette adresse a été copiée dans le presse-papier:\n\n' + link); 29 toastNotify('Cette adresse a été copiée dans le presse-papier:<br>' + link);
30} 30}
31 31
32function toastNotify(message){ 32function toastNotify(message){
33 var toast = document.getElementById('toast'); 33 var toast = document.getElementById('toast');
34 toast.textContent = message; 34 toast.innerHTML = message;
35 toast.className = 'toast show'; 35 toast.className = 'toast show';
36 setTimeout(function(){ toast.className = toast.className.replace('show', ''); }, 5000); 36 setTimeout(function(){ toast.className = toast.className.replace('show', ''); }, 5000);
37} 37}