From 1f17367c98937153f1e63fa4cd992292685491cc Mon Sep 17 00:00:00 2001 From: structix Date: Sun, 14 Jul 2019 22:18:41 +0200 Subject: [PATCH] Update --- uebung10/quiz.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 () {