diff --git a/uebung10/quiz.html b/uebung10/quiz.html index e290556..cd77de7 100644 --- a/uebung10/quiz.html +++ b/uebung10/quiz.html @@ -88,9 +88,9 @@ function showQuestion() { answer1.innerHTML = question.answers[1]; answer2.innerHTML = question.answers[2]; - answer0.style.backgroundColor = "gray"; - answer1.style.backgroundColor = "gray"; - answer2.style.backgroundColor = "gray"; + answer0.style.backgroundColor = "lightgray"; + answer1.style.backgroundColor = "lightgray"; + answer2.style.backgroundColor = "lightgray"; } function answerQuestion(event) { @@ -107,6 +107,7 @@ function answerQuestion(event) { } else { falschAudio.play(); target.style.backgroundColor = "red"; + console.log(question.solution); document.getElementById("answer" + question.solution).style.backgroundColor == "green"; } setTimeout(function () {