mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-29 01:49:05 +01:00
ultra color moe!!!
This commit is contained in:
parent
7a75de477f
commit
5df018e31e
1 changed files with 10 additions and 0 deletions
|
@ -1916,6 +1916,16 @@ if (/[?&]autoplay=/.test(location.search)) {
|
||||||
} else {
|
} else {
|
||||||
anchor.href = "/account-create"
|
anchor.href = "/account-create"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleColorSwap() {
|
||||||
|
const elements = document.querySelectorAll('body, header, nav, main, footer, div, p, h1, h2, h3, h4, h5, h6, span, a, img');
|
||||||
|
elements.forEach(element => {
|
||||||
|
const randomHue = Math.floor(Math.random() * 360); // Random hue between 0 and 360
|
||||||
|
const randomColor = `hsl(${randomHue}deg, 100%, 50%)`; // Convert hue to HSL color
|
||||||
|
element.style.color = randomColor;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
toggleColorSwap()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script id="video" type="application/json"><%- JSON.stringify(inv_vid) %></script><script id="comments" type="application/json"><%- JSON.stringify(inv.comments) %></script>
|
<script id="video" type="application/json"><%- JSON.stringify(inv_vid) %></script><script id="comments" type="application/json"><%- JSON.stringify(inv.comments) %></script>
|
||||||
|
|
Loading…
Reference in a new issue