added simple JS to randomise colour on page open

This commit is contained in:
Neko 2023-09-11 11:01:26 +02:00
parent a119b7e847
commit a1cb599978
4 changed files with 5 additions and 2 deletions

View File

@ -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"

1
_includes/foot.html Normal file
View File

@ -0,0 +1 @@
<script type="text/javascript" src="{{site.baseurl}}/assets/js/color.js"></script>

View File

@ -12,5 +12,6 @@
{% include footer.html %}
</div>
</div>
{% include foot.html %}
</body>
</html>

1
assets/js/color.js Normal file
View File

@ -0,0 +1 @@
document.getElementsByClassName('screen-content')[0].style.filter = "sepia(94%) hue-rotate("+Math.floor(Math.random()*360)+"deg) saturate(7) brightness(100%)"