fix some stuff

This commit is contained in:
Bruno Rybársky 2023-04-02 17:37:47 +02:00
parent 67c7d98ebf
commit e3f490aabc
No known key found for this signature in database
GPG Key ID: DFE2C061EF985CD4
7 changed files with 29 additions and 4 deletions

BIN
assets/refresh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 469 B

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

@ -39,7 +39,14 @@ body {
width: 64px;
height: 64px;
background-image: url("assets/verify.png");
background-color: darksalmon;
background-color: blue;
}
#refresh {
width: 64px;
height: 64px;
background-image: url("assets/refresh.png");
background-color: darkgreen;
}
.status {
@ -85,6 +92,9 @@ td {
left: 4%;
position: absolute;
z-index: 2;
width: 25%;
height: 50%;
object-fit: contain;
}
.lettervec{
@ -99,6 +109,11 @@ td {
.imagevec{
width: 64px;
height: 64px;
object-fit: scale-down;
background-color:white;
}
#currentvzor{
object-fit: contain;
width: 100%;
height: 100%;
}

@ -36,11 +36,14 @@
</div>
</td>
</tr>
<tr>
<td>
<div id="trashcan" class="fixbgimage activepart" ondrop="droptrash(event)" ondragover="allowDrop(event)"></div>
</div>
</td>
<td>
<div id="refresh" class="fixbgimage activepart"></div>
</div>
</td>
</tr>

@ -148,6 +148,11 @@ function getRandomElement(array){
return array[getRandomInt(0, array.length)];
}
function refresh(){
cleanup();
generatePair();
}
function randomize(inarray){
var tmp = [];
const randomly = () => Math.random() - 0.5;
@ -340,6 +345,8 @@ $(function() {
$("#verify").on("click", checkAnswers);
$("#trashcan").on("click", cleanup);
$("#refresh").on("click", refresh);
});