From 62858d310427036886c4d505e1c63b757666d1e2 Mon Sep 17 00:00:00 2001 From: kratik1237 Date: Fri, 12 Jul 2024 19:44:29 +0530 Subject: [PATCH] dark mode done --- css/style.css | 9 +++++ index.html | 13 ++++--- js/script.js | 13 +++++++ privacypolicy.html | 85 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 115 insertions(+), 5 deletions(-) create mode 100644 js/script.js create mode 100644 privacypolicy.html diff --git a/css/style.css b/css/style.css index 1e153f1..dc34beb 100644 --- a/css/style.css +++ b/css/style.css @@ -321,6 +321,15 @@ h5, font-size: 3rem; } } +body { + background-color: white; + color: black; +} + +body.darkMode { + background-color: black; + color: white; +} .play-single-big { width: 90px; diff --git a/index.html b/index.html index f6005c3..1e3f157 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@ - + @@ -45,7 +45,7 @@ - + @@ -153,7 +153,10 @@ - + + @@ -1056,8 +1059,8 @@
Legal
- - + + diff --git a/js/script.js b/js/script.js new file mode 100644 index 0000000..23907c7 --- /dev/null +++ b/js/script.js @@ -0,0 +1,13 @@ +document.addEventListener("DOMContentLoaded", function() { + const darkModeToggle = document.getElementById('dark-mode-toggle'); + const body = document.body; + + if (darkModeToggle) { + darkModeToggle.addEventListener('click', function () { + body.classList.toggle("darkMode"); + console.log("Dark mode toggled"); + }); + } else { + console.error('Element with ID "dark-mode-toggle" not found.'); + } +}); diff --git a/privacypolicy.html b/privacypolicy.html new file mode 100644 index 0000000..bff6664 --- /dev/null +++ b/privacypolicy.html @@ -0,0 +1,85 @@ + + + + + + + Privacy Policy + + + + + +

Privacy Policy

+
Last updated: May 17, 2024
+ +

Welcome to NactoCare. We are committed to protecting your personal information and your right to privacy. If you have any questions or concerns about our policy or our practices with regards to your personal information, please contact us at nactoreorganization@gmail.com.

+ +

Information We Collect

+

We collect personal information that you provide to us, such as name, address, contact information, and payment information. We collect personal information when you register for our services, express an interest in obtaining information about us or our products and services, participate in activities on the Services, or otherwise contact us.

+ +

How We Use Your Information

+

We use personal information collected via our Services for a variety of business purposes described below. We process your personal information for these purposes in reliance on our legitimate business interests, in order to enter into or perform a contract with you, with your consent, and/or for compliance with our legal obligations.

+ + + \ No newline at end of file