mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-30 09:38:38 -05:00
fix(quizzes): remove chapter numbering from HTML quiz callouts via JavaScript
- Add JavaScript function to transform 'Self-Check: Question 1.3' to 'Self-Check: Question 3' - Uses regex to extract question number after dot, keeping the individual question count - Runs with multiple timing strategies and MutationObserver for robustness - HTML-only solution: PDF retains chapter numbering, no quiz system changes - Added to existing sidebar-auto-collapse.js to avoid additional script files
This commit is contained in:
@@ -512,11 +512,9 @@ custom-numbered-blocks:
|
||||
quiz-question:
|
||||
colors: ["E6F4F7", "119EC7"] # Updated to refined teal palette
|
||||
collapse: true
|
||||
numbered: false # Drop chapter numbering for HTML (PDF will keep it)
|
||||
quiz-answer:
|
||||
colors: ["E8F2EA", "4a7c59"] # Updated to muted forest green
|
||||
collapse: true
|
||||
numbered: false # Drop chapter numbering for HTML (PDF will keep it)
|
||||
resource-slides:
|
||||
colors: ["E9F3E3", "55984D"]
|
||||
collapse: true
|
||||
|
||||
Reference in New Issue
Block a user