Skip to content

Instantly share code, notes, and snippets.

@captainbrosset
Last active September 16, 2021 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save captainbrosset/2da0fe49afe6053816e31f5a01ce6d23 to your computer and use it in GitHub Desktop.
Save captainbrosset/2da0fe49afe6053816e31f5a01ce6d23 to your computer and use it in GitHub Desktop.
test gistpad codeswing
{
"scripts": [],
"styles": []
}
<div class="playground">
<button>click me</button>
</div>
const btn = document.querySelector('button');
btn.addEventListener('click', e => {
btn.textContent += '!';
});
html, body {
height: 100%;
overflow: hidden;
margin: 0;
}
body {
display: grid;
place-content: center;
}
.playground {
width: 90vmin;
height: 90vmin;
background: red;
display: grid;
place-content: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment