Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contact us is made visible in darkmode #518

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ <h5 class="mb-0"> swasthyapoint2024@gmail.com</h5>
</div>
<div class="col-lg-6 wow fadeIn" data-wow-delay="0.1s">
<div class="bg-light rounded p-5">
<p class="d-inline-block border rounded-pill py-1 px-4">Contact Us</p>
<p class="d-inline-block border rounded-pill py-1 px-4 " style="color: #000;">Contact Us</p>
<h1 class="mb-4">Have Any Query? Please Contact Us!</h1>

<form>
Expand Down
21 changes: 0 additions & 21 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,3 @@ window.addEventListener('scroll', function(){
})


document.addEventListener('DOMContentLoaded',() => {
const darkToggle = document.getElementById('dark-change');

if(localStorage.getItem('darkMode') === 'enabled'){
document.body.classList.add('dark-mode');
darkToggle.classList.add('active');
}

darkToggle.addEventListener('click' , ()=>
{
document.body.classList.toggle('dark-mode');
darkToggle.classList.toggle('active');

if (document.body.classList.contains('dark-mode')){
localStorage.setItem('darkMode','enabled');
}
else{
localStorage.setItem('darkMode','disabled');
}
});
});
9 changes: 8 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,15 @@ section {
color: #fff;
}

body.night .mb-4{
color: #000;
padding-top:4px;
}


.mb-4{
color: #000;
padding-top: 4px;
}



Expand Down