From e626a34133ce4335765765d9e839373199a353cf Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Fri, 5 Jul 2024 06:27:02 +0000 Subject: Thu, Jul 4, 2024, 11:27 PM -07:00 --- wk8/pset/trivia/index.html | 11 +++++------ wk8/pset/trivia/styles.css | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'wk8/pset/trivia') diff --git a/wk8/pset/trivia/index.html b/wk8/pset/trivia/index.html index b7a20f1..9b854d6 100644 --- a/wk8/pset/trivia/index.html +++ b/wk8/pset/trivia/index.html @@ -1,6 +1,7 @@ + @@ -25,21 +26,18 @@ document.querySelector('form').addEventListener('submit', function(event) { event.preventDefault(); - if (document.querySelector('#big').value == 'Earl Grey') - { + if (document.querySelector('#big').value == 'Earl Grey') { document.querySelector('#big').style.backgroundColor = 'green'; document.querySelector('#feedback2').innerHTML = 'Correct!'; - } - else - { + } else { document.querySelector('#big').style.backgroundColor = 'red'; document.querySelector('#feedback2').innerHTML = 'Inorrect'; } }); }); - +

Trivia!

@@ -80,4 +78,5 @@
+ diff --git a/wk8/pset/trivia/styles.css b/wk8/pset/trivia/styles.css index 08e359f..0e7c39b 100644 --- a/wk8/pset/trivia/styles.css +++ b/wk8/pset/trivia/styles.css @@ -27,10 +27,10 @@ body { padding: 0.5rem 2rem 1rem 2rem; } -.section:hover { +/* .section:hover { background-color: #f5f5f5; transition: color 2s ease-in-out, background-color 0.15s ease-in-out; -} +} */ h1 { font-family: 'Montserrat', sans-serif; -- cgit v1.2.3