इंटरनेट के ज़माने में किसी को मुबारकबाद देने के कई मेथड है। यह वेबसाइट भी आपको एक मेथड प्रोवाइड करता है , जिसको प्रयोग कर के आप किसी को भी विश कर सकते है। इसके लिए आपको टेक्सटबॉक्स में नाम लिखना है जिसे आप मुबारकबाद देना चाहते है, फिर आप फेसबुक या व्हाट्सप्प के माध्यम से शेयर कर सकते है.
There are many ways to congratulate someone in the age of the Internet. This website also provides you with a method, using which you can wish anyone. For this, you have to write the name in the textbox which you want to congratulate, then you can share it through Facebook or Whatsapp.
You can create user preferences in JavaScript by storing the choice when the user clicks something, and then reloading it whenever the page is opened again. The usual way is to use localStorage or cookies.
Here’s a step-by-step example:
Hello! This text will change theme.
// Get saved preference (if any)
let userPref = localStorage.getItem("theme");
document.cookie = "theme=light; path=/";
// Apply saved preference
if (userPref === "dark") {
document.body.classList.add("dark");
document.cookie = "theme=dark; path=/";
}
// Button click event
document.getElementById("themeToggle").addEventListener("click", () => {
document.body.classList.toggle("dark");
// Save user preference
if (document.body.classList.contains("dark")) {
localStorage.setItem("theme", "dark");
document.cookie = "theme=dark; path=/";
} else {
localStorage.setItem("theme", "light");
document.cookie = "theme=light; path=/";
}
});
body {
background: white;
color: black;
}
body.dark {
background: black;
color: white;
}
AWS, PHP, Server Security, Laravel, Opencart, Drupal, Android Application Development, SEO Service, Digital Marketing Service, Social Website, E commerce Website