diff --git a/index.css b/index.css index 0249509..a113da2 100644 --- a/index.css +++ b/index.css @@ -9,7 +9,7 @@ bottom: 0%; } -#activepart{ +.activepart{ width: fit-content; margin: auto; padding: auto; @@ -70,4 +70,11 @@ th, td { .itemstor > *{ margin: 16px; +} + +#vzoritem{ + bottom: 4%; + left: 4%; + position: absolute; + z-index: 2; } \ No newline at end of file diff --git a/index.html b/index.html index 947f85f..3bc2e41 100644 --- a/index.html +++ b/index.html @@ -15,37 +15,35 @@
+
+
+
-
- +
+
-
- -
- - -
+
-
+
diff --git a/index.js b/index.js index e3cfb70..b90e6eb 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,8 @@ var cntdrag = 1; let data_tabl = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; +let tocount = 10; + let words = [ "BANKA", "CHROBAK", @@ -157,29 +159,40 @@ function getEmptyIndex(element) { return [finalindex, idcko]; } -function showImages() { +function showImages(word) { + let tmp_tabl = Array.from(word) var images = []; var letters = []; let imageholder = $("#imageholder"); let letterholder = $("#letterholder"); - for (let i = 0 ; i < data_tabl.length; i++) { - let imagepath = prefix + "images/" + data_tabl[i] + ".png"; - let letterpath = prefix + "letters/" + data_tabl[i] + ".png"; - let audiopath = prefix + "audio/" + data_tabl[i] + ".ogg"; + + var now_count = tmp_tabl.length; + + while (now_count < tocount){ + tmp_tabl.push(getRandomElement(data_tabl)); + now_count++; + } + + umami.trackEvent("Round images", { type: 'roundimages', images: tmp_tabl }); + + for (let i = 0 ; i < tmp_tabl.length; i++) { + let imagepath = prefix + "images/" + tmp_tabl[i] + ".png"; + let letterpath = prefix + "letters/" + tmp_tabl[i] + ".png"; + let audiopath = prefix + "audio/" + tmp_tabl[i] + ".ogg"; images.push( - "
" + - "" + - "
-
+
-
+