Why Join ThinkifyEdu?

Get access to an AI-driven education platform tailored for students and learners. Sign up today to:

πŸ“š

Personalized Learning

Achieve your learning goals with tailored practice questions and interactive study tools.

πŸ’‘

Instant Homework Assistance

Get quick help for any subject, anytime, from AI and expert tutors available 24/7.

πŸ‘₯

Personalized Tutoring

Connect with expert tutors for one‑on‑one help and personalized support!

Create your account

Already have an account? Log in

/* =============================== SIGN UP LOGIC ================================ */ const signupForm = document.getElementById("signupForm"); if (signupForm) { signupForm.addEventListener("submit", function (e) { e.preventDefault(); const name = document.getElementById("signupName")?.value.trim(); const email = document.getElementById("signupEmail")?.value.trim(); const password = document.getElementById("signupPassword")?.value.trim(); if (!name || !email || !password) { alert("❌ Please fill all fields"); return; } auth .createUserWithEmailAndPassword(email, password) .then((cred) => { return cred.user.updateProfile({ displayName: name }); }) .then(() => { alert("βœ… Sign up successful! You can now log in."); window.location.href = "login.html"; }) .catch((error) => { alert(error.message); }); }); } /* =============================== PASSWORD TOGGLE ================================ */ function togglePassword() { const passwordField = document.getElementById("signupPassword"); if (!passwordField) return; passwordField.type = passwordField.type === "password" ? "text" : "password"; } /* =============================== DARK MODE LOGIC ================================ */ const toggleBtn = document.getElementById("dark-toggle"); const sunIcon = document.getElementById("sun-icon"); const moonIcon = document.getElementById("moon-icon"); function applyTheme(isDark) { document.documentElement.classList.toggle("dark", isDark); localStorage.setItem("theme", isDark ? "dark" : "light"); if (sunIcon && moonIcon) { sunIcon.classList.toggle("hidden", !isDark); moonIcon.classList.toggle("hidden", isDark); } } // Load saved theme const savedTheme = localStorage.getItem("theme"); const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches; applyTheme(savedTheme === "dark" || (!savedTheme && prefersDark)); // Toggle theme toggleBtn?.addEventListener("click", () => { applyTheme(!document.documentElement.classList.contains("dark")); }); /* =============================== CHAT WIDGET TOGGLE ================================ */ document.getElementById("openChatBtn")?.addEventListener("click", () => { document.getElementById("chatWidget")?.classList.remove("hidden"); }); document.getElementById("closeChatBtn")?.addEventListener("click", () => { document.getElementById("chatWidget")?.classList.add("hidden"); }); /* =============================== CURRENT YEAR ================================ */ const yearEl = document.getElementById("currentYear"); if (yearEl) { yearEl.textContent = new Date().getFullYear(); }