Update
This commit is contained in:
parent
30e53326b6
commit
b4b1b5de6c
|
@ -57,6 +57,7 @@
|
|||
|
||||
#log iframe {
|
||||
width: inherit;
|
||||
min-height: 75vh;
|
||||
}
|
||||
|
||||
#body {
|
||||
|
|
|
@ -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>';
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue