From 49b2e7abe0eb383a531c3260bdec62c86cab610c Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 7 Jan 2024 15:58:04 +0100 Subject: [PATCH] added global font --- res/global.css | 6 ++++++ res/index/script.js | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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";