Voxel sandbox — build a 3D world

by rwmarcelin
NotesMosAIc NotesMosAIc
Made with NotesMosAIc
\n\n\n\n\n\n\n"; const frame = document.getElementById('simFrame'); frame.srcdoc = code; const header = document.querySelector('.header'); const footer = document.querySelector('.footer'); const container = document.querySelector('.sim-container'); function resize() { container.style.height = (window.innerHeight - header.offsetHeight - footer.offsetHeight) + 'px'; } window.addEventListener('resize', resize); resize(); // Hide floating badge after 8 seconds to not obstruct gameplay setTimeout(() => { const badge = document.querySelector('.made-with'); if (badge) badge.style.opacity = '0.4'; }, 8000);