master
Jay Moore/NQ4T 1 year ago
parent 94912cd714
commit 97de6b7f39

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

Loading…
Cancel
Save