This commit is contained in:
Valeria Fadeeva 2023-12-10 02:21:15 +05:00
parent 30e53326b6
commit b4b1b5de6c
2 changed files with 2 additions and 2 deletions

View File

@ -57,6 +57,7 @@
#log iframe {
width: inherit;
min-height: 75vh;
}
#body {

View File

@ -56,8 +56,7 @@ 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" 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>';
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:600px; width:100%; max-width: 100%; min-height: 75vh; border:none; overflow:hidden;" allowfullscreen="allowfullscreen"></iframe>` + '<br>';
}
});