From 93939ea5de184df144f866f81facd04f2d6adcaa Mon Sep 17 00:00:00 2001 From: Max Value Date: Mon, 7 Apr 2025 13:22:32 +0100 Subject: [PATCH] Centered shout text fix ~ ajusted stroke on shout star --- static/assets/star5.svg | 2 +- templates/gfx.html | 32 +++++++++++++++----------------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/static/assets/star5.svg b/static/assets/star5.svg index 7ad77ec..2fac3b0 100644 --- a/static/assets/star5.svg +++ b/static/assets/star5.svg @@ -49,7 +49,7 @@ img { - width: 40vh; - height: 40vh; + width: 45vh; + height: 45vh; padding: 0; animation: spinOffset 10s linear 0s infinite; } #shout { position: absolute; - top: -1em; width: 100vw; + top: 0; perspective: 400px; animation: spinTextOffset 10s linear 0s infinite; rotate: 0.025turn; - font-size: 6em; + font-size: 7em; text-align: center; } #currentPrice { @@ -542,7 +542,7 @@ circle {
-

SHOUT TEXT

+

SHOUT TEXT

@@ -645,6 +645,7 @@ const remaining = document.getElementById("unitsLeft"); const origional = document.getElementById("origionalPrice"); const topTextElement = document.getElementById("topText"); const bottomTextElement = document.getElementById("bottomText"); +const shout = document.getElementById("shout"); const marqueeContainer = document.getElementById("marquee"); @@ -800,7 +801,7 @@ function update() { } // Shout - document.getElementById("shout").innerHTML = data.shout; + shout.innerHTML = data.shout; let current = Math.round((Date.now() + data['timer_offset']) / 1000); var time = data[`end_timer_shout`] - current; if (time > 0) { @@ -848,9 +849,6 @@ function update() { price = Math.round(price * 100) / 100; } - console.log(item.currency); - console.log(item.prefix); - let priceString; let ezString; if (item.prefix) {priceString = `${item.currency}${price}`} -- 2.39.2