will chatgpt get it right

master
Jay Moore/NQ4T 1 year ago
parent 5a9ff61284
commit ebc6bc4379

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

Loading…
Cancel
Save