From d434c7ea0ff3a8517645e7ba2b5a517b276d37e3 Mon Sep 17 00:00:00 2001 From: RasperRevision <131694670+RasperRevision@users.noreply.github.com> Date: Wed, 27 Mar 2024 09:03:44 +0000 Subject: [PATCH] Update matchup.js --- matchup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matchup.js b/matchup.js index 94be4e0..c7f7569 100644 --- a/matchup.js +++ b/matchup.js @@ -65,7 +65,6 @@ function script(subject, topic) { sym.style.position = 'absolute'; sym.style.left = (Math.random() * (window.innerWidth - 500) + 250) + 'px'; sym.style.top = (Math.random() * (window.innerHeight - 500) + 250) + 'px'; - sym.addEventListener('click', function () { if (mean_found && sym_text == symbol) { while (container.firstChild) { container.removeChild(container.firstChild); } @@ -81,6 +80,8 @@ function script(subject, topic) { mean.textContent = item.meaning; mean.classList.add('btn'); + mean.classList.add('text-white'); + mean.style.position = 'absolute'; mean.style.fontSize = '20px';