Anthroposophy Study Group Agenda
Group: The Sophia Circle | Topic: Theosophy | Date:
Time Allocation (Minutes)
Total Time Used: 0 minutes
Time Allocation (Minutes)
Notes & Assignments
Start: ${formatTime(currentTime, 0)} | End: ${formatTime(endTime, 0)}
${item.content}
`; currentTime = endTime; } }); document.getElementById('asgdo-agenda-blocks').innerHTML = agendaHtml; // Update Chart wglctoUpdateChart(welcomeTime, readingTime, discussionTime, exerciseTime, meditationTime, closingTime); }; window.asgdoResetData = function(silent = false) { if(silent || confirm("Clear all agenda data and reset to defaults?")) { document.getElementById('asgdo-in-time-welcome').value = 10; document.getElementById('asgdo-in-time-reading').value = 20; document.getElementById('asgdo-in-time-discussion').value = 45; document.getElementById('asgdo-in-time-exercise').value = 15; document.getElementById('asgdo-in-time-meditation').value = 10; document.getElementById('asgdo-in-time-closing').value = 10; document.getElementById('asgdo-in-reading-assignment').value = 'Assigned reading: Theosophy, Chapter 3: The Three Worlds.'; document.getElementById('asgdo-in-exercise-desc').value = 'Form Drawing: The Lemniscate (Figure Eight).'; document.getElementById('asgdo-cfg-group').value = 'The Sophia Circle'; document.getElementById('asgdo-cfg-topic').value = 'Theosophy'; document.getElementById('asgdo-cfg-start-time').value = '19:30'; asgdoUpdateAgenda(); if (!silent) alert("Agenda reset to template."); } }; // --- Chart Logic --- window.wglctoInitChart = function() { const ctx = document.getElementById('asgdo-chart').getContext('2d'); asgdoChart = new Chart(ctx, { type: 'doughnut', data: { labels: ['Welcome', 'Reading', 'Discussion', 'Exercise', 'Meditation', 'Closing'], datasets: [{ data: [10, 20, 45, 15, 10, 10], backgroundColor: ['#5d4037', '#795548', '#a1887f', '#38765f', '#1b4332', '#6b9080'], borderWidth: 1 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { position: 'bottom', labels: { boxWidth: 10, padding: 10 } } } } }); }; window.wglctoUpdateChart = function(welcome, reading, discussion, exercise, meditation, closing) { if(asgdoChart) { asgdoChart.data.datasets[0].data = [welcome, reading, discussion, exercise, meditation, closing]; asgdoChart.update(); } }; // --- PDF Export --- window.asgdoDownloadPDF = function() { const element = document.getElementById('asgdo-export-area'); const opt = { margin: 0.75, filename: 'Anthroposophy_Study_Agenda.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } }; html2pdf().set(opt).from(element).save(); }; })();