Primary Source Analysis Worksheet
Step 1: Identify the Source
Start by recording the basic information about your primary source. This is the "dashboard" for your analysis.
Step 2: Observe and Contextualize
What do you notice about the source? What was happening when it was created?
Step 3: Analyze and Conclude
What is the deeper meaning of the source? What are your takeaways?
Analysis Complete
Here is a summary of your analysis. You can now download this report as a PDF.
Your summary will appear here after you click "Generate Summary".
${data.Context || "N/A"}
Intended Audience
${data.Audience || "N/A"}
Author's Purpose or Point of View
${data.Purpose || "N/A"}
Potential Bias
${data.Bias || "N/A"}
Your Conclusion / Usefulness
${data.Conclusion || "N/A"}
`; // 3. Move to Confirmation Tab showTab(totalTabs - 1); }); // --- Event Listener for PDF Download --- pdfBtn.addEventListener('click', function() { const { jsPDF } = window.jspdf; const contentToCapture = document.getElementById('psa-summary-content'); const pdfTitle = document.createElement('h3'); pdfTitle.className = "text-center text-xl font-bold text-gray-800 mb-4"; pdfTitle.textContent = "Primary Source Analysis Report"; contentToCapture.prepend(pdfTitle); html2canvas(contentToCapture, { scale: 2, backgroundColor: "#ffffff", onclone: (doc) => { doc.getElementById('psa-summary-content').style.display = 'block'; } }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'p', unit: 'mm', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = (canvas.height * pdfWidth) / canvas.width; pdf.addImage(imgData, 'PNG', 10, 10, pdfWidth - 20, pdfHeight); pdf.save('primary_source_analysis.pdf'); contentToCapture.removeChild(pdfTitle); }); }); // --- Initial Setup --- showTab(0); });