Created
March 26, 2020 22:44
-
-
Save mikhail-karan/cb10c42a596f1a5500eb50f8cdb120b5 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
| <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