add clearing
This commit is contained in:
parent
e3f490aabc
commit
5424a9486b
@ -97,6 +97,11 @@ td {
|
|||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#vzoritem>div{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.lettervec{
|
.lettervec{
|
||||||
font-family: 'Courier New', monospace;
|
font-family: 'Courier New', monospace;
|
||||||
font-size: 64px;
|
font-size: 64px;
|
||||||
|
4
index.js
4
index.js
@ -120,7 +120,7 @@ function checkAnswers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (vzorcodes == imagecodes && vzorcodes == lettercodes){
|
if (vzorcodes == imagecodes && vzorcodes == lettercodes){
|
||||||
cleanup();
|
cleanup();cleanup
|
||||||
generatePair();
|
generatePair();
|
||||||
try{
|
try{
|
||||||
umami.trackEvent('Successful round', { type: 'successround' });
|
umami.trackEvent('Successful round', { type: 'successround' });
|
||||||
@ -189,6 +189,8 @@ function getEmptyIndex(element) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showImages(word) {
|
function showImages(word) {
|
||||||
|
$("#imageholder").html("");
|
||||||
|
$("#letterholder").html("");
|
||||||
let tmp_tabl = Array.from(word)
|
let tmp_tabl = Array.from(word)
|
||||||
var images = [];
|
var images = [];
|
||||||
var letters = [];
|
var letters = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user