lil reworking + link fixes
This commit is contained in:
+2
-1
@@ -1,7 +1,8 @@
|
||||
html, body {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
|
||||
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
|
||||
top:50%;
|
||||
}
|
||||
|
||||
html{
|
||||
|
||||
@@ -7,5 +7,6 @@ fetch("https://developers.medal.tv/v1/latest?userId=215577&limit=1", {
|
||||
}
|
||||
}).then(async function(response) {
|
||||
const data = await response.json();
|
||||
clipSpan.innerHTML = `${data.contentObjects[0].embedIframeCode}<br>${data.contentObjects[0].contentTitle}`;
|
||||
if(screen.width < 1920) { clipSpan.innerHTML = `<h3><a href="${data.contentObjects[0].directClipUrl}" target="_blank">${data.contentObjects[0].contentTitle}</a></h3>` }
|
||||
else clipSpan.innerHTML = `${data.contentObjects[0].embedIframeCode}<br><hr><h3>${data.contentObjects[0].contentTitle}</h3>`;
|
||||
});
|
||||
Reference in New Issue
Block a user