diff --git a/index.php b/index.php index 3a20ebe..05ee07a 100644 --- a/index.php +++ b/index.php @@ -17,8 +17,8 @@ $date = calculate_elapsed_years("2009-08-29");
- randomly picked image of a <?php echo $names[$number];?> -

Current image is a .

+ randomly picked image of a <?php echo $names[$number];?> +

Current image is a .

Images stolen from tinyfox.dev

@@ -39,7 +39,7 @@ $date = calculate_elapsed_years("2009-08-29"); width=50px height=50px src="/static/assets/icons/lastfm.svg" /> Steam ?> Youtube + title="Youtube" width=50px height=50px src3="/static/assets/icons/youtube.svg" />
diff --git a/static/assets/buttons/cutie.gif b/static/assets/buttons/cutie.gif new file mode 100644 index 0000000..f271daa Binary files /dev/null and b/static/assets/buttons/cutie.gif differ diff --git a/static/assets/buttons/juli.gif b/static/assets/buttons/juli.gif new file mode 100644 index 0000000..4ff0364 Binary files /dev/null and b/static/assets/buttons/juli.gif differ diff --git a/static/assets/buttons/neofox.gif b/static/assets/buttons/neofox.gif new file mode 100644 index 0000000..ec9268e Binary files /dev/null and b/static/assets/buttons/neofox.gif differ diff --git a/static/commons/footer.php b/static/commons/footer.php index 1c92f89..b19fd2d 100644 --- a/static/commons/footer.php +++ b/static/commons/footer.php @@ -1,5 +1,3 @@ - - diff --git a/static/script/lazyloader.js b/static/script/lazyloader.js new file mode 100644 index 0000000..9b9a688 --- /dev/null +++ b/static/script/lazyloader.js @@ -0,0 +1,9 @@ +function getRandomInt(max) { + return Math.floor(Math.random() * max); +} + +function load_animal() { + const animals = ["https://api.tinyfox.dev/img?animal=caracal","https://api.tinyfox.dev/img?animal=chee","https://api.tinyfox.dev/img?animal=yote","https://api.tinyfox.dev/img?animal=dook","https://api.tinyfox.dev/img?animal=fox","https://api.tinyfox.dev/img?animal=mane","https://api.tinyfox.dev/img?animal=ott","https://api.tinyfox.dev/img?animal=marten","https://api.tinyfox.dev/img?animal=wah","https://api.tinyfox.dev/img?animal=serval","https://api.tinyfox.dev/img?animal=woof","https://api.tinyfox.dev/img?animal=yeen"]; + var animal_index = getRandomInt(animals.length-1); + document.getElementById("animal_img").src = animals[animal_index]; +} \ No newline at end of file diff --git a/static/style/style.css b/static/style/style.css index 62a0a92..5ab57e0 100644 --- a/static/style/style.css +++ b/static/style/style.css @@ -47,7 +47,7 @@ body { margin-top: 200px; transform: translateX(-50%); text-align: center; - max-width: 80%; + max-width: 80vh; margin-top: 80%; }