small bug fixes

This commit is contained in:
2025-01-17 18:31:26 +01:00
parent fe0818ded9
commit 7d1301c342
3 changed files with 14 additions and 3 deletions
+2 -2
View File
@@ -33,8 +33,8 @@
#loadingText {
position: absolute;
bottom: 0%;
left: calc(50% - 40vw);
width: 80vw;
left: calc(50% - 45vw);
width: 90vw;
text-align: center;
font-size: 1.5rem;
word-break: break-word;
+12 -1
View File
@@ -32,7 +32,18 @@ let selectedTip = "undefined"
function newTip() {
selectedTip = tipsJson[randomIntFrom0(tipsJson.length)]
if (randomIntFrom0(1000) == 0) {
// If you snitch this easter egg code
// then I'll close the source and
// permanently remove the easter egg.
selectedTip = `You like kissing boys, don't you?<br>
<img src="/assets/boykisser_64x64.png"
style="aspect-ratio: 1 / 1; width: min-content; height: min-content;">`
}
else {
selectedTip = tipsJson[randomIntFrom0(tipsJson.length)]
}
debugPrint("new tip", selectedTip)
}