Skip to content

Commit

Permalink
Update matchup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RasperRevision committed Mar 27, 2024
1 parent a0b1688 commit d434c7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion matchup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand All @@ -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';
Expand Down

0 comments on commit d434c7e

Please sign in to comment.