summaryrefslogtreecommitdiff
path: root/wk8
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-05 05:39:42 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-05 05:39:42 +0000
commit319a4854a7984bfd509607beb10ee2cca90b710c (patch)
tree0f7de030020a8ef94014b7758cb323f6198d2579 /wk8
parentdce882ade37930dd0aa848ebb75de2395659fa3b (diff)
Thu, Jul 4, 2024, 10:39 PM -07:00
Diffstat (limited to 'wk8')
-rw-r--r--wk8/pset/trivia/index.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/wk8/pset/trivia/index.html b/wk8/pset/trivia/index.html
index 298cd57..b09fba7 100644
--- a/wk8/pset/trivia/index.html
+++ b/wk8/pset/trivia/index.html
@@ -7,8 +7,8 @@
<title>Trivia!</title>
<script>
// TODO: Add code to check answers to questions
- document.querySelectorAll('answer').addEventListener('click', function() {
- document.querySelectorAll('answer').style.backgroundColor = "red";
+ document.querySelectorAll("correct").addEventListener("click", function() {
+ document.querySelectorAll("correct").style.backgroundColor = "red";
});
</script>
@@ -22,10 +22,15 @@
<div class="section">
<h2>Part 1: Multiple Choice </h2>
<hr>
+
<h3>QUESTION?</h3>
- <button id="answer">answer1</button>
- <button id="answer">answer2</button>
- <button id="answer">answer3</button>
+
+ <button class="correct">answer1</button>
+ <button class="incorrect">answer2</button>
+ <button class="incorrect">answer3</button>
+
+ <p id="feedback"></p>
+
</div>
<div class="section">