none of that works

master
Jay Moore/NQ4T 1 year ago
parent b5a03aacd3
commit 5ea6436c7e

@ -13,24 +13,3 @@ I hope to add Allstar Node stuff soon</div>
<div class="iframe-parent"> <div class="iframe-parent">
<iframe id="allscan" name="allscan" frameborder="0" src="https://59408.nq4t.com/allscan"></iframe> <iframe id="allscan" name="allscan" frameborder="0" src="https://59408.nq4t.com/allscan"></iframe>
</div> </div>
<script>
function resizeIframe(iframeId) {
var iframe = document.getElementById(iframeId);
var parent = iframe.parentNode;
iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
parent.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
}
// Initial resizing when the page loads
window.addEventListener('load', function() {
resizeIframe('pistar');
resizeIframe('allscan');
});
// Resizing on window resize
window.addEventListener('resize', function() {
resizeIframe('pistar');
resizeIframe('allscan');
});
</script>

@ -227,47 +227,47 @@ a.sidebar-nav-item:focus {
.iframe-parent{ .iframe-parent{
width: 94vw; width: 94vw;
height: 75vw; height: 50vw;
} }
@media (min-width: 48em) { @media (min-width: 48em) {
.iframe-parent { .iframe-parent {
width: 50vw; width: 50vw;
height: 75vw; height: 50vw;
} }
} }
@media (min-width: 76em) { @media (min-width: 76em) {
.iframe-parent { .iframe-parent {
width: 60vw; width: 60vw;
height: 75vw; height: 50vw;
} }
} }
@media (min-width: 90em) { @media (min-width: 90em) {
.iframe-parent { .iframe-parent {
width: 58vw; width: 58vw;
height: 75vw; height: 50vw;
} }
} }
@media (min-width: 94em) { @media (min-width: 94em) {
.iframe-parent { .iframe-parent {
width: 55vw; width: 55vw;
height: 75vw; height: 50vw;
} }
} }
@media (min-width: 104em) { @media (min-width: 104em) {
.iframe-parent { .iframe-parent {
width: 50vw; width: 50vw;
height: 75vw; height: 50vw;
} }
} }
@media (min-width: 114em) { @media (min-width: 114em) {
.iframe-parent { .iframe-parent {
width: 45vw; width: 45vw;
height: 75vw; height: 50vw;
} }
} }
/* Expand to the entire container */ /* Expand to the entire container */

Loading…
Cancel
Save