Connecting to Database...
Connecting...

Thought Evaluator

Thought Analysis

Monthly Calendar

Buddhy > Past Memories & Experiences

Sanskar > Ego (aham)

Sanskar > Habits

/* ---------- Debugging Functions ---------- */ function toggleDebugView() { const container = document.getElementById('debug-container'); container.style.display = container.style.display === 'block' ? 'none' : 'block'; } function updateDebugView() { const content = { thoughts: JSON.parse(localStorage.getItem("thoughts") || "[]"), memories: JSON.parse(localStorage.getItem("memories") || "[]"), ego: JSON.parse(localStorage.getItem("ego") || "[]"), habits: JSON.parse(localStorage.getItem("habits") || "[]"), birthYear: localStorage.getItem("birthYear") || "" }; document.getElementById('debug-content').textContent = JSON.stringify(content, null, 2); } /* ---------- Global Update and Initialization ---------- */ function updateAllViews() { updateChart(); generateCalendar(); updateMemoryList(); updateEgoList(); updateHabitList(); updateDebugView(); } function resetAllForms() { resetThoughtForm(); resetMemoryForm(); resetForm('ego'); resetForm('habits'); } document.addEventListener("DOMContentLoaded", function() { updateAllViews(); });