Current Card
Card 0 of 0
[Click NEXT or Add a card]
[Click NEXT or Add a card]
Add New Term
Study Set Metadata
Card Manager (0)
User: | Total Cards:
Itemized Study Set
| Term / Concept | Definition / Explanation | Category |
|---|
Category: ${card.category}
`; } function flipCard() { const container = document.getElementById('flip-container'); if (filteredCardSet.length > 0) { container.classList.toggle('flipped'); } } function nextCard() { if (filteredCardSet.length > 0) { currentCardIndex = (currentCardIndex + 1) % filteredCardSet.length; updateViewer(); } } // --- PDF Export --- function generatePDF() { if (cardData.length === 0) { alert("Please add flashcards to the study set before generating the report."); return; } const template = document.getElementById('pdf-template'); const pdfTbody = document.getElementById('pdf-tbody'); // 1. Fill Metadata (Done in updateMeta) document.getElementById('pdf-card-count').innerText = cardData.length; // 2. Fill Table Content (All cards, sorted by Category) pdfTbody.innerHTML = ''; const sorted = [...cardData].sort((a, b) => a.category.localeCompare(b.category) || a.term.localeCompare(b.term)); sorted.forEach(entry => { pdfTbody.innerHTML += `