diff --git a/index.html b/index.html index dfd4f81..9cf3b2f 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Alex 👋 - + @@ -15,6 +15,7 @@
+

👋, I'm Alex!

I'm a Javascript & Java developer, working on random Node apps and Minecraft plugins!
@@ -42,19 +43,6 @@

- + \ No newline at end of file diff --git a/links.html b/links.html index ab1a2ac..32eabd6 100644 --- a/links.html +++ b/links.html @@ -4,7 +4,7 @@ - lulawexLIVE >> Links + Alex > Links @@ -23,7 +23,7 @@
- lulawexLIVE + Alex
diff --git a/splitstat.html b/splitstat.html new file mode 100644 index 0000000..0537f6f --- /dev/null +++ b/splitstat.html @@ -0,0 +1,12 @@ + + + + + + + Redirecting.. + + + \ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css index e6b8d1c..461bb3b 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -24,6 +24,10 @@ hr { width:20%; } +#querydiv { + padding-top:40px; +} + .welcome { width: 100%; background-image: url('../../static/img/profile.png'); diff --git a/static/js/paramSearch.js b/static/js/paramSearch.js new file mode 100644 index 0000000..1d1fe7e --- /dev/null +++ b/static/js/paramSearch.js @@ -0,0 +1,24 @@ +async function paramSearch() { + const urlSearchParams = new URLSearchParams(window.location.search); + const params = Object.fromEntries(urlSearchParams.entries()); + const div = document.getElementById("querydiv"); + + if (params.reason) { + if (params.reason == "old_domain") { + div.innerHTML = '

You have been redirected here from an old domain. Please use this domain.

'; + } + } + + const clipSpan = document.getElementById("clip"); + const response = await fetch("https://developers.medal.tv/v1/latest?userId=215577&limit=1", { + method: "GET", + headers: { + "authorization": "pub_ecEyOlY5G2u9476DMGOxcxiNcaOTEjmq", + "Content-Type": "application/json" + } + }); + const data = await response.json(); + clipSpan.innerHTML = `${data.contentObjects[0].embedIframeCode}
${data.contentObjects[0].contentTitle}`; +} + +window.onload = paramSearch(); \ No newline at end of file