diff --git a/res/global.css b/res/global.css index e677f72..21560a8 100644 --- a/res/global.css +++ b/res/global.css @@ -23,4 +23,10 @@ body border-color: #4D2B09; width: 8vh; height: 8vh; +} + +* +{ + font-family: monospace; + text-shadow: 1px 1px #4D2B09; } \ No newline at end of file diff --git a/res/index/script.js b/res/index/script.js index ab6e73c..0a19a4c 100644 --- a/res/index/script.js +++ b/res/index/script.js @@ -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";