-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
123 lines (123 loc) · 4.94 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Frisbee</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="app">
<v-app>
<v-main class="green lighten-3">
<v-container>
<v-row>
<v-col cols="4">
<v-text-field tabindex="1" class="input" color="green darken-3" v-model="home.name" label="Player's name"></v-text-field>
<v-col cols="12" class="text-center player">
{{ home.name || 'HOME' }}
</v-col>
<v-row>
<v-col cols="12" class="text-center score">
{{ home.score }}
</v-col>
</v-row>
<v-row>
<v-col cols="12" class="text-center last grey--text text--darken-1">
({{ home.last > 0 ? '+' + home.last : home.last }})
</v-col>
</v-row>
<v-btn @click="addToHome" class="green scoreButton" dark block>SCORE!</v-btn>
</v-col>
<v-col cols="4">
<v-slider tabindex="2" class="input" color="green darken-3" track-color="green lighten-2" v-model="scoreToWin" label="Score to win"></v-slider>
<v-col cols="12" class="text-center vs green--text text--darken-3">
VS
</v-col>
<v-row>
<v-col cols="12" class="text-center score">
{{ pool }}
</v-col>
</v-row>
<v-row>
<v-col cols="12" class="text-center mode">
{{ scoreToWin == 0 ? 'Causal Mode' : 'First to ' + scoreToWin }}
</v-col>
</v-row>
<v-btn @click="addPool" class="green darken-3 poolButton mb-5" dark block>Stack</v-btn>
<v-btn @click="deductPool" class="red poolButton" dark block>Bad Serve</v-btn>
</v-col>
<v-col cols="4">
<v-text-field tabindex="1" class="input" color="green darken-3" v-model="away.name" label="Player's name"></v-text-field>
<v-row>
<v-col cols="12" class="text-center player">
{{ away.name || 'AWAY' }}
</v-col>
</v-row>
<v-row>
<v-col cols="12" class="text-center score">
{{ away.score }}
</v-col>
</v-row>
<v-row>
<v-col cols="12" class="text-center last grey--text text--darken-1">
({{ away.last > 0 ? '+' + away.last : away.last }})
</v-col>
</v-row>
<v-btn @click="addToAway" class="green scoreButton" dark block>SCORE!</v-btn>
</v-col>
</v-row>
</v-container>
<v-btn text fab @click="help=true" fixed top right>
<v-icon>mdi-help-circle-outline</v-icon>
</v-btn>
</v-main>
<v-dialog v-model="won">
<v-card width="100vw" class="text-center pa-5 score">
{{ winner }} won!!!
<br>
{{ home.score }} - {{ away.score }}
<v-card-actions class="text-center">
<v-btn @click="reset" class="green" block dark>Reset</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog v-model="help" width="800">
<v-card>
<v-card-title>
Hot Key
</v-card-title>
<v-card-text>
<v-simple-table>
<template v-slot:default>
<tr>
<td><v-icon>mdi-arrow-up</v-icon></td>
<td>Stack: Pool add one score</td>
</tr>
<tr>
<td><v-icon>mdi-arrow-down</v-icon></td>
<td>Bad Serve: Pool deduct one score</td>
</tr>
<tr>
<td><v-icon>mdi-arrow-left</v-icon></td>
<td>Home scores</td>
</tr>
<tr>
<td><v-icon>mdi-arrow-right</v-icon></td>
<td>Away scores</td>
</tr>
</template>
</v-simple-table>
</v-card-text>
</v-card>
</v-dialog>
</v-app>
</div>
<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js" integrity="sha256-ngFW3UnAN0Tnm76mDuu7uUtYEcG3G5H1+zioJw3t+68=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.js" integrity="sha256-b4RV6u+xflpPubfyN5gdooQRpDjROUcaCCSWbKQNX9Y=" crossorigin="anonymous"></script>
<script src="js/main.js" charset="utf-8"></script>
</body>
</html>