added global font

This commit is contained in:
Václav Šmejkal 2024-01-07 15:58:04 +01:00
parent 4c2f91b3f8
commit 49b2e7abe0
2 changed files with 8 additions and 1 deletions

View File

@ -23,4 +23,10 @@ body
border-color: #4D2B09;
width: 8vh;
height: 8vh;
}
*
{
font-family: monospace;
text-shadow: 1px 1px #4D2B09;
}

View File

@ -6,11 +6,12 @@ let last_index = -1;
function change_slideshow_img()
{
let buffer = (imgs_index === undefined || imgs_index.length === 0) ? imgs_index_2 : imgs_index;
let random_index;
let random_index = 5;
do
{
random_index = Math.floor(Math.random() * buffer.length);
console.log("A");
} while (buffer[random_index] == last_index);
document.getElementById("slideshow").src = "http://109.123.243.163/fht/fabrika_imgs/downscaled/" + buffer[random_index] + ".jpg";