Website redesign 💃

- New navbar
- Made everything responsive
- Made everything, overall, look a lot cooler
This commit is contained in:
awex
2021-06-05 10:38:34 -04:00
parent 99bbf5adf1
commit 1f73421727
9 changed files with 764 additions and 123 deletions
+4 -2
View File
@@ -5,8 +5,9 @@
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());
@@ -254,4 +255,5 @@ const playerName = document.getElementById("inputBox").value;
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
}
}
}