added global font
This commit is contained in:
parent
4c2f91b3f8
commit
49b2e7abe0
@ -24,3 +24,9 @@ body
|
|||||||
width: 8vh;
|
width: 8vh;
|
||||||
height: 8vh;
|
height: 8vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*
|
||||||
|
{
|
||||||
|
font-family: monospace;
|
||||||
|
text-shadow: 1px 1px #4D2B09;
|
||||||
|
}
|
@ -6,11 +6,12 @@ let last_index = -1;
|
|||||||
function change_slideshow_img()
|
function change_slideshow_img()
|
||||||
{
|
{
|
||||||
let buffer = (imgs_index === undefined || imgs_index.length === 0) ? imgs_index_2 : imgs_index;
|
let buffer = (imgs_index === undefined || imgs_index.length === 0) ? imgs_index_2 : imgs_index;
|
||||||
let random_index;
|
let random_index = 5;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
random_index = Math.floor(Math.random() * buffer.length);
|
random_index = Math.floor(Math.random() * buffer.length);
|
||||||
|
console.log("A");
|
||||||
} while (buffer[random_index] == last_index);
|
} while (buffer[random_index] == last_index);
|
||||||
|
|
||||||
document.getElementById("slideshow").src = "http://109.123.243.163/fht/fabrika_imgs/downscaled/" + buffer[random_index] + ".jpg";
|
document.getElementById("slideshow").src = "http://109.123.243.163/fht/fabrika_imgs/downscaled/" + buffer[random_index] + ".jpg";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user