add clearing

This commit is contained in:
Bruno Rybársky 2023-04-02 17:43:13 +02:00
parent e3f490aabc
commit 5424a9486b
No known key found for this signature in database
GPG Key ID: DFE2C061EF985CD4
2 changed files with 8 additions and 1 deletions

@ -97,6 +97,11 @@ td {
object-fit: contain;
}
#vzoritem>div{
width: 100%;
height: 100%;
}
.lettervec{
font-family: 'Courier New', monospace;
font-size: 64px;

@ -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 = [];