diff options
author | polo <ordipolo@gmx.fr> | 2023-04-23 23:39:10 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2023-04-23 23:39:10 +0200 |
commit | 21746f17dbd12499f794b1f2822b50e9e6c5d494 (patch) | |
tree | a8769620928d112bc5f4752b87886d5d2f2c90ea /public | |
parent | 6d4de815d7252956c4507b8767bd4b79b9a71fc8 (diff) | |
download | melaine-21746f17dbd12499f794b1f2822b50e9e6c5d494.zip |
bouton partager
Diffstat (limited to 'public')
-rw-r--r-- | public/css/discographie.css | 10 | ||||
-rw-r--r-- | public/css/main.css | 9 | ||||
-rw-r--r-- | public/css/pages_articles_simples.css | 6 | ||||
-rw-r--r-- | public/icone_modifier.png | bin | 8809 -> 8960 bytes | |||
-rw-r--r-- | public/icone_partager.png | bin | 0 -> 4778 bytes | |||
-rw-r--r-- | public/main.js | 13 |
6 files changed, 17 insertions, 21 deletions
diff --git a/public/css/discographie.css b/public/css/discographie.css index 2aae57e..7fb48df 100644 --- a/public/css/discographie.css +++ b/public/css/discographie.css | |||
@@ -120,12 +120,6 @@ input | |||
120 | padding-bottom: 20px; | 120 | padding-bottom: 20px; |
121 | border-bottom: 1px black solid; | 121 | border-bottom: 1px black solid; |
122 | } | 122 | } |
123 | /* mêmes règles que .boutonArticle dans main.css */ | ||
124 | .boutonAlbum span | ||
125 | { | ||
126 | padding: 2px; | ||
127 | border: 4px black groove; | ||
128 | } | ||
129 | 123 | ||
130 | #articles | 124 | #articles |
131 | { | 125 | { |
@@ -209,10 +203,10 @@ a:hover figure figcaption | |||
209 | { | 203 | { |
210 | width: 100%; | 204 | width: 100%; |
211 | } | 205 | } |
212 | .linkAlbumHTML | 206 | /*.linkAlbumHTML |
213 | { | 207 | { |
214 | color: blue; | 208 | color: blue; |
215 | } | 209 | }*/ |
216 | 210 | ||
217 | 211 | ||
218 | @media screen and (min-width: 700px) | 212 | @media screen and (min-width: 700px) |
diff --git a/public/css/main.css b/public/css/main.css index 77ab7ff..4017e31 100644 --- a/public/css/main.css +++ b/public/css/main.css | |||
@@ -87,11 +87,12 @@ img | |||
87 | vertical-align: bottom; | 87 | vertical-align: bottom; |
88 | } | 88 | } |
89 | 89 | ||
90 | .boutonArticle span | 90 | button a |
91 | { | 91 | { |
92 | padding: 2px; | 92 | color: black; |
93 | border: 4px black groove; | 93 | text-decoration: none; |
94 | } | 94 | } |
95 | |||
95 | .boutonSubmitEditeur | 96 | .boutonSubmitEditeur |
96 | { | 97 | { |
97 | margin-top: 5px; | 98 | margin-top: 5px; |
@@ -144,8 +145,6 @@ form | |||
144 | #courriel * | 145 | #courriel * |
145 | { | 146 | { |
146 | max-width: 220px; | 147 | max-width: 220px; |
147 | color: black; | ||
148 | text-decoration: none; | ||
149 | } | 148 | } |
150 | 149 | ||
151 | #courriel>button /* bouton pour remonter */ | 150 | #courriel>button /* bouton pour remonter */ |
diff --git a/public/css/pages_articles_simples.css b/public/css/pages_articles_simples.css index 2f3e901..ec8e665 100644 --- a/public/css/pages_articles_simples.css +++ b/public/css/pages_articles_simples.css | |||
@@ -29,11 +29,7 @@ figure | |||
29 | /* comme "article" dans main.css */ | 29 | /* comme "article" dans main.css */ |
30 | font-size: 90%; | 30 | font-size: 90%; |
31 | } | 31 | } |
32 | .boutonArticle span | 32 | |
33 | { | ||
34 | position: relative; | ||
35 | bottom: 6px; | ||
36 | } | ||
37 | @media screen and (min-width: 700px) | 33 | @media screen and (min-width: 700px) |
38 | { | 34 | { |
39 | #titre | 35 | #titre |
diff --git a/public/icone_modifier.png b/public/icone_modifier.png index 3691389..aa5304c 100644 --- a/public/icone_modifier.png +++ b/public/icone_modifier.png | |||
Binary files differ | |||
diff --git a/public/icone_partager.png b/public/icone_partager.png new file mode 100644 index 0000000..ab3b829 --- /dev/null +++ b/public/icone_partager.png | |||
Binary files differ | |||
diff --git a/public/main.js b/public/main.js index ede1a30..4080832 100644 --- a/public/main.js +++ b/public/main.js | |||
@@ -40,15 +40,20 @@ function clientCourriel() | |||
40 | document.location.href = link; | 40 | document.location.href = link; |
41 | } | 41 | } |
42 | 42 | ||
43 | // bouton pour "copier" dans le presse-papier | 43 | // pour "cacher" l'adresse du HTML |
44 | function copierAdresse() | 44 | // inutile -> nécessite une requête AJAX |
45 | function copierCourriel() | ||
45 | { | 46 | { |
46 | var adresse = "melaine.favennec@wanadoo.fr"; | 47 | var adresse = "melaine.favennec@wanadoo.fr"; |
48 | copierDansPressePapier(adresse); | ||
49 | } | ||
47 | 50 | ||
51 | function copierDansPressePapier(chaine) | ||
52 | { | ||
48 | // une balise <input> avec des attributs | 53 | // une balise <input> avec des attributs |
49 | var element = document.createElement("input"); | 54 | var element = document.createElement("input"); |
50 | element.setAttribute("id", "copyMe"); | 55 | element.setAttribute("id", "copyMe"); |
51 | element.setAttribute("value", adresse); | 56 | element.setAttribute("value", chaine); |
52 | 57 | ||
53 | // placement dans la page (= le "document") | 58 | // placement dans la page (= le "document") |
54 | document.body.appendChild(element); | 59 | document.body.appendChild(element); |
@@ -65,6 +70,8 @@ function copierAdresse() | |||
65 | // test optionnel | 70 | // test optionnel |
66 | // essayer un document.execCommand("paste"); dans une variable | 71 | // essayer un document.execCommand("paste"); dans une variable |
67 | // mais depuis une deuxième fonction | 72 | // mais depuis une deuxième fonction |
73 | |||
74 | alert('Cette adresse a été copiée dans le presse-papier:\n\n' + chaine); | ||
68 | } | 75 | } |
69 | 76 | ||
70 | // cacher le lien #nouvelArticle quand le ckeditor est appelé | 77 | // cacher le lien #nouvelArticle quand le ckeditor est appelé |