Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <template>
  2. <div id="app">
  3. <!-- <div class="score">{{ scoreYellow }}</div>-->
  4. <MainPage />
  5. <!-- <div class="score">{{ scoreBlue }}</div>-->
  6. </div>
  7. </template>
  8.  
  9. <script>
  10.  
  11. import MainPage from "@/components/MainPage";
  12. export default {
  13. name: 'app',
  14. components: {
  15. MainPage
  16. },
  17. data() {
  18. return {
  19. scoreYellow: 0,
  20. scoreBlue: 0
  21. }
  22. },
  23. // methods: {
  24. // update(winner) {
  25. // if (winner === 1) {
  26. // this.scoreYellow++;
  27. // if (this.scoreYellow === 10) {
  28. // alert("Yellow WINNER");
  29. // this.scoreBlue = 0;
  30. // this.scoreYellow = 0;
  31. // }
  32. // }
  33. // else {
  34. // this.scoreBlue++;
  35. // if (this.scoreBlue === 10) {
  36. // alert("BLUE WINNER");
  37. // this.scoreBlue = 0;
  38. // this.scoreYellow = 0;
  39. // }
  40. // }
  41. // }
  42. // }
  43. }
  44. </script>
  45.  
  46. <style>
  47. * {
  48. padding: 0;
  49. margin: 0;
  50. }
  51. body {
  52. background-color: #cccccc;
  53. }
  54. #app {
  55. display: flex;
  56. justify-content: space-around;
  57. align-items: center;
  58. }
  59. /*.score {*/
  60. /* font-size: 25px;*/
  61. /*}*/
  62.  
  63. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement