Revamped website + built API ;O

This commit is contained in:
Alex / Awex
2021-08-10 09:36:58 -04:00
parent b8ead176f9
commit 65fec1140b
40 changed files with 1100 additions and 11555 deletions
-8975
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
.social-part .fa{
padding-right:20px;
}
ul li a{
margin-right: 20px;
}
-28
View File
@@ -1,28 +0,0 @@
.container {
position: absolute;
padding-top:40px;
top: 0;
right: 0;
bottom: 0;
left: 0;
/* width: 600px; */
height: 100px;
border-radius: 3px;
}
.jumbotron {
background-color:#4a4a4a;
}
.jumbotron img {
max-width:75%;
}
.jumbotron h3 {
color:white;
}
body {
background-color:#b3b3b3;
text-align:center;
}
-336
View File
@@ -1,336 +0,0 @@
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700');
html,
body {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Quicksand", sans-serif;
font-size: 62.5%;
font-size: 10px;
background-color:#a3a3a3;
}
#panel {
margin: 50px auto;
width: 300px;
padding: 30px 25px;
background: white;
border-radius: 25px;
display:none;
}
#panel a {
color:black;
}
a{
color:#ababab;
}
a:hover {
color:white;
}
hr{
border-color:white;
width:50%;
}
/* Navbar section */
#rc_logo {
left: 30px;
padding: 22px;
padding-left:2px;
position: absolute;
color: #fff;
font-size: 19px;
text-decoration: none;
}
#rc_logo a {
color: inherit;
text-decoration: none;
}
.rc_nav {
overflow: hidden;
background-color: #363841;
text-align: center;
z-index: 6;
}
.rc_nav a {
display: inline-block;
margin-right: -4px; /* inline-block gap fix */
color: #fff;
padding: 22px 22px;
text-decoration: none;
font-size: 18px;
-webkit-transition: background 0.3s linear;
-moz-transition: background 0.3s linear;
-ms-transition: background 0.3s linear;
-o-transition: background 0.3s linear;
transition: background 0.3s linear;
z-index: 9;
}
.rc_nav a:hover {
color: gray;
}
.rc_nav .icon {
display: none;
}
.rc_content {
text-align: center;
padding-left:14px;
margin-top: 100px;
color: #8e909b;
}
@media screen and (max-width: 820px) {
.rc_nav a {display: none;}
.rc_nav a.icon {
float: right;
display: block;
width: 60px;
}
}
@media screen and (max-width: 820px) {
.rc_nav responsive {position: relative; top: 73px;}
.rc_nav .icon {
position: fixed;
right: 0;
top: 0;
border-radius: 20%;
}
.rc_nav.responsive a {
float: none;
display: block;
text-align: center;
}
#rc_logo {
position: fixed;
}
}
/* Animation */
/* Inspiration taken from Dicson https://codemyui.com/simple-hamburger-menu-x-mark-animation/ */
.navTrigger {
cursor: pointer;
width: 30px;
height: 25px;
margin: auto;
position: absolute;
right: 30px;
top: 0;
bottom: 0;
}
.navTrigger i {
background-color: #fff;
border-radius: 2px;
content: '';
display: block;
width: 100%;
height: 4px;
}
.navTrigger i:nth-child(1) {
-webkit-animation: outT 0.8s backwards;
animation: outT 0.8s backwards;
-webkit-animation-direction: reverse;
animation-direction: reverse;
}
.navTrigger i:nth-child(2) {
margin: 5px 0;
-webkit-animation: outM 0.8s backwards;
animation: outM 0.8s backwards;
-webkit-animation-direction: reverse;
animation-direction: reverse;
}
.navTrigger i:nth-child(3) {
-webkit-animation: outBtm 0.8s backwards;
animation: outBtm 0.8s backwards;
-webkit-animation-direction: reverse;
animation-direction: reverse;
}
.navTrigger.active i:nth-child(1) {
-webkit-animation: inT 0.8s forwards;
animation: inT 0.8s forwards;
}
.navTrigger.active i:nth-child(2) {
-webkit-animation: inM 0.8s forwards;
animation: inM 0.8s forwards;
}
.navTrigger.active i:nth-child(3) {
-webkit-animation: inBtm 0.8s forwards;
animation: inBtm 0.8s forwards;
}
@-webkit-keyframes inM {
50% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(45deg);
}
}
@keyframes inM {
50% {
transform: rotate(0deg);
}
100% {
transform: rotate(45deg);
}
}
@-webkit-keyframes outM {
50% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(45deg);
}
}
@keyframes outM {
50% {
transform: rotate(0deg);
}
100% {
transform: rotate(45deg);
}
}
@-webkit-keyframes inT {
0% {
-webkit-transform: translateY(0px) rotate(0deg);
}
50% {
-webkit-transform: translateY(9px) rotate(0deg);
}
100% {
-webkit-transform: translateY(9px) rotate(135deg);
}
}
@keyframes inT {
0% {
transform: translateY(0px) rotate(0deg);
}
50% {
transform: translateY(9px) rotate(0deg);
}
100% {
transform: translateY(9px) rotate(135deg);
}
}
@-webkit-keyframes outT {
0% {
-webkit-transform: translateY(0px) rotate(0deg);
}
50% {
-webkit-transform: translateY(9px) rotate(0deg);
}
100% {
-webkit-transform: translateY(9px) rotate(135deg);
}
}
@keyframes outT {
0% {
transform: translateY(0px) rotate(0deg);
}
50% {
transform: translateY(9px) rotate(0deg);
}
100% {
transform: translateY(9px) rotate(135deg);
}
}
@-webkit-keyframes inBtm {
0% {
-webkit-transform: translateY(0px) rotate(0deg);
}
50% {
-webkit-transform: translateY(-9px) rotate(0deg);
}
100% {
-webkit-transform: translateY(-9px) rotate(135deg);
}
}
@keyframes inBtm {
0% {
transform: translateY(0px) rotate(0deg);
}
50% {
transform: translateY(-9px) rotate(0deg);
}
100% {
transform: translateY(-9px) rotate(135deg);
}
}
@-webkit-keyframes outBtm {
0% {
-webkit-transform: translateY(0px) rotate(0deg);
}
50% {
-webkit-transform: translateY(-9px) rotate(0deg);
}
100% {
-webkit-transform: translateY(-9px) rotate(135deg);
}
}
@keyframes outBtm {
0% {
transform: translateY(0px) rotate(0deg);
}
50% {
transform: translateY(-9px) rotate(0deg);
}
100% {
transform: translateY(-9px) rotate(135deg);
}
}
.affix {
padding: 0;
background-color: #111;
}
.myH2 {
text-align:center;
font-size: 4rem;
}
.myP {
text-align: justify;
padding-left:15%;
padding-right:15%;
font-size: 20px;
}
@media all and (max-width:700px){
.myP {
padding:2%;
}
}
+89 -191
View File
@@ -1,205 +1,103 @@
/* Univ Attributes */
#logo{
float:center;
html, body {
font-family: 'Quicksand', sans-serif;
margin:0;
padding:0;
line-height:30px;
}
/*
Welcome/Home Styling
*/
#welcome {
height: 933px;
line-height: 10px;
text-align: center;
border: 2px solid black;
background-color:#474747;
color:#cfcfcf;
}
hr{
width:100px;
border-color:black;
#welcomespan {
display: inline-block;
vertical-align: middle;
line-height: normal;
padding-top:200px
}
.center {
display:block;
margin:0 auto;
margin-left: auto;
margin-right: auto;
width:20%;
padding-top:20px;
/* ----------------- */
/*
About
*/
#about {
text-align:center;
white-space:normal;
}
#center {
display:block;
margin:0 auto;
margin-left: auto;
margin-right: auto;
width:30%;
#aboutContainer {
white-space:normal;
padding-top:30px;
}
body{
/* ----------------- */
/*
Projects
*/
#projects {
text-align:center;
line-height:20px;
white-space:normal;
}
#projectsContainer {
white-space:normal;
}
/* ----------------- */
/*
Skills
*/
#experienced {
text-align:center;
}
h1{
text-align:center;
color:#6b6b6b;
}
h2{
text-align:center;
color:#6b6b6b;
}
h3{
text-align:center;
color:#6b6b6b;
}
i{
/* ----------------- */
/*
Universal Styling
*/
h3 {
font-size:40px;
}
h4 {
font-size:30px;
}
p {
font-size:20px;
}
body p{
text-align:center;
color:#6b6b6b;
font-size:20px;
}
a{
color:black;
hr {
border-color:gray;
width:50%;
}
a:hover{
#intermission {
text-align:center;
}
ion-icon {
font-size:64px;
color:gray;
}
/* Home Page Attribs */
#welcome{
background-color:#474747;
padding-top:20px;
padding-bottom:15px;
}
#welcome h2{
color:#c2c2c2;
}
#welcome p{
color:#c2c2c2;
}
/*Socials Color Changing*/
#medal a{
color:orange;
text-decoration:none;
font-size:28px;
padding-right:15px;
#form {
text-align:center;
}
#medal a:hover{
color:white;
}
#twitter a{
color:#467175;
text-decoration:none;
font-size:28px;
padding-right:15px;
padding-bottom:20px;
text-align:center;
}
#twitter a:hover{
color:white;
}
#discordbtn {
background-color: #7289da; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 20%;
}
/* Navigation Bar Styling */
#navbar{
color:#333;
}
#navbar ul{
padding:0px;
list-style:none;
text-align:center;
}
#navbar li{
display:inline;
text-align:center;
}
#navbar a{
color:#333;
text-decoration:none;
font-size:18px;
padding-right:15px;
text-align:center;
}
/* Footer Styling */
.footer-p{
color:white;
}
.footer-basic {
padding:40px 0;
background-color:#454545;
color:white;
}
.footer-basic ul {
padding:0;
list-style:none;
text-align:center;
font-size:18px;
line-height:1.6;
margin-bottom:0;
}
.footer-basic li {
padding:0 10px;
}
.footer-basic ul a {
color:inherit;
text-decoration:none;
opacity:0.8;
}
.footer-basic ul a:hover {
opacity:1;
}
.footer-basic .social {
text-align:center;
padding-bottom:25px;
}
.footer-basic .social > a {
font-size:24px;
width:40px;
height:40px;
line-height:40px;
display:inline-block;
text-align:center;
border-radius:50%;
border:1px solid white;
margin:0 8px;
color:inherit;
opacity:0.75;
}
.footer-basic .social > a:hover {
opacity:0.9;
}
.footer-basic .copyright {
margin-top:15px;
text-align:center;
font-size:13px;
color:white;
margin-bottom:0;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

-17
View File
@@ -1,17 +0,0 @@
var count = 0;
function clickyBoy() {
count++;
if (count == 1){
alert("You feel the ground shake..")
} else if (count === 2) {
alert("You feel your spine tingle..")
} else if (count === 3) {
alert("The ground starts to split..")
} else if (count === 4) {
alert("It starts to rise up..")
} else if (count === 5) {
alert("It's here..")
window.location.replace('./easter-egg.html');
}
}
-7
View File
@@ -1,7 +0,0 @@
function hidePanel() {
var link = document.getElementById("link");
link.style.display = "none";
var panel = document.getElementById("panel");
panel.style.display = "none";
}
-259
View File
@@ -1,259 +0,0 @@
////////////////////
// Hive Lookup JS //
// Dvlpr. Awexx //
////////////////////
console.log(`Initiated the Hive Lookup Script`);
const avatarURL = 'https://minotar.net/avatar/'
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());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive SG Stats<hr>Victories: " + data.victories + "<br>Total Points: " + data.total_points + "<br> Most Points: " + data.most_points
+ "<br>Games Played: " + data.gamesplayed + "<br>Crates Opened: " + data.cratesopened + "<br>Kills: " + data.kills + "<br>Deaths: " + data.kills + "<br>Total Time Alive: " + data.timealive +
"<br>Unlock Deathcrate: " + data.unlock_deathcrate + "<br>Unlock My Sword: " + data.unlock_mysword + "<br>Vanity Colors: " + data.vanitycolors + "<br>Active Vanity Color: " + data.active_vanitycolor +
"<br>Arrow Trails: " + data.arrowtrails + "<br>Battle Cries: " + data.battlecries + "<br>Active Deathcrate: " + data.active_deathcrate + "<br>First Win Day: " + data.firstwinday
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "bp" || document.getElementById("gameBox").value === 'Block Party' ) {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/bp`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive Block Party Stats<hr>Games Played: " + data.games_played + "<br>Selected Bling: " + data.selected_bling + "<br>Death Sound: " + data.selected_death_sound
+ "<br>Trail: " + data.selected_trail + "<br>Victory Sound: " + data.selected_victory_sound + "<br>Eliminations: " + data.total_eliminations + "<br>Placing: " + data.total_placing + "<br>Total Points: " + data.total_points +
"<br>Unlocked Bling: " + data.unlocked_bling + "<br>Unlocked Death Sounds: " + data.unlocked_death_sounds + "<br>Unlocked Trails: " + data.unlocked_trails + "<br>Victories: " + data.victories
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "cai" || document.getElementById("gameBox").value === 'Cowboys and Indians') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/cai`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive Cowboys and Indians Stats<hr>Total Points: " + data.total_points + "<br>Captured: " + data.captured + "<br>Captures: " + data.captures
+ "<br>Catches: " + data.catches + "<br>Caught: " + data.caught + "<br>Creeper Firework: " + data.creeperfirework + "<br>Games Played: " + data.gamesplayed + "<br>Team Selector: " + data.teamselector +
"<br>Victories: " + data.victories
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "dr" || document.getElementById("gameBox").value === 'Deathrun') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/dr`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive DeathRun Stats<hr>Total Points: " + data.total_points + "<br>Victories: " + data.victories + "<br>Kills: " + data.kills
+ "<br>Deaths: " + data.deaths + "<br>Games Played: " + data.games_played
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "hb" || document.getElementById("gameBox").value === 'The Herobrine') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/hb`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive The Herobrine Stats<hr>Captures: " + data.captures + "<br>Kills: " + data.kills + "<br>Deaths: " + data.deaths
+ "<br>Points: " + data.points + "<br>Unlocked Classes: " + data.unlocked_classes + "<br>Active Class: " + data.active_class
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "hero" || document.getElementById("gameBox").value === 'SG:Hero') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/hero`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive SG:Hero Stats<hr>Total Points: " + data.total_points + "<br>Victories: " + data.victories + "<br>Kills: " + data.kills
+ "<br>Deaths: " + data.deaths + "<br>1v1 Wins: " + data.one_vs_ones_wins + "<br>Deathmatches: " + data.deathmatches + "<br>TNT Used: " + data.tnt_used + "<br>Crates Opened: " + data.crates_opened +
"<br>Food Consumed: " + data.food_consumed
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "hide" || document.getElementById("gameBox").value === 'Hide & Seek') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/hide`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive Hide & Seek Stats<hr>Total Points: " + data.total_points + "<br>Victories: " + data.victories + "<br>Hider Kills: " + data.hiderkills
+ "<br>Seeker Kills: " + data.seekerkills + "<br>Deaths: " + data.deaths + "<br>Games Played: " + data.gamesplayed + "<br>Blocks: " + data.blocks + "<br>Book Upgrade: " + data.bookupgrade +
"<br>Time Alive: " + data.timealive
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "oitc" || document.getElementById("gameBox").value === 'One in the Chamber') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/oitc`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive One in the Chamber Stats<hr>Total Points: " + data.total_points + "<br>Victories: " + data.victories + "<br>Kills: " + data.kills
+ "<br>Deaths: " + data.deaths + "<br>Arrows Fired: " + data.arrowsfired + "<br>Games Played: " + data.gamesplayed + "<br>Cupid Unlocked: " + data.cupidunlock + "<br>Rainbow Unlocked: " + data.rainbowunlock +
"<br>Music Unlocked: " + data.musicunlock + "<br>Herobrine Unlock " + data.herobrineunlock
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "sp" || document.getElementById("gameBox").value === 'Splegg') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/sp`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive One in the Chamber Stats<hr>Victories: " + data.victories + "<br>Games Played: " + data.gamesplayed + "<br>Eggs Fired: " + data.eggsfired
+ "<br>Blocks Destroyed: " + data.blocksdestroyed + "<br>Deaths: " + data.deaths + "<br>Points: " + data.points + "<br>Time Alive: " + data.timealive + "<br>Rainbow Eggs: " + data.rainboweggs +
"<br>Sheep Unlocked: " + data.sheepunlock + "<br>Shovel Upgrade " + data.shovelupgrade
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "timv" || document.getElementById("gameBox").value === 'Trouble in Mineville') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/timv`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive Trouble in Mineville Stats<hr>Total Points: " + data.total_points + "<br>Most Points: " + data.most_points + "<br>Role Points: " + data.role_points
+ "<br>T Point: " + data.t_points + "<br>I Points: " + data.i_points + "<br>D Points: " + data.d_points + "<br>Active Detective Stick: " + data.active_detectivestick + "<br>Detective Sticks: " + data.detectivesticks +
"<br>Active Flare Upgrade: " + data.active_flareupgrade + "<br>Flare Upgrade " + data.flareupgrade + "<br>Detective Book: " + data.detectivebook
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "sky" || document.getElementById("gameBox").value === 'SkyWars') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/sky`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive SkyWars Stats<hr>Total Points: " + data.total_points + "<br>Victories: " + data.victories + "<br>Games Played: " + data.gamesplayed
+ "<br>Kills: " + data.kills + "<br>Deaths: " + data.deaths + "<br>Most Points: " + data.most_points + "<br>Time Alive: " + data.timealive
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "lab" || document.getElementById("gameBox").value === 'The Lab') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/lab`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive The Lab Stats<hr>Total Points: " + data.total_points + "<br>Victories: " + data.victories + "<br>Games Played: " + data.gamesplayed
+ "<hr><strong>Total Game Victories</strong><br>Electric Floor: " + data.game_victories.ELECTRICFLOOR + "<br>Snowman: " + data.game_victories.SNOWMAN + "<br>Rocket Race: " + data.game_victories.ROCKETRACE + "<br>Breaking Blocks: " + data.game_victories.BREAKINGBLOCKS +
"<br>Splegg: " + data.game_victories.SPLEGG + "<br>Catastrophic: " + data.game_victories.CATASTROPHIC + "<br>Fight: " + data.game_victories.FIGHT
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "draw" || document.getElementById("gameBox").value === 'Draw It') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/draw`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive DRAW Stats<hr>Total Points: " + data.total_points + "<br>Victories: " + data.victories + "<br>Games Played: " + data.gamesplayed
+ "<br>Total Correct Guesses: " + data.correct_guesses + "<br>Total Incorrect Guesses: " + data.incorrect_guesses + "<br>Skips: " + data.skips
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "ef" || document.getElementById("gameBox").value === 'Electric Floor') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/ef`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive Electric Floor Stats<hr>Victories: " + data.victories + "<br>Outlived: " + data.outlived + "<br>Games Played: " + data.gamesplayed
+ "<br>Points: " + data.points + "<br>Blocks Activated: " + data.blocksactivated + "<br>Title: " + data.title
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "grav" || document.getElementById("gameBox").value === 'Gravity') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/grav`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive Gravity Stats<hr>Victories: " + data.victories + "<br>Points: " + data.points + "<br><hr><strong>Map Records</strong><br>Library: " + data.maprecords.LIBRARY
+ "<br>Mobs: " + data.maprecords.MOBS + "<br>Drain: " + data.maprecords.DRAIN + "<br>Wave: " + data.maprecords.WAVE + "<br>Toys: " + data.maprecords.TOYS + "<br>Rhythm: " + data.maprecords.RHYTHM + "<br>Pacman " + data.maprecords.PACMAN +
"<br>Floatlands: " + data.maprecords.FLOATLANDS + "<br>Hypnosis: " + data.maprecords.HYPNOSIS + "<br>Deep Sea: " + data.maprecords.DEEP_SEA + "<br>Plants: " + data.maprecords.PLANTS + "<br>Meteor" + data.maprecords.METEOR +
"<br>Lab: " + data.maprecords.LAB + "<br>Ruins: " + data.maprecords.RUINS + "<br>Pyramid: " + data.maprecords.PYRAMID + "<br>Tetris: " + data.maprecords.TETRIS + "<br>Trees: " + data.maprecords.TREES +
"<br>Arctic: " + data.maprecords.ARCTIC + "<br>Factory: " + data.maprecords.FACTORY + "<br>Lush: " + data.maprecords.LUSH + "<br>Rain: " + data.maprecords.RAIN + "<br>Arachnophobia: " + data.maprecords.ARACHNOPHOBIA +
"<br>Overgrown: " + data.maprecords.OVERGROWN
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "gnt" || document.getElementById("gameBox").value === 'SkyGiants') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/gnt`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive SkyGiants Stats<hr>Total Points: " + data.total_points + "<br>Victories: " + data.victories + "<br>Games Played: " + data.games_played +
"<br>Kills: " + data.kills + "<br>Deaths: " + data.deaths + "<br>Gold Earned: " + data.gold_earned + "<br>Beasts Slain: " + data.beasts_slain + "<br>Shutdowns: " + data.shutdowns + "<br>Title: " + data.title
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "spl" || document.getElementById("gameBox").value === 'Sploop') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/spl`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive Sploop Stats<hr>Total Points: " + data.total_points + "<br>Victories: " + data.victories + "<br>Games Played: " + data.games_played +
"<br>Kills: " + data.kills + "<br>Deaths: " + data.deaths + "<br>Blocks Painted: " + data.blocks_painted + "<br>Ultimates Earned: " + data.ultimates_earned + "<br>Title: " + data.title
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
} else if (document.getElementById("gameBox").value === "mimv" || document.getElementById("gameBox").value === 'Murder in Mineville') {
const apiURL = `https://api.hivemc.com/v1/player/${playerName}/mimv`;
const data = await fetch(apiURL).then(response => response.json());
document.querySelector("#panel").innerHTML = "<img src=" + avatarURL + playerName + "><br>" + playerName + "'s Hive Murder in MineVille Stats<hr>Total Points: " + data.total_points + "<br>Games Played: " + data.games_played + "<br>Victories: " + data.victories +
"<br>Kills: " + data.kills + "<br>Deaths: " + data.deaths + "<br>Last Used Emote: " + data.lastUsedEmote + "<br>Preferred Emote Menu: " + data.preferredEmoteSelectorMenu + "<br>Title: " + data.title
var panel = document.getElementById("panel");
panel.style.display = "block";
document.querySelector("#link").innerHTML = "<a href=" + apiURL + ">Raw JSON Link"
var link = document.getElementById("link");
link.style.display = "block";
}
}
-16
View File
@@ -1,16 +0,0 @@
async function postEmbed() {
const link = document.getElementById("cliplink").value
console.log('Link:', link)
const webhook = document.getElementById("webhookURL").value
console.log('Webhook:', webhook)
const caption = document.getElementById("caption").value
console.log('Caption:', caption)
const username = document.getElementById("medalUsername").value
console.log('Username:', username)
const embedUrl = `https://mcwapi.herokuapp.com/clip-check?clipLink=${link}&webhookURL=${webhook}&medalUsername=${username}&caption=${caption}`
const { response } = await fetch(embedUrl).then(response => response.json());
window.location.replace("https://awexxx.xyz/mcw?status=success");
}
-16
View File
@@ -1,16 +0,0 @@
async function postPlain() {
const link = document.getElementById("cliplinkpt").value
console.log('Link:', link)
const webhook = document.getElementById("webhookURLpt").value
console.log('Webhook:', webhook)
const caption = document.getElementById("captionpt").value
console.log('Caption:', caption)
const username = document.getElementById("medalUsernamept").value
console.log('Username:', username)
const url = `https://mcwapi.herokuapp.com/clip-check-pt?clipLink=${link}&webhookURL=${webhook}&medalUsername=${username}&caption=${caption}`
const { response } = await fetch(url).then(response => response.json());
window.location.replace("https://awexxx.xyz/mcw?status=success");
}
+15
View File
@@ -0,0 +1,15 @@
///////////////////////////////////
// Fetch Script for Awex Clips //
// Medal.tv API //
///////////////////////////////////
async function medalclips() {
const medalapi = 'https://developers.medal.tv/v1/latest?userId=215577&limit=1'
const { contentObjects } = await fetch(medalapi, {
method: 'GET',
headers: { 'Authorization': 'pub_94FdmA2SMLm6V53dDykcPB3v4HLak6Db', 'Content-Type': 'application/json' }
}).then(response => response.json())
document.querySelector("#clip").innerHTML = contentObjects[0].embedIframeCode
document.querySelector("#title").innerHTML = "<i>Clip Title: " + contentObjects[0].contentTitle + "</i>"
}
-14
View File
@@ -1,14 +0,0 @@
///////////////////////////////////
// Fetch Script for Awex Clips //
// Medal.tv API //
///////////////////////////////////
async function medalclips() {
const medalapi = 'https://developers.medal.tv/v1/latest?userId=215577&limit=1'
const { contentObjects } = await fetch(medalapi, {
method: 'GET',
headers: { 'Authorization': 'pub_94FdmA2SMLm6V53dDykcPB3v4HLak6Db', 'Content-Type': 'application/json' }
}).then(response => response.json())
document.querySelector("#clip").innerHTML = contentObjects[0].embedIframeCode
document.querySelector("#title").innerHTML = "<i>" + contentObjects[0].contentTitle + "</i>"
}
-55
View File
@@ -1,55 +0,0 @@
function checkparam() {
const params = new URLSearchParams(window.location.search)
// console.log(params) Only uncomment this for testing purposes.
if(!params) {
const embed = document.getElementById("embed");
embed.style.display = "block"
}
if (params.get('type') === 'pt') {
const pt = document.getElementById("pt");
pt.style.display = "block";
const embed = document.getElementById("embed");
embed.style.display = "none";
}
if(params.get('type') === 'embed') {
const pt = document.getElementById("pt");
pt.style.display = "none";
const embed = document.getElementById("embed");
embed.style.display = "block";
const success = document.getElementById("success");
success.style.display = "none";
}
if (params.get('status') === 'success') {
const pt = document.getElementById("pt");
pt.style.display = "none";
const embed = document.getElementById("embed");
embed.style.display = "none";
const success = document.getElementById("success");
success.style.display = "block";
}
if(params.get('ref') === 'added') {
const gen = document.getElementById("gen");
gen.style.display = "none";
const success = document.getElementById("success");
success.style.display = "block";
}
if (params.get('ref') === 'ee') {
const ee = document.getElementById("easteregg")
ee.style.display = "block";
}
if (params.get('ref') === 'demi') {
window.location.replace("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
}
}
window.addEventListener ?
window.addEventListener("load",checkparam,false)
:
window.attachEvent && window.attachEvent("onload",checkparam);
+3
View File
@@ -0,0 +1,3 @@
//////////////////////////
// Query Tag Processing //
//////////////////////////
-68
View File
@@ -1,68 +0,0 @@
async function getFileUrl() {
const params = new URLSearchParams(window.location.search)
let title = params.get('photo')
let apiurl = `http://${window.location.host}/screenshots?title=${title}`
let pageURL = `http://${window.location.host}/view?photo=${title}`
if(title) {
try{
const { response } = await fetch(apiurl).then(response => response.json());
console.log(response)
let date = response.date;
let photourl = response.directurl;
var dateStr = new Date();
document.querySelector('meta[name="img"]').setAttribute("content", photourl)
document.querySelector('meta[name="title"]').setAttribute("content", `Awex's screenshot from ${dateStr}`)
document.querySelector('meta[name="url"]').setAttribute("content", pageURL)
document.getElementById("title").innerHTML = (`Screenshot from ${date}`)
document.getElementById("date").innerHTML = (`<h3>Screenshot from:<br> ${date}</h3>`)
document.getElementById("jumbo-internal").innerHTML = "<img src=" + photourl + ">"
}
catch(error) {
console.log('There was an error! ', error)
const body = document.getElementById("body")
body.style.display = "none";
const err = document.getElementById("fourohfour");
err.style.display = "block";
}
} else if (!title) {
const body = document.getElementById("body")
body.style.display = "none";
const err = document.getElementById("fourohfour");
err.style.display = "block";
}
}
async function deleteSS() {
const params = new URLSearchParams(window.location.search)
let title = params.get('photo')
var secret = document.querySelector("#secret").value
const delfile = await fetch(`http://${window.location.host}/delete/${title}`, {
method: "DELETE",
headers: { "secret": `${secret}`}
})
.then(function(response) {
console.log(response.status); // Will show you the status
if(response.status === 200) {
var error = document.getElementById("err");
error.style.display = "none";
var success = document.getElementById("success");
success.style.display = "block";
} else if (response.status === 403 || response.status === 404) {
var success = document.getElementById("success");
success.style.display = "none";
var error = document.getElementById("err");
error.style.display = "block";
var code = document.getElementById("code").innerHTML = response.status
}
})
}
function showForm() {
var form = document.getElementById("form")
form.style.display = "block";
var button = document.getElementById("del")
button.style.display = "none";
}
-50
View File
@@ -1,50 +0,0 @@
const data = [
{
name: 'ping',
description: 'Replies with bot/Discord API ping.',
},
{
name: 'status',
description: 'Replies with server status.',
},
{
name: 'modpack',
description: 'Sends a link to the modpack download.'
},
{
name: 'clip',
description: 'Sends a random clip from the Medal #medalsmp tag.'
},
{
name: 'demi',
description: 'Sends Demi a random message.. if you even are demi..'
},
{
name: 'help',
description: 'Get help from the bot!',
options: [{
name: 'embed',
type: 'STRING',
description: 'The type of embed you need',
required: true,
choices: [
{
name: 'General Bot Help',
value: 'help_vanilla',
},
{
name: 'Server Commands',
value: 'help_modded',
},
],
}],
},
{
name: 'coinflip',
description: 'Get a random response of heads or tails!'
},
{
name: '8ball',
description: 'Get a random 8-ball response!'
}
];
Binary file not shown.