Vocabulary List Builder
Create, manage, and print your custom study guides.
Review the final study sheet below. The list is printable via the PDF button.
AP English Vocabulary - Unit 5
Subject: Literature | Created By: Student/Teacher Name | Date:
Generated by Vocabulary List Builder. Practice makes perfect!
Add New Term
Current List (Total: 0)
Document Settings
Add words to generate the study sheet.
'; return; } vocabulary.forEach((word, index) => { const row = document.createElement('div'); row.className = 'vlb-word-row'; row.innerHTML = `
${index + 1}. ${word.word}
${word.definition}
Example: ${word.example}
`;
container.appendChild(row);
});
};
window.vlbRenderBuilderList = function() {
const container = document.getElementById('vlb-builder-list-container');
container.innerHTML = '';
if (vocabulary.length === 0) return;
vocabulary.forEach(word => {
const item = document.createElement('div');
item.className = 'vlb-list-item';
item.innerHTML = `
${word.word}: ${word.definition.substring(0, 40)}...
`;
container.appendChild(item);
});
};
// --- PDF Export ---
document.getElementById('vlb-download-btn').addEventListener('click', function() {
const element = document.getElementById('vlb-pdf-content');
const footer = element.querySelector('.vlb-pdf-footer');
// Show footer for PDF
footer.style.display = 'block';
const opt = {
margin: 0.4,
filename: 'Vocabulary_Study_Guide.pdf',
image: { type: 'jpeg', quality: 0.98 },
html2canvas: { scale: 2 },
jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }
};
html2pdf().set(opt).from(element).save().then(function(){
footer.style.display = 'none';
});
});
});
