A bit of an overhaul

- Built in the MCW
- Updated some links to direct to awexxx.xyz
- Changed around the CSS
This commit is contained in:
awex
2021-06-02 11:25:29 -04:00
parent bf36aed8c6
commit 3627d11fc9
9 changed files with 382 additions and 247 deletions
+3 -5
View File
@@ -3,11 +3,10 @@
// Dvlpr. Awexx //
////////////////////
const avatarURL = 'https://minotar.net/avatar/'
console.log(`Initiated the Hive Lookup Script`);
const avatarURL = 'https://minotar.net/avatar/'
const playerName = document.getElementById("inputBox").value;
async function getGamesData() {
const playerName = document.getElementById("inputBox").value
if (document.getElementById("gameBox").value === 'sg' || document.getElementById("gameBox").value === 'Survival Games' ) {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/sg`;
const data = await fetch(apiURL).then(response => response.json());
@@ -255,5 +254,4 @@ console.log(`Initiated the Hive Lookup Script`);
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
}
}
}