diff options
| author | polo <ordipolo@gmx.fr> | 2025-11-01 21:11:31 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-11-01 21:11:31 +0100 |
| commit | fb517a6f791916bdd562aeb370fcd9ca31cfc92a (patch) | |
| tree | f5193a840e09a7a9a3cafd88212af61f5dc09dc9 | |
| parent | 765ee73627e20ffe1f86e4fa91848e96aa10badf (diff) | |
| download | cms-fb517a6f791916bdd562aeb370fcd9ca31cfc92a.tar.gz cms-fb517a6f791916bdd562aeb370fcd9ca31cfc92a.tar.bz2 cms-fb517a6f791916bdd562aeb370fcd9ca31cfc92a.zip | |
contenu html affiché avec toastNotify, copyInClipBoard utilise toastNotify
| -rw-r--r-- | public/css/body.css | 4 | ||||
| -rw-r--r-- | public/css/modif_page.css | 1 | ||||
| -rw-r--r-- | 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 | |||
| 239 | } | 239 | } |
| 240 | @media screen and (max-width: 500px) | 240 | @media screen and (max-width: 500px) |
| 241 | { | 241 | { |
| 242 | main | ||
| 243 | { | ||
| 244 | padding: 10px; | ||
| 245 | } | ||
| 242 | .empty_column | 246 | .empty_column |
| 243 | { | 247 | { |
| 244 | display: none; | 248 | 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 @@ | |||
| 3 | { | 3 | { |
| 4 | background-color: white; | 4 | background-color: white; |
| 5 | padding: 10px; | 5 | padding: 10px; |
| 6 | margin: 10px 15px; | ||
| 7 | } | 6 | } |
| 8 | .page_modification select, .page_modification input[type=submit] | 7 | .page_modification select, .page_modification input[type=submit] |
| 9 | { | 8 | { |
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 | ||
| 32 | function toastNotify(message){ | 32 | function 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 | } |
