From 97a6a4a94a7eb8be7e65bdb060c02313259e1c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=93=8D=BC?= <143974574+xojw@users.noreply.github.com> Date: Sun, 25 May 2025 12:27:18 -0500 Subject: [PATCH] Remove lat updated label and only keep latest commit id --- public/$.html | 2 +- public/assets/css/$.css | 10 +--------- public/assets/js/last-updated.js | 4 ++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/public/$.html b/public/$.html index 45b9da27..bf245e7a 100644 --- a/public/$.html +++ b/public/$.html @@ -109,7 +109,7 @@
-
Loading latest update…
+
Loading latest update…
Discord
Github
diff --git a/public/assets/css/$.css b/public/assets/css/$.css index 8becfb1e..cf4ad1e0 100644 --- a/public/assets/css/$.css +++ b/public/assets/css/$.css @@ -581,7 +581,7 @@ body { animation: fadeOutPrompt 0.3s ease-in-out forwards; } -#last-updated { +#lastest-commit { position: fixed; bottom: 10px; left: 10px; @@ -597,14 +597,6 @@ body { font-size: 14px; } -.last-updated { - transition: all 0.3s ease; -} - -.last-updated:hover { - color: #ffffff; -} - #copyright { position: fixed; bottom: 10px; diff --git a/public/assets/js/last-updated.js b/public/assets/js/last-updated.js index c76988cb..71d9135a 100644 --- a/public/assets/js/last-updated.js +++ b/public/assets/js/last-updated.js @@ -4,8 +4,8 @@ const { updates } = await res.json(); const u = updates[0]; const commitUrl = `https://github.com/xojw/waves/commit/${u.sha}`; - document.getElementById('last-updated').innerHTML = - ` Last updated ${u.ago} ~ ${u.sha} (Github)`; + document.getElementById('lastest-commit').innerHTML = + ` ${u.sha}`; } catch { document.getElementById('last-update').textContent = 'Failed to load last update';