Skip to content

Instantly share code, notes, and snippets.

@mikhail-karan
Created March 26, 2020 22:44
Show Gist options
  • Select an option

  • Save mikhail-karan/cb10c42a596f1a5500eb50f8cdb120b5 to your computer and use it in GitHub Desktop.

Select an option

Save mikhail-karan/cb10c42a596f1a5500eb50f8cdb120b5 to your computer and use it in GitHub Desktop.
<script>
let title = "HTML All The Things";
let num = 0;
function iHave(){
num++;
}
</script>
<main>
<h1>Checkout the {title} podcast</h1>
<p>How many people have checked it out? <span>{num}</span></p>
<div on:click="{iHave}">I Have!</div>
</main>
<style>
main {
text-align: center;
padding: 1em;
max-width: 900px;
margin: 0 auto;
}
div {
text-decoration: underline;
}
h1 {
font-size: 4em;
font-weight: 100;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment