From 107bb4f91f4966ebe0dbff491e670ec6d20887eb Mon Sep 17 00:00:00 2001
From: YakeDev
Date: Mon, 14 Oct 2024 08:44:49 +0200
Subject: [PATCH 1/3] Redesign Footer Section
- Added social media icons with hover effects.
- Made the footer sticky at the bottom of the page.
- Improved typography and layout for better readability.
---
about.html | 16 ------
adventures.html | 15 +++---
app.js | 124 +++++++++++++++++++++++-----------------------
faq.html | 38 --------------
fs.html | 6 ---
index.html | 6 ---
pages/header.html | 16 ++----
pbd.html | 77 +++++++++++++---------------
script.js | 46 +++++++++--------
test.html | 6 ---
10 files changed, 135 insertions(+), 215 deletions(-)
diff --git a/about.html b/about.html
index e1ec8c1..a356b20 100644
--- a/about.html
+++ b/about.html
@@ -40,16 +40,6 @@
/>
Lisbook
->>>>>>> c3e3653 (Redesign Footer for Enhanced Visual Appeal)
-
-
-
-
+
- Chapter 1: The Shores of the Cosmic Ocean
- Piste 02
+
- Chapter 2: One Voice in the Cosmic Fugue
- Piste 03
+
- Chapter 3: The Harmony of the Worlds
- Piste 04
+
- Chapter 4: Heaven and Hell
- Piste 05
+
- Chapter 5:
-
- Piste 06
+
- Chapter 6:
-
- Piste 07
+
@@ -347,14 +340,14 @@ By Carl Sagan
>
Next Book
diff --git a/script.js b/script.js
index 23f0c65..a557539 100644
--- a/script.js
+++ b/script.js
@@ -261,28 +261,30 @@ document.addEventListener("DOMContentLoaded", function () {
});
}
- menuClose.addEventListener("click", () => {
- menu.classList.add("scale-0");
- menu.classList.remove("scale-100");
- });
-
- // Function to load an HTML file into an element
- function loadHTML(file, elementId) {
- fetch(file)
- .then((response) => {
- if (!response.ok)
- throw new Error("Erreur lors du chargement du fichier " + file);
- return response.text();
- })
- .then((data) => {
- document.getElementById(elementId).innerHTML = data;
- })
- .catch((error) => console.error(error));
+ if (menuClose) {
+ menuClose.addEventListener("click", () => {
+ menu.classList.add("scale-0");
+ menu.classList.remove("scale-100");
+ });
}
+});
- // Load header and footer
- document.addEventListener("DOMContentLoaded", function () {
- loadHTML("./pages/header.html", "header-placeholder");
- loadHTML("./pages/footer.html", "footer-placeholder");
- });
+// Function to load an HTML file into an element
+function loadHTML(file, elementId) {
+ fetch(file)
+ .then((response) => {
+ if (!response.ok)
+ throw new Error("Erreur lors du chargement du fichier " + file);
+ return response.text();
+ })
+ .then((data) => {
+ document.getElementById(elementId).innerHTML = data;
+ })
+ .catch((error) => console.error(error));
+}
+
+// Load header and footer
+document.addEventListener("DOMContentLoaded", function () {
+ loadHTML("./pages/header.html", "header-placeholder");
+ loadHTML("./pages/footer.html", "footer-placeholder");
});
diff --git a/test.html b/test.html
index 5c39d2c..123c688 100644
--- a/test.html
+++ b/test.html
@@ -71,12 +71,6 @@
About
-
Contact
-
About
+
Contact
+
FAQs