Merge branch 'main' of codeberg.org:Bingus_Violet/Violets-Purgatory
This commit is contained in:
commit
111a0f259d
2 changed files with 0 additions and 16 deletions
15
index.js
15
index.js
|
@ -56,21 +56,6 @@ function pageUpdate() {
|
||||||
|
|
||||||
addedHTML = ""
|
addedHTML = ""
|
||||||
|
|
||||||
var currentTime = new Date(Date.now())
|
|
||||||
var currentHour = currentTime.getHours()
|
|
||||||
|
|
||||||
if (currentHour >= 8 && currentHour <= 16 && !(currentTime.getDay() == 6 || currentTime.getDay() == 7)) {
|
|
||||||
addedHTML = `<span style="color: yellow">busy</span>`
|
|
||||||
} else if (currentHour <= 9 && currentHour > 0) {
|
|
||||||
addedHTML = `<span style="color: rgb(200, 150, 255)">eeping</span>`
|
|
||||||
} else {
|
|
||||||
addedHTML = `<span style="color: limegreen">active?</span>`
|
|
||||||
}
|
|
||||||
|
|
||||||
html = html.replace("{ACTIVE_STATUS}", addedHTML)
|
|
||||||
|
|
||||||
addedHTML = ""
|
|
||||||
|
|
||||||
if (lanyardData && lanyardData.activities.length > 0) {
|
if (lanyardData && lanyardData.activities.length > 0) {
|
||||||
if (lanyardData.activities[0].type == 4) {
|
if (lanyardData.activities[0].type == 4) {
|
||||||
addedHTML += `<hr><p><em><span style="color: lightgray">"${lanyardData.activities[0].state}"</span> - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()}</em></p>`
|
addedHTML += `<hr><p><em><span style="color: lightgray">"${lanyardData.activities[0].state}"</span> - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()}</em></p>`
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
<p class="chip"><a href="./socials">Socials</a></p>
|
<p class="chip"><a href="./socials">Socials</a></p>
|
||||||
<p class="chip"><a href="./pronouns">Pronouns</a></p>
|
<p class="chip"><a href="./pronouns">Pronouns</a></p>
|
||||||
{LANYARD_QUOTE}
|
{LANYARD_QUOTE}
|
||||||
<p>Status: Probably {ACTIVE_STATUS}...</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p><em>The world's worst developer</em></p>
|
<p><em>The world's worst developer</em></p>
|
||||||
|
|
Loading…
Reference in a new issue