From 47a28cdd638885d0c867841c1d98ebf5c849884b Mon Sep 17 00:00:00 2001 From: awex Date: Fri, 4 Jun 2021 03:30:45 -0400 Subject: [PATCH] updated some stuff --- about.html | 2 +- assets/js/mcw/embed.js | 6 ++-- assets/js/mcw/pt.js | 6 ++-- hivemc.html | 2 +- index.html | 2 +- mcw.html | 8 ++--- tiktokinfo.html | 74 ------------------------------------------ 7 files changed, 13 insertions(+), 87 deletions(-) delete mode 100644 tiktokinfo.html diff --git a/about.html b/about.html index 6e4c9e0..cb7c892 100644 --- a/about.html +++ b/about.html @@ -41,7 +41,7 @@ Awex initially started learning HTML and CSS in late 2020 and picked it up fairl diff --git a/assets/js/mcw/embed.js b/assets/js/mcw/embed.js index 22d7c4c..570bf13 100644 --- a/assets/js/mcw/embed.js +++ b/assets/js/mcw/embed.js @@ -8,9 +8,9 @@ async function postEmbed() { const username = document.getElementById("medalUsername").value console.log('Username:', username) - const { response } = await fetch(`https://mcwapi.herokuapp.com/clip-check?clipLink=${link}&webhookURL=${webhook}&medalUsername=${username}&caption=${caption}`).then(response => response.json()); + 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"); - - console.log(response); } \ No newline at end of file diff --git a/assets/js/mcw/pt.js b/assets/js/mcw/pt.js index af8df08..88da000 100644 --- a/assets/js/mcw/pt.js +++ b/assets/js/mcw/pt.js @@ -8,9 +8,9 @@ async function postPlain() { const username = document.getElementById("medalUsernamept").value console.log('Username:', username) - const { response } = await fetch(`https://mcwapi.herokuapp.com/clip-check-pt?clipLink=${link}&webhookURL=${webhook}&medalUsername=${username}&caption=${caption}`).then(response => response.json()); + 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"); - - console.log(response); } \ No newline at end of file diff --git a/hivemc.html b/hivemc.html index fbe6233..9b37f78 100644 --- a/hivemc.html +++ b/hivemc.html @@ -94,7 +94,7 @@ Snow Wars

diff --git a/index.html b/index.html index 5ef91bf..adfb5e6 100644 --- a/index.html +++ b/index.html @@ -67,7 +67,7 @@ diff --git a/mcw.html b/mcw.html index e7c68be..13e026a 100644 --- a/mcw.html +++ b/mcw.html @@ -43,7 +43,7 @@
- +
@@ -75,7 +75,7 @@