lil reworking + link fixes

This commit is contained in:
awex 3
2022-05-02 03:46:31 -04:00
parent 723686dc90
commit bce362c430
4 changed files with 18 additions and 18 deletions
+2 -1
View File
@@ -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{
+2 -1
View File
@@ -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>`;
});