shii.moe

Source for `shii.moe' website.
git clone git://git.knutsen.co/shii.moe
Log | Files | Refs

commit 832096e63327cd4e2b5b0881674e77ffc12cae2b
parent a7a81618432c3402c61712a7cf19352b4ba3c010
Author: knutsen <samuel@knutsen.co>
Date:   Sat,  8 May 2021 22:21:12 +0100

Use absolute paths for mascots.

Diffstat:
Mbooks.html | 4++--
Mimage.js | 2+-
Mindex.html | 4++--
Mmusic.html | 4++--
Mnorsk.html | 4++--
Mschool.html | 4++--
6 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/books.html b/books.html @@ -4,7 +4,7 @@ <head> <title>Shimo!!</title> <link rel='stylesheet' type='text/css' href="style.css"/> - <link rel='icon' type='image/png' href="mascots/1.png"> + <link rel='icon' type='image/png' href="/mascots/1-square.png"> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> @@ -26,7 +26,7 @@ </div> - <img src="mascots/1.png" id="mascot"></img> + <img src="/mascots/1.png" id="mascot"></img> <script src="image.js"></script> </body> </html> diff --git a/image.js b/image.js @@ -2,7 +2,7 @@ const mascot = document.getElementById("mascot"); const favicon = document.querySelector("link[rel~='icon']"); const randomYui = () => { - const stem = "mascots/" + Math.floor(1 + Math.random()*14); + const stem = "/mascots/" + Math.floor(1 + Math.random()*14); mascot.setAttribute("src", stem + ".png"); favicon.setAttribute("href", stem + "-square.png"); } diff --git a/index.html b/index.html @@ -4,7 +4,7 @@ <head> <title>Shimo!!</title> <link rel='stylesheet' type='text/css' href="style.css"> - <link rel='icon' type='image/png' href="mascots/1.png"> + <link rel='icon' type='image/png' href="/mascots/1-square.png"> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> @@ -43,7 +43,7 @@ </ol> </div> - <img src="mascots/1.png" id="mascot"></img> + <img src="/mascots/1.png" id="mascot"></img> <script src="image.js"></script> </body> </html> diff --git a/music.html b/music.html @@ -4,7 +4,7 @@ <head> <title>Musik!!</title> <link rel='stylesheet' type='text/css' href="style.css"/> - <link rel='icon' type='image/png' href="mascots/1.png"> + <link rel='icon' type='image/png' href="/mascots/1-square.png"> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> @@ -51,7 +51,7 @@ </div> - <img src="mascots/1.png" id="mascot"></img> + <img src="/mascots/1.png" id="mascot"></img> <script src="image.js"></script> </body> </html> diff --git a/norsk.html b/norsk.html @@ -4,7 +4,7 @@ <head> <title>Shimo!!</title> <link rel='stylesheet' type='text/css' href="style.css"/> - <link rel='icon' type='image/png' href="mascots/1.png"> + <link rel='icon' type='image/png' href="/mascots/1-square.png"> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> @@ -27,7 +27,7 @@ </div> - <img src="mascots/1.png" id="mascot"></img> + <img src="/mascots/1.png" id="mascot"></img> <script src="image.js"></script> </body> diff --git a/school.html b/school.html @@ -4,7 +4,7 @@ <head> <title>Shimo!!</title> <link rel='stylesheet' type='text/css' href="style.css"/> - <link rel='icon' type='image/png' href="mascots/1.png"> + <link rel='icon' type='image/png' href="/mascots/1-square.png"> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> @@ -26,7 +26,7 @@ </div> - <img src="mascots/1.png" id="mascot"></img> + <img src="/mascots/1.png" id="mascot"></img> <script src="image.js"></script> </body> </html>