This commit is contained in:
Valeria Fadeeva 2023-12-10 01:31:46 +05:00
parent 162be52f1d
commit d3c9a28c3b
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ document.addEventListener("DOMContentLoaded", ready);
const log = document.getElementById('log');
log.innerHTML = "";
log.innerHTML = "<hr><br>";
async function fetchData() {
@ -58,7 +58,7 @@ async function fetchData() {
Object.entries(obj).forEach(([key, value]) => {
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>';
}
});