This commit is contained in:
Valeria Fadeeva 2023-12-10 02:33:51 +05:00
parent b4b1b5de6c
commit 7f7d4b60d1
2 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,9 @@
#log iframe { #log iframe {
width: inherit; width: inherit;
min-height: 75vh; min-height: 100vh;
height: max-content;
border:none;
} }
#body { #body {

View File

@ -56,7 +56,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://${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>'; log.innerHTML = log.innerHTML + `<iframe src="https://${serverAddress}/@Melawy/${value}/embed" class="mastodon-embed" allowfullscreen="allowfullscreen"></iframe>` + '<br>';
} }
}); });