This commit is contained in:
Valeria Fadeeva 2023-12-10 02:16:38 +05:00
parent 3641eb6745
commit 30e53326b6
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ async function fetchData() {
Object.entries(obj).forEach(([key, value]) => {
if (key == "id") {
log.innerHTML = log.innerHTML + `<iframe src="https://${serverAddress}/@Melawy/${value}/embed" class="mastodon-embed" style="max-width: 100%; min-height: 75vh; border: 0" width="60%" height="100%" allowfullscreen="allowfullscreen"></iframe>` + '<br>';
// log.innerHTML = log.innerHTML + `<iframe src="https://${serverAddress}/@Melawy/${value}/embed" class="mastodon-embed" style="max-width: 100%; min-height: 75vh; border: 0" width="60%" height="100%" allowfullscreen="allowfullscreen"></iframe>` + '<br>';
log.innerHTML = log.innerHTML + `<iframe src="https://${serverAddress}/@Melawy/${value}/embed" class="mastodon-embed" onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";}(this));' style="height:200px;width:100%;border:none;overflow:hidden;"allowfullscreen="allowfullscreen"></iframe>` + '<br>';
}
});