Created
May 24, 2019 15:03
-
-
Save dgreensp/f5bd34ba007b39ebc7cb28ed9f98378a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<style> | |
html, body { padding: 0; margin: 0 } | |
</style> | |
</head> | |
<body> | |
<iframe width="640" height="360" frameborder="0" src="https://www.shadertoy.com/embed/3tBGzh?gui=true&t=10&paused=true&muted=false" allowfullscreen></iframe> | |
<script> | |
window.onresize = () => { | |
i = document.querySelector('iframe') | |
i.setAttribute('width', window.innerWidth) | |
i.setAttribute('height', window.innerHeight) | |
} | |
window.onresize() | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment