Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions html/analyze.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ <h1 class="topMargin2">Level Data</h1>
let colorList = Object.keys(res.colors)

let portals = res.portals.split(", ").map(x => x.split(" "))
let coins = res.coins.split(", ").map(x => x.split(" "))

function commafy(num) { return (+num || 0).toString().replace(/(\d)(?=(\d\d\d)+$)/g, "$1,") }

Expand Down Expand Up @@ -196,6 +197,14 @@ <h1 class="topMargin2">Level Data</h1>
})
}

coins.forEach(x => {
if (!x || x[0] == "") {
$('#coinText').remove()
$('#coins').remove()
}
else $('#coins').append(`<div class="inline coinDiv"><img height="40%" src='../assets/${res.coinsVerified ? "silvercoin" : "browncoin"}.png'><h3>${x[1]}</h3></div>`)
})

triggerList.forEach(x => {
if (x == "total") $('#triggerText').text(`Triggers (${commafy(res.triggers[x])})`)
else $('#triggers').append(`<div class="inline triggerDiv"><img height="50%" src='../assets/objects/triggers/${x}.png'><h3 style="padding-top: 7%">x${commafy(res.triggers[x])}</h3></div>`)
Expand Down
8 changes: 7 additions & 1 deletion html/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ <h1 class="smaller noSelect">No active <span id="noLevel">daily</span> level!</h
})
}

let creditsButtonTitles = {
github: "GitHub",
twitch: "Twitch",
demonButton: "Pointercrate",
ulButton: "Updated Leaderboard"
}

Fetch(`./api/credits`).then(async res => {

Expand All @@ -149,7 +155,7 @@ <h2 style="margin-bottom: 1.5%; margin-top: 1.5%" class="gdButton biggerShadow">

<a target=_blank href="${x.youtube[0]}" title="YouTube"><img src="../assets/${x.youtube[1]}.png" width="11%" class="gdButton"></a>
<a target=_blank href="${x.twitter[0]}" title="Twitter"><img src="../assets/${x.twitter[1]}.png" width="11%" class="sideSpace gdButton"></a>
<a target=_blank href="${x.github[0]}" title="GitHub"><img src="../assets/${x.github[1]}.png" width="11%" class="sideSpace gdButton"></a>
<a target=_blank href="${x.github[0]}" title="${creditsButtonTitles[x.github[1]]}"><img src="../assets/${x.github[1]}.png" width="11%" class="sideSpace gdButton"></a>
<br>
</div>
<img class="gdButton" src="../assets/arrow-right.png" style="position: absolute; top: 45%; left: 75%; width: 4.5%" tabindex="0" onclick="page += 1; loadCredits()">
Expand Down
12 changes: 6 additions & 6 deletions misc/credits.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

{
"header": "Demon List",
"name": "stadust",
"name": "Patrick",
"ign": "stardust1971",
"youtube": ["https://youtube.com/user/stardust19710", "youtube"],
"twitter": ["https://twitter.com/stadust1971", "twitter"],
Expand All @@ -38,8 +38,8 @@
"header": "API Help",
"name": "SMJS",
"ign": "SMJSGaming",
"youtube": ["https://youtube.com/channel/UCwEsWDs9kGN2vvoiNTJKdaQ", "youtube"],
"twitter": ["https://twitter.com/SMJS90708001", "twitter"],
"youtube": ["https://www.youtube.com/c/SMJSProductions", "youtube"],
"twitter": ["https://twitter.com/SMJSGaming", "twitter"],
"github": ["https://github.com/SMJSGaming", "github"]
},

Expand All @@ -54,10 +54,10 @@

{
"header": "Level Analyzing Help",
"name": "Alten",
"name": "Naoei",
"youtube": ["https://youtube.com/channel/UC9M8hLqh2yZIPSDvpyL7o8g", "youtube"],
"twitter": ["https://twitter.com/altenhh", "twitter"],
"github": ["https://github.com/Altenhh", "github"]
"twitter": ["https://twitter.com/___Laica", "twitter"],
"github": ["https://github.com/naoei", "github"]
},

{
Expand Down