Skip to content

Commit

Permalink
no auto keyboard in thermometer + click 0
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed Feb 10, 2024
1 parent 11d08a0 commit 75956f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions site/1/thermometer.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ <h3 id="exercise-feedback">&nbsp;</h3>
<button type="reset" id="button-skip" hidden>🤷 weet het niet</button>
`;

document.querySelectorAll('#thermometer.interactive tr:not(:last-child)>td:first-child').forEach((el) => {
document.querySelectorAll('#thermometer.interactive tr > td:first-child').forEach((el) => {
el.addEventListener('click', (e) => {
e.preventDefault();
const elementId = e.target ? e.target.id : e.srcElement.id;
Expand Down Expand Up @@ -495,8 +495,6 @@ <h3 id="exercise-feedback">&nbsp;</h3>
const answerEl = document.getElementById("answer");
if (answerEl) {
answerEl.style.backgroundColor = "#fffde6";
answerEl.focus();
answerEl.click();
}

const buttonSkipEl = document.getElementById("button-skip");
Expand Down

0 comments on commit 75956f0

Please sign in to comment.