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">
<iframe id="allscan" name="allscan" frameborder="0" src="https://59408.nq4t.com/allscan"></iframe>
</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{
width: 94vw;
height: 75vw;
height: 50vw;
}
@media (min-width: 48em) {
.iframe-parent {
width: 50vw;
height: 75vw;
height: 50vw;
}
}
@media (min-width: 76em) {
.iframe-parent {
width: 60vw;
height: 75vw;
height: 50vw;
}
}
@media (min-width: 90em) {
.iframe-parent {
width: 58vw;
height: 75vw;
height: 50vw;
}
}
@media (min-width: 94em) {
.iframe-parent {
width: 55vw;
height: 75vw;
height: 50vw;
}
}
@media (min-width: 104em) {
.iframe-parent {
width: 50vw;
height: 75vw;
height: 50vw;
}
}
@media (min-width: 114em) {
.iframe-parent {
width: 45vw;
height: 75vw;
height: 50vw;
}
}
/* Expand to the entire container */

Loading…
Cancel
Save