|
|
|
@ -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>
|
|
|
|
|