milestone(SNNBot): 48% hit rate, grid accumulator with warm-start + frozen DECIDE snapshot — pausing for BNNBot exploration
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// Minimal quiz widget — shared across lessons
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
document.querySelectorAll('.quiz').forEach(quiz => {
|
||||
const radios = quiz.querySelectorAll('input[type="radio"]');
|
||||
const feedbackCorrect = quiz.querySelector('.feedback.correct');
|
||||
const feedbackWrong = quiz.querySelector('.feedback.wrong');
|
||||
|
||||
radios.forEach(radio => {
|
||||
radio.addEventListener('change', () => {
|
||||
if (feedbackCorrect) feedbackCorrect.style.display = 'none';
|
||||
if (feedbackWrong) feedbackWrong.style.display = 'none';
|
||||
|
||||
if (radio.dataset.correct === 'true') {
|
||||
if (feedbackCorrect) feedbackCorrect.style.display = 'block';
|
||||
} else {
|
||||
if (feedbackWrong) feedbackWrong.style.display = 'block';
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user