From c7aaa923af4826c768f472012d626dd8c3103a95 Mon Sep 17 00:00:00 2001 From: RoxanaElena09 Date: Thu, 11 Dec 2025 16:14:47 +0100 Subject: [PATCH] feat: creation header composant html et js --- header-composant.html | 100 ++++++++++++++++++ header-composant.js | 5 + prestations/html/ajouter_avant_apres.html | 67 +----------- prestations/html/ajouter_slider.html | 4 + prestations/html/liste_avant_apres.html | 66 +----------- prestations/html/modifier_avant_apres.html | 63 +---------- prestations/html/modifier_slider.html | 7 ++ prestations/html/prestation_accueil.html | 117 +++++++++------------ prestations/html/voir_avant_apres.html | 1 + 9 files changed, 173 insertions(+), 257 deletions(-) create mode 100644 header-composant.html create mode 100644 header-composant.js diff --git a/header-composant.html b/header-composant.html new file mode 100644 index 0000000..c7f2f1a --- /dev/null +++ b/header-composant.html @@ -0,0 +1,100 @@ + + + + + + Header- composant + + + + + + +
+ + +
+ + + \ No newline at end of file diff --git a/header-composant.js b/header-composant.js new file mode 100644 index 0000000..dd43767 --- /dev/null +++ b/header-composant.js @@ -0,0 +1,5 @@ +fetch("../../header-composant.html") + .then(response => response.text()) + .then(data => { + document.getElementById("header-placeholder").innerHTML = data; + }); diff --git a/prestations/html/ajouter_avant_apres.html b/prestations/html/ajouter_avant_apres.html index be53e9e..72d119b 100644 --- a/prestations/html/ajouter_avant_apres.html +++ b/prestations/html/ajouter_avant_apres.html @@ -15,71 +15,7 @@ -
- - -
+
@@ -164,6 +100,7 @@ + diff --git a/prestations/html/ajouter_slider.html b/prestations/html/ajouter_slider.html index 10d870e..2c42a50 100644 --- a/prestations/html/ajouter_slider.html +++ b/prestations/html/ajouter_slider.html @@ -20,6 +20,8 @@ +
+

Ajouter une image au slider

@@ -69,6 +71,8 @@ + + diff --git a/prestations/html/liste_avant_apres.html b/prestations/html/liste_avant_apres.html index 58fe8bc..3be6d68 100644 --- a/prestations/html/liste_avant_apres.html +++ b/prestations/html/liste_avant_apres.html @@ -9,71 +9,13 @@ + -
- -
+
+
@@ -138,6 +80,8 @@ + + diff --git a/prestations/html/modifier_avant_apres.html b/prestations/html/modifier_avant_apres.html index 3e77746..d1b508d 100644 --- a/prestations/html/modifier_avant_apres.html +++ b/prestations/html/modifier_avant_apres.html @@ -13,68 +13,8 @@ -
- -
@@ -164,6 +104,7 @@ + diff --git a/prestations/html/modifier_slider.html b/prestations/html/modifier_slider.html index 9da99f9..d025876 100644 --- a/prestations/html/modifier_slider.html +++ b/prestations/html/modifier_slider.html @@ -8,6 +8,9 @@