fix some stuff
This commit is contained in:
parent
67c7d98ebf
commit
e3f490aabc
BIN
assets/refresh.png
Normal file
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
BIN
favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
19
index.css
19
index.css
@ -39,7 +39,14 @@ body {
|
|||||||
width: 64px;
|
width: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
background-image: url("assets/verify.png");
|
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 {
|
.status {
|
||||||
@ -85,6 +92,9 @@ td {
|
|||||||
left: 4%;
|
left: 4%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
width: 25%;
|
||||||
|
height: 50%;
|
||||||
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lettervec{
|
.lettervec{
|
||||||
@ -99,6 +109,11 @@ td {
|
|||||||
.imagevec{
|
.imagevec{
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
object-fit: scale-down;
|
|
||||||
background-color:white;
|
background-color:white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#currentvzor{
|
||||||
|
object-fit: contain;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
@ -36,11 +36,14 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
<td>
|
||||||
<div id="trashcan" class="fixbgimage activepart" ondrop="droptrash(event)" ondragover="allowDrop(event)"></div>
|
<div id="trashcan" class="fixbgimage activepart" ondrop="droptrash(event)" ondragover="allowDrop(event)"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div id="refresh" class="fixbgimage activepart"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
7
index.js
7
index.js
@ -148,6 +148,11 @@ function getRandomElement(array){
|
|||||||
return array[getRandomInt(0, array.length)];
|
return array[getRandomInt(0, array.length)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function refresh(){
|
||||||
|
cleanup();
|
||||||
|
generatePair();
|
||||||
|
}
|
||||||
function randomize(inarray){
|
function randomize(inarray){
|
||||||
var tmp = [];
|
var tmp = [];
|
||||||
const randomly = () => Math.random() - 0.5;
|
const randomly = () => Math.random() - 0.5;
|
||||||
@ -340,6 +345,8 @@ $(function() {
|
|||||||
$("#verify").on("click", checkAnswers);
|
$("#verify").on("click", checkAnswers);
|
||||||
|
|
||||||
$("#trashcan").on("click", cleanup);
|
$("#trashcan").on("click", cleanup);
|
||||||
|
|
||||||
|
$("#refresh").on("click", refresh);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user