Update
This commit is contained in:
parent
162be52f1d
commit
d3c9a28c3b
|
@ -44,7 +44,7 @@ document.addEventListener("DOMContentLoaded", ready);
|
||||||
|
|
||||||
|
|
||||||
const log = document.getElementById('log');
|
const log = document.getElementById('log');
|
||||||
log.innerHTML = "";
|
log.innerHTML = "<hr><br>";
|
||||||
|
|
||||||
async function fetchData() {
|
async function fetchData() {
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ async function fetchData() {
|
||||||
Object.entries(obj).forEach(([key, value]) => {
|
Object.entries(obj).forEach(([key, value]) => {
|
||||||
|
|
||||||
if (key == "id") {
|
if (key == "id") {
|
||||||
log.innerHTML = log.innerHTML + `<iframe src="https://techhub.social/@Melawy/${value}/embed" class="mastodon-embed" style="max-width: 100%; border: 0" height="100%" width="60%" allowfullscreen="allowfullscreen"></iframe>` + '<br>';
|
log.innerHTML = log.innerHTML + `<iframe src="https://${serverAddress}/@Melawy/${value}/embed" class="mastodon-embed" style="max-width: 100%; border: 0" height="100%" width="60%" allowfullscreen="allowfullscreen"></iframe>` + '<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue