From cfa995cac638b0bdcfd170baeb25dc701ee82e4d Mon Sep 17 00:00:00 2001 From: MOHIT-IITP Date: Tue, 15 Oct 2024 13:46:23 +0530 Subject: [PATCH] Fixes: #715 --- index.html | 57 +++++++++++++++++++++++++++++++++++++----------------- style.css | 13 +++++++++++-- 2 files changed, 50 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index 14b2e6fb..495138c2 100644 --- a/index.html +++ b/index.html @@ -325,17 +325,38 @@

BuddyTrail

console.log('Toggle clicked'); // Log when the button is clicked document.body.classList.toggle('dark-mode'); document.body.classList.toggle('light-mode'); + const darkelem = document.querySelectorAll('#darkbtn'); + const h1dark = document.querySelectorAll('#h1darkbtn'); + const cardbtn = document.querySelectorAll('#btn a'); if (document.body.classList.contains('dark-mode')) { console.log('Switching to dark mode'); sunIcon.style.display = 'none'; // Hide sun icon moonIcon.style.display = 'inline-block'; // Show moon icon localStorage.setItem('theme', 'dark'); - } else { + darkelem.forEach((elem) =>{ + elem.style.color = 'white'; + }) + cardbtn.forEach((elem) =>{ + elem.style.color = 'white'; + }) + h1dark.forEach((darkbtn) =>{ + darkbtn.style.color='#FFA500' + }) + } else { console.log('Switching to light mode'); sunIcon.style.display = 'inline-block'; // Show sun icon moonIcon.style.display = 'none'; // Hide moon icon localStorage.setItem('theme', 'light'); + darkelem.forEach((elem) =>{ + elem.style.color = 'gray'; + }) + h1dark.forEach((darkbtn) =>{ + darkbtn.style.color='#0057B3' + }) + cardbtn.forEach((elem) =>{ + elem.style.color = 'black'; + }) } }); }); @@ -599,8 +620,8 @@

Wildlife Safari in Kenya

-

Travel Itineraries

-

+

Travel Itineraries

+

Plan your trips effortlessly with our curated travel itineraries tailored for different types of adventures. Whether you're planning a family vacation, a solo adventure, or a romantic getaway, we’ve got @@ -705,7 +726,7 @@

Book a Cab or Auto

-

Personalized Recommendations

+

Personalized Recommendations

We’ve picked these destinations, hotels, and activities just for you, based on your preferences. @@ -715,7 +736,7 @@

Personalized Recommendations

-

Beach Resort in Goa

+

Beach Resort in Goa

Based on your love for sunny destinations, we recommend this beachfront resort in Goa for a perfect getaway. @@ -727,7 +748,7 @@

Beach Resort in Goa

-

Cultural Tour in Rajasthan

+

Cultural Tour in Rajasthan

Explore the rich cultural heritage of Rajasthan. This tour is highly recommended based on your interest in historical places. @@ -739,7 +760,7 @@

Cultural Tour in Rajasthan

-

Adventure Trek in Himachal

+

Adventure Trek in Himachal

For the adventure lover in you, we recommend a thrilling trek in the mountains of Himachal Pradesh. @@ -752,7 +773,7 @@

Adventure Trek in Himachal

-

Travel Discussion Forum

+

Travel Discussion Forum