<iframe
id="cognitoForm"
src="https://www.cognitoforms.com/AustralianGuildOfMusicSpeech/SpotlightOnPedagogy2025"
style="border:0; width:100%; overflow: hidden; "
allow="payment"
>
</iframe>
<script>
const iframe = document.getElementById('cognitoForm');
function adjustIframeHeight() {
const isMobile = window.innerWidth <= 768; // Mobile breakpoint
if (isMobile) {
iframe.style.height = window.innerHeight + 'px'; // Full viewport height
} else {
iframe.style.height = '2000px'; // Default height for desktop
}
}
// Adjust height on page load
adjustIframeHeight();
// Adjust height on window resize
window.addEventListener('resize', adjustIframeHeight);
</script><iframe
id="cognitoForm"
src="https://www.cognitoforms.com/AustralianGuildOfMusicSpeech/SpotlightOnPedagogy2025"
style="border:0; width:100%; overflow: hidden; "
allow="payment"
>
</iframe>
<script>
const iframe = document.getElementById('cognitoForm');
function adjustIframeHeight() {
const isMobile = window.innerWidth <= 768; // Mobile breakpoint
if (isMobile) {
iframe.style.height = window.innerHeight + 'px'; // Full viewport height
} else {
iframe.style.height = '2000px'; // Default height for desktop
}
}
// Adjust height on page load
adjustIframeHeight();
// Adjust height on window resize
window.addEventListener('resize', adjustIframeHeight);
</script>