breakout-custom/embed/embed.html
2024-09-07 20:02:12 -04:00

31 lines
No EOL
928 B
HTML

<style>
.responsive-iframe-container {
position: relative;
overflow: hidden;
width: 100%;
}
.responsive-iframe-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
</style>
<div class="responsive-iframe-container">
<iframe src="https://deconstruit-breakout.coolify.jevalide.ca/game" style="overflow: hidden;"></iframe>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
var footer = document.querySelector('footer');
var contentArea = document.querySelector('.content-area');
if (footer && footer.parentNode && contentArea) {
var footerHeight = footer.offsetHeight;
footer.parentNode.removeChild(footer);
contentArea.style.minHeight = 'calc(100vh - ' + footerHeight + 'px)';
}
});
</script>