keynote presentation on Vue.js and a sample webpage

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Using Vue To A Dissapointing Degree Of Success</title>
  6. <link rel="stylesheet" type="text/css" href="index.css">
  7. <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
  8. </head>
  9. <body>
  10. <h1>Using Vue To Make A Webpage Interesting</h1>
  11. <p>Each box contains an example of <em>Vue.js</em> being used in a unique way.</p>
  12. <div class="grid-container">
  13. <div id="item4">
  14. <p>{{ displayDate() }}</p>
  15. </div>
  16. <div id="item1">
  17. <p>{{ name }}</p>
  18. <p> Open the dev console and set item1.name = "Your Name"</p>
  19. </div>
  20. <div id="item2">
  21. <p>{{ greet() }}</p>
  22. <p> Open the dev console and set item2.name = "Your Name"</p>
  23. </div>
  24. <div id="item3">
  25. <p>{{ message }}</p>
  26. <a v-bind:href= "website">Surprise Website</a>
  27. <p> You can change the link by setting item3.website = "Any SFW URL You Like!"</p>
  28. </div>
  29. <div id="item6">
  30. <p> Set item6.seen = true</p>
  31. <p v-if="seen">Now You Can See This</p>
  32. </div>
  33. <div id="item7">
  34. <p> You Have Clicked The Button {{ count }} Times</p>
  35. <a class="button is-danger" @click.prevent="incrementCounter">Click Me</a>
  36. </div>
  37. <div id="item8">
  38. <p>{{ message }}</p>
  39. <a v-bind:href= "website">Click Me</a>
  40. </div>
  41. <div id="item5">
  42. <p> This Page Loaded At: </p>
  43. <p>{{ displayTime() }}</p>
  44. </div>
  45. </div>
  46. <script src="index.js"></script>
  47. </body>
  48. </html>