diff --git a/assets/images/A.png b/assets/images/A.png index e388b21..358c644 100644 Binary files a/assets/images/A.png and b/assets/images/A.png differ diff --git a/assets/images/B.png b/assets/images/B.png index 531c65c..5f54339 100644 Binary files a/assets/images/B.png and b/assets/images/B.png differ diff --git a/assets/images/C.png b/assets/images/C.png index 7b2eec1..835b982 100644 Binary files a/assets/images/C.png and b/assets/images/C.png differ diff --git a/assets/images/CH.png b/assets/images/CH.png index 24d1f69..7938204 100644 Binary files a/assets/images/CH.png and b/assets/images/CH.png differ diff --git a/assets/images/D.png b/assets/images/D.png index dfdca8f..62e33ce 100644 Binary files a/assets/images/D.png and b/assets/images/D.png differ diff --git a/assets/images/E.png b/assets/images/E.png index 400760c..570a905 100644 Binary files a/assets/images/E.png and b/assets/images/E.png differ diff --git a/assets/images/F.png b/assets/images/F.png index 1512b20..01b37e3 100644 Binary files a/assets/images/F.png and b/assets/images/F.png differ diff --git a/assets/images/G.png b/assets/images/G.png index 1c53c87..cdbe72b 100644 Binary files a/assets/images/G.png and b/assets/images/G.png differ diff --git a/assets/images/H.png b/assets/images/H.png index 8fe464b..5509ff4 100644 Binary files a/assets/images/H.png and b/assets/images/H.png differ diff --git a/assets/images/I.png b/assets/images/I.png index 257d112..b171217 100644 Binary files a/assets/images/I.png and b/assets/images/I.png differ diff --git a/assets/images/J.png b/assets/images/J.png index 499dd52..ef02e19 100644 Binary files a/assets/images/J.png and b/assets/images/J.png differ diff --git a/assets/images/K.png b/assets/images/K.png index 5497d3c..797cf4f 100644 Binary files a/assets/images/K.png and b/assets/images/K.png differ diff --git a/assets/images/L.png b/assets/images/L.png index 178888a..974270f 100644 Binary files a/assets/images/L.png and b/assets/images/L.png differ diff --git a/assets/images/M.png b/assets/images/M.png index ed396fd..0c0aa14 100644 Binary files a/assets/images/M.png and b/assets/images/M.png differ diff --git a/assets/images/N.png b/assets/images/N.png index 0b7eeed..3f6d778 100644 Binary files a/assets/images/N.png and b/assets/images/N.png differ diff --git a/assets/images/O.png b/assets/images/O.png index 39ff368..c322412 100644 Binary files a/assets/images/O.png and b/assets/images/O.png differ diff --git a/assets/images/P.png b/assets/images/P.png index 273f003..7e1c89f 100644 Binary files a/assets/images/P.png and b/assets/images/P.png differ diff --git a/assets/images/Q.png b/assets/images/Q.png deleted file mode 100644 index 0e980b5..0000000 Binary files a/assets/images/Q.png and /dev/null differ diff --git a/assets/images/R.png b/assets/images/R.png index 89459fd..b0e9b47 100644 Binary files a/assets/images/R.png and b/assets/images/R.png differ diff --git a/assets/images/S.png b/assets/images/S.png index b2116c1..2580a95 100644 Binary files a/assets/images/S.png and b/assets/images/S.png differ diff --git a/assets/images/T.png b/assets/images/T.png index c119ad1..197438c 100644 Binary files a/assets/images/T.png and b/assets/images/T.png differ diff --git a/assets/images/U.png b/assets/images/U.png index 28099e6..fdea4b0 100644 Binary files a/assets/images/U.png and b/assets/images/U.png differ diff --git a/assets/images/V.png b/assets/images/V.png index 6960a52..a464e21 100644 Binary files a/assets/images/V.png and b/assets/images/V.png differ diff --git a/assets/images/W.png b/assets/images/W.png deleted file mode 100644 index 6108f2c..0000000 Binary files a/assets/images/W.png and /dev/null differ diff --git a/assets/images/X.png b/assets/images/X.png deleted file mode 100644 index ec8cbb8..0000000 Binary files a/assets/images/X.png and /dev/null differ diff --git a/assets/images/Y.png b/assets/images/Y.png index 03d38e7..cae0506 100644 Binary files a/assets/images/Y.png and b/assets/images/Y.png differ diff --git a/assets/images/Z.png b/assets/images/Z.png index 557ddff..652b25d 100644 Binary files a/assets/images/Z.png and b/assets/images/Z.png differ diff --git a/assets/images/gen.sh b/assets/images/gen.sh deleted file mode 100644 index 89478bd..0000000 --- a/assets/images/gen.sh +++ /dev/null @@ -1,44 +0,0 @@ -convert -size 32x32 xc:rgb\(0,0,0\) A.png -convert -size 32x32 xc:rgb\(5,209,116\) Á.png -convert -size 32x32 xc:rgb\(11,162,232\) Ä.png -convert -size 32x32 xc:rgb\(17,116,92\) B.png -convert -size 32x32 xc:rgb\(23,69,208\) C.png -convert -size 32x32 xc:rgb\(29,23,68\) Č.png -convert -size 32x32 xc:rgb\(34,232,184\) D.png -convert -size 32x32 xc:rgb\(40,186,44\) Ď.png -convert -size 32x32 xc:rgb\(46,139,160\) E.png -convert -size 32x32 xc:rgb\(52,93,20\) É.png -convert -size 32x32 xc:rgb\(58,46,136\) F.png -convert -size 32x32 xc:rgb\(63,255,252\) G.png -convert -size 32x32 xc:rgb\(69,209,112\) H.png -convert -size 32x32 xc:rgb\(75,162,228\) CH.png -convert -size 32x32 xc:rgb\(81,116,88\) I.png -convert -size 32x32 xc:rgb\(87,69,204\) Í.png -convert -size 32x32 xc:rgb\(93,23,64\) J.png -convert -size 32x32 xc:rgb\(98,232,180\) K.png -convert -size 32x32 xc:rgb\(104,186,40\) L.png -convert -size 32x32 xc:rgb\(110,139,156\) Ĺ.png -convert -size 32x32 xc:rgb\(116,93,16\) Ľ.png -convert -size 32x32 xc:rgb\(122,46,132\) M.png -convert -size 32x32 xc:rgb\(127,255,248\) N.png -convert -size 32x32 xc:rgb\(133,209,108\) Ň.png -convert -size 32x32 xc:rgb\(139,162,224\) O.png -convert -size 32x32 xc:rgb\(145,116,84\) Ó.png -convert -size 32x32 xc:rgb\(151,69,200\) Ô.png -convert -size 32x32 xc:rgb\(157,23,60\) P.png -convert -size 32x32 xc:rgb\(162,232,176\) Q.png -convert -size 32x32 xc:rgb\(168,186,36\) R.png -convert -size 32x32 xc:rgb\(174,139,152\) Ŕ.png -convert -size 32x32 xc:rgb\(180,93,12\) S.png -convert -size 32x32 xc:rgb\(186,46,128\) Š.png -convert -size 32x32 xc:rgb\(191,255,244\) T.png -convert -size 32x32 xc:rgb\(197,209,104\) Ť.png -convert -size 32x32 xc:rgb\(203,162,220\) U.png -convert -size 32x32 xc:rgb\(209,116,80\) Ú.png -convert -size 32x32 xc:rgb\(215,69,196\) V.png -convert -size 32x32 xc:rgb\(221,23,56\) W.png -convert -size 32x32 xc:rgb\(226,232,172\) X.png -convert -size 32x32 xc:rgb\(232,186,32\) Y.png -convert -size 32x32 xc:rgb\(238,139,148\) Ý.png -convert -size 32x32 xc:rgb\(244,93,8\) Z.png -convert -size 32x32 xc:rgb\(250,46,124\) Ž.png diff --git a/assets/images/imagegen.py b/assets/images/imagegen.py deleted file mode 100644 index cf4ae24..0000000 --- a/assets/images/imagegen.py +++ /dev/null @@ -1,17 +0,0 @@ -def getRGBfromI(RGBint): - blue = RGBint & 255 - green = (RGBint >> 8) & 255 - red = (RGBint >> 16) & 255 - return red, green, blue - -mx = pow(2,24)-1 # i.e. 16777215 - -x = 0 -alphabet = ["A", "Á", "Ä", "B", "C", "Č", "D", "Ď", "E", "É", "F", "G", "H", "CH", "I", "Í", "J", "K", "L", "Ĺ", "Ľ", "M", "N", "Ň", "O", "Ó", "Ô", "P", "Q", "R", "Ŕ", "S", "Š", "T", "Ť", "U", "Ú", "V", "W", "X", "Y", "Ý", "Z", "Ž"] -interval = int(mx/(len(alphabet))) -with open("gen.sh", "w") as f: - for i in range(0, len(alphabet)): - red, green, blue = getRGBfromI(i*interval) - letter = alphabet[x] - f.write("convert -size 32x32 xc:rgb\(" + str(red) + "," + str(green) + "," + str(blue) + "\) " + letter +".png\n") - x = x + 1 diff --git a/assets/images/Á.png b/assets/images/Á.png index 22a812d..34f77ab 100644 Binary files a/assets/images/Á.png and b/assets/images/Á.png differ diff --git a/assets/images/Ä.png b/assets/images/Ä.png deleted file mode 100644 index de35def..0000000 Binary files a/assets/images/Ä.png and /dev/null differ diff --git a/assets/images/É.png b/assets/images/É.png index e59186a..972eea6 100644 Binary files a/assets/images/É.png and b/assets/images/É.png differ diff --git a/assets/images/Í.png b/assets/images/Í.png index ef3cce3..d6ee125 100644 Binary files a/assets/images/Í.png and b/assets/images/Í.png differ diff --git a/assets/images/Ó.png b/assets/images/Ó.png index 7ec2d02..0e49521 100644 Binary files a/assets/images/Ó.png and b/assets/images/Ó.png differ diff --git a/assets/images/Ô.png b/assets/images/Ô.png index eb6f671..ab2a1ce 100644 Binary files a/assets/images/Ô.png and b/assets/images/Ô.png differ diff --git a/assets/images/Ú.png b/assets/images/Ú.png index a57ca95..9cb248a 100644 Binary files a/assets/images/Ú.png and b/assets/images/Ú.png differ diff --git a/assets/images/Ý.png b/assets/images/Ý.png index 1fd5e16..df32db8 100644 Binary files a/assets/images/Ý.png and b/assets/images/Ý.png differ diff --git a/assets/images/Č.png b/assets/images/Č.png index 7859ae4..5194a5b 100644 Binary files a/assets/images/Č.png and b/assets/images/Č.png differ diff --git a/assets/images/Ď.png b/assets/images/Ď.png index cadd67c..53519b5 100644 Binary files a/assets/images/Ď.png and b/assets/images/Ď.png differ diff --git a/assets/images/Ĺ.png b/assets/images/Ĺ.png index 76735fe..3b21df2 100644 Binary files a/assets/images/Ĺ.png and b/assets/images/Ĺ.png differ diff --git a/assets/images/Ľ.png b/assets/images/Ľ.png index 06ce775..6d448f5 100644 Binary files a/assets/images/Ľ.png and b/assets/images/Ľ.png differ diff --git a/assets/images/Ň.png b/assets/images/Ň.png index e6278e3..27a4e58 100644 Binary files a/assets/images/Ň.png and b/assets/images/Ň.png differ diff --git a/assets/images/Ŕ.png b/assets/images/Ŕ.png index 7788115..3a44d7f 100644 Binary files a/assets/images/Ŕ.png and b/assets/images/Ŕ.png differ diff --git a/assets/images/Š.png b/assets/images/Š.png index c3c7646..57f24a0 100644 Binary files a/assets/images/Š.png and b/assets/images/Š.png differ diff --git a/assets/images/Ť.png b/assets/images/Ť.png index 3430197..20a5f80 100644 Binary files a/assets/images/Ť.png and b/assets/images/Ť.png differ diff --git a/assets/images/Ž.png b/assets/images/Ž.png index f746c26..bdd282f 100644 Binary files a/assets/images/Ž.png and b/assets/images/Ž.png differ diff --git a/index.css b/index.css index b6acd56..ec7224a 100644 --- a/index.css +++ b/index.css @@ -99,4 +99,6 @@ td { .imagevec{ width: 64px; height: 64px; + object-fit: scale-down; + background-color:white; } \ No newline at end of file diff --git a/index.js b/index.js index cb8a51a..93d1ec1 100644 --- a/index.js +++ b/index.js @@ -1,18 +1,32 @@ var ranid = 1; 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", "Ž"]; +//missing Q, CH, DZ, DŽ, Ä, W, X +let data_tabl = ["A", "Á", "B", "C", "Č", "D", "Ď", "E", "É", "F", "G", "H", "I", "Í", "J", "K", "L", "Ĺ", "Ľ", "M", "N", "Ň", "O", "Ó", "Ô", "P", "R", "Ŕ", "S", "Š", "T", "Ť", "U", "Ú", "V", "Y", "Ý", "Z", "Ž"]; let tocount = 10; let words = [ - "BANKA", - "CHROBAK", - "CIZMY", - "MEC", - "STENA", - "TEHLA" + "DOM", + "STROM", + "ÚSTA", + "NOHA", + "MEČ", + "ZAJAC", + "MAČKA", + "KOMÍN", + "VÁZA", + "ŠESŤ", + "KMEŇ", + "CITRÓN", + "PRST", + "MYŠ", + "HAD", + "HUSLE", + "ŽABA", + "FÉN", + "GUMA", + "BÝK" ]; function makeSpaceWord(word){