1
0

vault backup: 2025-12-22 22:49:13
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m8s

This commit is contained in:
2025-12-22 22:49:13 +01:00
parent e1d880555f
commit 68079d368d
30 changed files with 244 additions and 149 deletions

View File

@@ -10,12 +10,12 @@
<div class="options-container">
{% for option in question.options.all %}
<div class="option-item" id="option-{{ option.letter }}" data-letter="{{ option.letter }}">
<div class="option-item" id="option-{{ option.letter }}" data-letter="{{ option.letter }}" style="cursor: pointer;">
<input type="checkbox" id="checkbox-{{ option.letter }}" value="{{ option.letter }}"
data-letter="{{ option.letter }}"
style="margin-right: 0.5rem; width: 1.2rem; height: 1.2rem; cursor: pointer;">
<span class="option-letter">{{ option.letter }}</span>
<span>{{ option.text }}</span>
style="margin-right: 0.5rem; width: 1.2rem; height: 1.2rem; cursor: pointer; pointer-events: auto;">
<span class="option-letter" style="pointer-events: none;">{{ option.letter }}</span>
<span style="pointer-events: none;">{{ option.text }}</span>
</div>
{% endfor %}
</div>
@@ -39,7 +39,7 @@
// Handle checkbox changes (direct checkbox clicks or programmatic changes)
container?.addEventListener('change', (e) => {
if (e.target.type === 'checkbox') {
const letter = e.target.dataset.letter;
const { letter } = e.target.dataset;
if (letter) updateSelection(letter);
}
});