loloof64

Udemy Vue JS Course Assignement 3 - html

Oct 1st, 2020
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.03 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="UTF-8" />
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6.     <title>Vue Basics</title>
  7.     <link
  8.      href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
  9.      rel="stylesheet"
  10.    />
  11.     <link rel="stylesheet" href="styles.css" />
  12.     <script src="https://unpkg.com/vue@next" defer></script>
  13.     <script src="app.js" defer></script>
  14.   </head>
  15.   <body>
  16.     <header>
  17.       <h1>Reactivity in Action</h1>
  18.     </header>
  19.     <section id="assignment">
  20.       <button @click="addFive">Add 5</button>
  21.       <button @click="addOne">Add 1</button>
  22.       <!-- 1) Connect the buttons and calculate a value (a number) -->
  23.       <!-- Show "Not there yet" until you reach a result of exactly 37 -->
  24.       <!-- Show "Too much!" if the result is greater than 37 -->
  25.       <p>Result: {{ shownResult }}</p>
  26.       <!-- 2) Watch for changes in "result" and reset the value to 0 after 5 seconds -->
  27.     </section>
  28.   </body>
  29. </html>
  30.  
Add Comment
Please, Sign In to add comment