Remove lat updated label and only keep latest commit id
This commit is contained in:
parent
e1b5f73c31
commit
97a6a4a94a
|
@ -109,7 +109,7 @@
|
|||
<div id="greeting"></div>
|
||||
<iframe id="cool-iframe" class="iframe"></iframe>
|
||||
|
||||
<div id="last-updated">Loading latest update…</div>
|
||||
<div id="lastest-commit">Loading latest update…</div>
|
||||
<div id="copyright"><i class="fa-regular fa-copyright"></i> 2025 <a class="hover-link" href="https://discord.gg/ire" target="_blank" rel="noopener noreferrer"><span class="copyrightname">Waves Services</span></a>. All Rights Reserved.</div>
|
||||
<div id="discord"><a class="hover-link" href="https://discord.gg/ire" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-discord"></i> Discord</div>
|
||||
<div id="github"><a class="hover-link" href="https://github.com/xojw/waves" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-github"></i> Github</div>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 =
|
||||
`<span class="last-updated"><i class="fa-regular fa-hammer"></i> Last updated ${u.ago}</span> ~ <a href="${commitUrl}" class="hover-link" target="_blank" rel="noopener noreferrer">${u.sha} (Github)</a>`;
|
||||
document.getElementById('lastest-commit').innerHTML =
|
||||
`<a href="${commitUrl}" class="hover-link" target="_blank" rel="noopener noreferrer"><i class="fa-solid fa-code-commit"></i> ${u.sha}</a>`;
|
||||
} catch {
|
||||
document.getElementById('last-update').textContent =
|
||||
'Failed to load last update';
|
||||
|
|
Loading…
Reference in New Issue
Block a user