Skip to content

Instantly share code, notes, and snippets.

@tomhermans
Last active October 7, 2021 13:02
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 tomhermans/270029cf67b64b51f7bf2397d1a4596d to your computer and use it in GitHub Desktop.
Save tomhermans/270029cf67b64b51f7bf2397d1a4596d to your computer and use it in GitHub Desktop.
testing codeswing and gistpad for VSCode
{
"scripts": [],
"styles": [
"https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.16/tailwind.css"
]
}
<div id="box" class="box w-20 h-20 bg-red-400 p-3 pointer">
something in here again
</div>
<button id="button" class="p-4 bg-gray-200">button</button>
console.log("sdfkfjdjsf");
const box = document.getElementById("box");
console.log(box.innerHTML);
const btn = document.getElementById("button");
let i = 0;
btn.addEventListener("click", function () {
console.log(i + " - sdffgjs");
i++;
});
body {
padding: 2rem;
}
p {
text-transform: uppercase;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment