From a1cb599978f9ad5a461d2a87ff8e82b3d1caf8c3 Mon Sep 17 00:00:00 2001 From: Neko Date: Mon, 11 Sep 2023 11:01:26 +0200 Subject: [PATCH] added simple JS to randomise colour on page open --- _data/nav.yml | 4 ++-- _includes/foot.html | 1 + _layouts/page-portal.html | 1 + assets/js/color.js | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 _includes/foot.html create mode 100644 assets/js/color.js diff --git a/_data/nav.yml b/_data/nav.yml index c2a3747..8fd8c15 100644 --- a/_data/nav.yml +++ b/_data/nav.yml @@ -2,7 +2,7 @@ list: - title: "LVS" url: http://service.bfi-kaernten.at/LVS/login.aspx img: "/assets/images/SCHDP001.PNG" - - title: "Webmail" + - title: "Mail" url: https://outlook.office.com/ img: "/assets/images/PROGM023.PNG" - title: "Hedgedoc" @@ -11,7 +11,7 @@ list: - title: "Wiki" url: https://wiki.itlabs.at/ img: "/assets/images/WINTU008.PNG" - - title: "Documents" + - title: "Dokumente" url: https://data.koneko.at/s/LyrGDqjRYKnEfXd img: "/assets/images/WINFI001.PNG" - title: "Abgaben" diff --git a/_includes/foot.html b/_includes/foot.html new file mode 100644 index 0000000..2435499 --- /dev/null +++ b/_includes/foot.html @@ -0,0 +1 @@ + diff --git a/_layouts/page-portal.html b/_layouts/page-portal.html index afa5890..d0d8a85 100644 --- a/_layouts/page-portal.html +++ b/_layouts/page-portal.html @@ -12,5 +12,6 @@ {% include footer.html %} + {% include foot.html %} diff --git a/assets/js/color.js b/assets/js/color.js new file mode 100644 index 0000000..f4b7f44 --- /dev/null +++ b/assets/js/color.js @@ -0,0 +1 @@ +document.getElementsByClassName('screen-content')[0].style.filter = "sepia(94%) hue-rotate("+Math.floor(Math.random()*360)+"deg) saturate(7) brightness(100%)" \ No newline at end of file