From 5424a9486bd1d3c15642d6c2f361c54f0aa101e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 2 Apr 2023 17:43:13 +0200 Subject: [PATCH] add clearing --- index.css | 5 +++++ index.js | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/index.css b/index.css index df8f33e..9cb3a9a 100644 --- a/index.css +++ b/index.css @@ -97,6 +97,11 @@ td { object-fit: contain; } +#vzoritem>div{ + width: 100%; + height: 100%; +} + .lettervec{ font-family: 'Courier New', monospace; font-size: 64px; diff --git a/index.js b/index.js index d66b06f..5030a15 100644 --- a/index.js +++ b/index.js @@ -120,7 +120,7 @@ function checkAnswers() { } if (vzorcodes == imagecodes && vzorcodes == lettercodes){ - cleanup(); + cleanup();cleanup generatePair(); try{ umami.trackEvent('Successful round', { type: 'successround' }); @@ -189,6 +189,8 @@ function getEmptyIndex(element) { } function showImages(word) { + $("#imageholder").html(""); + $("#letterholder").html(""); let tmp_tabl = Array.from(word) var images = []; var letters = [];