Add logic for param checking (redirections from old domain)
This commit is contained in:
+3
-15
@@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Alex 👋</title>
|
||||
|
||||
<link rel="stylesheet" href="/static/css/main.css">
|
||||
<link rel="stylesheet" href="https://thatalex.dev/static/css/main.css">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@200&display=swap" rel="stylesheet">
|
||||
@@ -15,6 +15,7 @@
|
||||
<body onload="setClip()">
|
||||
<div class="welcome"></div>
|
||||
|
||||
<div id="querydiv"></div>
|
||||
<div id="welcome-text">
|
||||
<h3>👋, I'm Alex!</h3>
|
||||
<p>I'm a Javascript & Java developer, working on random Node apps and Minecraft plugins!<br>
|
||||
@@ -42,19 +43,6 @@
|
||||
<a href="https://instagram.com/thatoneawex" style="color:white;" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
async function setClip() {
|
||||
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}<br>${data.contentObjects[0].contentTitle}`;
|
||||
}
|
||||
</script>
|
||||
<script src="https://thatalex.dev/static/js/paramSearch.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user