diff --git a/public/admin.js b/public/admin.js index 12d09ea..ae459f3 100644 --- a/public/admin.js +++ b/public/admin.js @@ -36,11 +36,11 @@ function msg(text, type = 'success') { } const TYPE_ICON = { - lesson: '📖', assignment: '📝', quiz: '❓', + lesson: '📖', assignment: '📝', quiz: '❓', matching: '🔤', spelling_practice: '✏️', spelling_test: '⭐', flashcards: '🗂️', }; const TYPE_LABEL = { - lesson: 'Lesson', assignment: 'Assignment', quiz: 'Quiz', + lesson: 'Lesson', assignment: 'Assignment', quiz: 'Quiz', matching: 'Matching', spelling_practice: 'Spelling Practice', spelling_test: 'Spelling Test', flashcards: 'Flashcards', }; diff --git a/public/app.js b/public/app.js index 9837719..f1a1556 100644 --- a/public/app.js +++ b/public/app.js @@ -541,6 +541,41 @@ function printSpellingWorksheet(name, words) { win.document.close(); } +function printMatchingWorksheet(title, wordBank, questions) { + const bankHtml = wordBank + .map((w, i) => `${String.fromCharCode(65 + i)}. ${esc(w)}`) + .join(''); + const clueRows = questions + .map((q, i) => `
Directions: Write the letter of the matching word from the word bank on the blank next to each clue.
+