diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/css/foot.css | 5 | ||||
| -rw-r--r-- | public/js/InputFile.js | 15 | ||||
| -rw-r--r-- | public/js/InputText.js | 4 | ||||
| -rw-r--r-- | public/user_data/assets/favicon48x48.png | bin | 3067 -> 0 bytes | |||
| -rw-r--r-- | public/user_data/assets/fond-piscine.jpg | bin | 24757 -> 0 bytes | |||
| -rw-r--r-- | public/user_data/assets/logo-120x75.jpg | bin | 12240 -> 0 bytes | |||
| -rw-r--r-- | public/user_data/assets/logo-150x94.jpg | bin | 13506 -> 0 bytes | |||
| -rw-r--r-- | public/user_data/assets/logo-nb-et-ffn.png | bin | 61236 -> 0 bytes | |||
| -rw-r--r-- | public/user_data/assets/logo2.jpg | bin | 36899 -> 0 bytes |
9 files changed, 20 insertions, 4 deletions
diff --git a/public/css/foot.css b/public/css/foot.css index 8a0d08d..38284e3 100644 --- a/public/css/foot.css +++ b/public/css/foot.css | |||
| @@ -9,6 +9,11 @@ footer | |||
| 9 | /*padding: 0 20px;*/ | 9 | /*padding: 0 20px;*/ |
| 10 | 10 | ||
| 11 | } | 11 | } |
| 12 | footer a | ||
| 13 | { | ||
| 14 | color: unset; /* ne plus hériter */ | ||
| 15 | text-decoration: none; | ||
| 16 | } | ||
| 12 | footer > div | 17 | footer > div |
| 13 | { | 18 | { |
| 14 | max-width: 1200px; | 19 | max-width: 1200px; |
diff --git a/public/js/InputFile.js b/public/js/InputFile.js index f5e450c..e676037 100644 --- a/public/js/InputFile.js +++ b/public/js/InputFile.js | |||
| @@ -35,7 +35,18 @@ class InputFile{ | |||
| 35 | .then(data => { | 35 | .then(data => { |
| 36 | if(data.success){ | 36 | if(data.success){ |
| 37 | this.parent.querySelector('#' + this.name + '_img').src = data.location; | 37 | this.parent.querySelector('#' + this.name + '_img').src = data.location; |
| 38 | this.close(this.name); | 38 | |
| 39 | // cas particulier | ||
| 40 | if(this.name === 'head_favicon'){ | ||
| 41 | const link = document.querySelector('link[rel="icon"]'); | ||
| 42 | link.type = data.mime_type; | ||
| 43 | link.href = data.location; | ||
| 44 | } | ||
| 45 | else if(this.name === 'header_background'){ | ||
| 46 | document.querySelector('header').style.backgroundImage = "url('" + data.location + "')"; | ||
| 47 | } | ||
| 48 | |||
| 49 | this.close(); | ||
| 39 | } | 50 | } |
| 40 | else{ | 51 | else{ |
| 41 | console.error("Erreur: le serveur n'a pas enregistré l'image'."); | 52 | console.error("Erreur: le serveur n'a pas enregistré l'image'."); |
| @@ -46,6 +57,6 @@ class InputFile{ | |||
| 46 | }); | 57 | }); |
| 47 | } | 58 | } |
| 48 | cancel(){ | 59 | cancel(){ |
| 49 | this.close(this.name); | 60 | this.close(); |
| 50 | } | 61 | } |
| 51 | } \ No newline at end of file | 62 | } \ No newline at end of file |
diff --git a/public/js/InputText.js b/public/js/InputText.js index 33dcf8d..79f0398 100644 --- a/public/js/InputText.js +++ b/public/js/InputText.js | |||
| @@ -31,7 +31,7 @@ class InputText{ | |||
| 31 | .then(data => { | 31 | .then(data => { |
| 32 | if(data.success){ | 32 | if(data.success){ |
| 33 | this.parent.querySelector('#' + this.name + '_span').innerHTML = new_text; | 33 | this.parent.querySelector('#' + this.name + '_span').innerHTML = new_text; |
| 34 | this.close(this.name); | 34 | this.close(); |
| 35 | } | 35 | } |
| 36 | else{ | 36 | else{ |
| 37 | console.error("Erreur: le serveur n'a pas enregistré le nouveau texte."); | 37 | console.error("Erreur: le serveur n'a pas enregistré le nouveau texte."); |
| @@ -43,6 +43,6 @@ class InputText{ | |||
| 43 | } | 43 | } |
| 44 | cancel(){ | 44 | cancel(){ |
| 45 | this.parent.querySelector('#' + this.name + '_input').value = this.parent.querySelector('#' + this.name + '_span').innerHTML; | 45 | this.parent.querySelector('#' + this.name + '_input').value = this.parent.querySelector('#' + this.name + '_span').innerHTML; |
| 46 | this.close(this.name); | 46 | this.close(); |
| 47 | } | 47 | } |
| 48 | } \ No newline at end of file | 48 | } \ No newline at end of file |
diff --git a/public/user_data/assets/favicon48x48.png b/public/user_data/assets/favicon48x48.png deleted file mode 100644 index 9825db1..0000000 --- a/public/user_data/assets/favicon48x48.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/public/user_data/assets/fond-piscine.jpg b/public/user_data/assets/fond-piscine.jpg deleted file mode 100644 index 239d95d..0000000 --- a/public/user_data/assets/fond-piscine.jpg +++ /dev/null | |||
| Binary files differ | |||
diff --git a/public/user_data/assets/logo-120x75.jpg b/public/user_data/assets/logo-120x75.jpg deleted file mode 100644 index b58a7a6..0000000 --- a/public/user_data/assets/logo-120x75.jpg +++ /dev/null | |||
| Binary files differ | |||
diff --git a/public/user_data/assets/logo-150x94.jpg b/public/user_data/assets/logo-150x94.jpg deleted file mode 100644 index 67ec6cc..0000000 --- a/public/user_data/assets/logo-150x94.jpg +++ /dev/null | |||
| Binary files differ | |||
diff --git a/public/user_data/assets/logo-nb-et-ffn.png b/public/user_data/assets/logo-nb-et-ffn.png deleted file mode 100644 index f51ac9c..0000000 --- a/public/user_data/assets/logo-nb-et-ffn.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/public/user_data/assets/logo2.jpg b/public/user_data/assets/logo2.jpg deleted file mode 100644 index 39c03bd..0000000 --- a/public/user_data/assets/logo2.jpg +++ /dev/null | |||
| Binary files differ | |||
