From 719eff3677b2f924bd77cb55c1d19e55e930352c Mon Sep 17 00:00:00 2001 From: SachitDesai Date: Wed, 10 Apr 2024 10:03:38 +0530 Subject: [PATCH 1/2] code improvement for footer --- aboutus.html | 26 ++------------------------ contact.html | 26 ++------------------------ footer.html | 25 +++++++++++++++++++++++++ footer.js | 7 +++++++ home.html | 25 ++----------------------- programs.html | 26 ++------------------------ 6 files changed, 40 insertions(+), 95 deletions(-) create mode 100644 footer.html create mode 100644 footer.js diff --git a/aboutus.html b/aboutus.html index b4c268f..4334540 100644 --- a/aboutus.html +++ b/aboutus.html @@ -68,30 +68,8 @@

Our Story

- + + diff --git a/contact.html b/contact.html index 91b4ef5..4a8ba2f 100644 --- a/contact.html +++ b/contact.html @@ -97,30 +97,8 @@

Inquiry Form

- + + diff --git a/footer.html b/footer.html new file mode 100644 index 0000000..fb2c12c --- /dev/null +++ b/footer.html @@ -0,0 +1,25 @@ + + diff --git a/footer.js b/footer.js new file mode 100644 index 0000000..96225d5 --- /dev/null +++ b/footer.js @@ -0,0 +1,7 @@ +document.addEventListener("DOMContentLoaded", function() { + fetch("footer.html") + .then(response => response.text()) + .then(data => { + document.querySelector("body").insertAdjacentHTML("beforeend", data); + }); +}); diff --git a/home.html b/home.html index 2250185..83f9167 100644 --- a/home.html +++ b/home.html @@ -116,29 +116,8 @@

Sign up for our EXCLUSIVE TRAINING Tips, Offers and Discounts

- + + diff --git a/programs.html b/programs.html index 49189aa..211d931 100644 --- a/programs.html +++ b/programs.html @@ -106,30 +106,8 @@

MEMBERSHIP PLANS

- + + From 72d4d64370e9c7968aad704a5028dfa4bd77ad24 Mon Sep 17 00:00:00 2001 From: SachitDesai Date: Tue, 23 Apr 2024 21:46:09 +0530 Subject: [PATCH 2/2] added socials links to the footer --- footer.html | 8 ++++---- home.html | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/footer.html b/footer.html index fb2c12c..57f4dd2 100644 --- a/footer.html +++ b/footer.html @@ -9,14 +9,14 @@
-
- +
+
- +
- +
diff --git a/home.html b/home.html index 83f9167..b1a3ee2 100644 --- a/home.html +++ b/home.html @@ -33,8 +33,8 @@