Notes on the Grand Work
Entry Date:
Alchemist:
Alchemist:
Alchemist Identity
STATUS: ${data.outcome}
`; document.getElementById('atjg-entry-content').innerHTML = entryText; }; window.atjgResetData = function(silent = false) { if(silent || confirm("Clear all journal data and reset to template?")) { document.getElementById('atjg-cfg-alchemist').value = "Aurelius Magnus"; document.getElementById('atjg-cfg-date').valueAsDate = new Date(); document.getElementById('atjg-in-phase').value = 'Calcination'; document.getElementById('atjg-in-subject').value = "Purified Lead"; document.getElementById('atjg-in-target').value = "Philosophical Mercury"; document.getElementById('atjg-in-catalyst').value = "Spirit of Wine"; document.getElementById('atjg-in-observation').value = "The material shifted rapidly to a black, viscous state. A subtle, sweet ozone scent filled the chamber, indicating proper initial corruption. We must maintain the low, even heat."; document.getElementById('atjg-in-outcome').value = "Calcination successful, ready for the next stage (Dissolution)."; atjgGenerateEntry(); if (!silent) alert("Journal entry reset to template."); } }; // --- PDF Export --- window.atjgDownloadPDF = function() { const element = document.getElementById('atjg-export-area'); const opt = { margin: 0.75, filename: 'Alchemical_Journal_Entry.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } }; html2pdf().set(opt).from(element).save(); }; })();