-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
138 lines (136 loc) · 6.38 KB
/
index.html
File metadata and controls
138 lines (136 loc) · 6.38 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!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>Find Another</title>
<link href="https://fonts.googleapis.com/css?family=Mansalva&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lakki+Reddy&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Kalam:400,700&display=swap" rel="stylesheet">
<script src="./vue.js/js/vue.js"></script>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div id="app">
<div class="container">
<div class="players">
<div class="name">
{{names[0].toUpperCase()}}
</div>
<div class="namechanging" v-if="showchangename" >
<input type="button" class= "btn" @click="form1" value="Change Name">
<div class="form" v-if="showform">
<input type="text" v-model="changedPlayerName">
<input type="submit" @click="changeNamep1" value="Done">
</div>
</div>
<div class="details" v-if="showdetails">
<div class="points">
Point:{{p1points}}
</div>
<div class="selected" v-if="selectbox" >
<span v-if="p1turn"> your turn</span><br>
<span>Your selection</span>
<div class="selectedbox">
<div class="chosenone" >
{{p1selection.toUpperCase()}}
</div>
</div>
</div>
</div>
</div>
<div class="playboard">
<div class="title">
<div class="main">
hello play board
</div>
<div class="timer" v-if="gameStart">
<input type="text" v-model="min">:<input type="text" v-model="sec">:<input type="text" v-model="ms">
</div>
<div class="start">
<button @click="home" v-if="showhome">Home</button>
<button @click="startGame"v-if="gameIsOn">Start</button>
<button @click="restartGame" v-else>Re-start</button>
</div>
</div>
<div class="selection" v-if="gameStart">
<div class="box" v-for="(select,index) in selections" >
<div class="choose" @click="selected(index)" :key="index">
<div>
<li v-bind:style="bindingStyle"><span>{{select.toUpperCase()}}</span></li>
</div>
</div>
</div>
</div>
<div class="dead" v-else-if="thisisdead"><span>
This one is already dead <br>
<button @click="backToGame">Back to Game</button>
</span></div>
<div class="gamedraw" v-else-if="gameisdraw">
<span>
You have to play one more time in order to get the winner. <br>
</span>
<button @click="restartGame">Start Again</button>
</div>
<div class="winner" v-else-if="winningScreen">
<span>
the winner is <br><div v-html="winner"> </div>
</span>
<button @click="restartGame">start again</button>
</div>
<div class="notvalid" v-else-if="notvalid">
You are trying to cheat in this game. <br>
<button @click="backToGame">Back to Game</button>
</div>
<div v-else>
<div class="description">
Game has not been started yet. <br>
Change the names of players if you wish. <br>
The text in a box will be visible for a while right after you start a game.<br>
Enjoy the Game <br>
Click the button above to start the game.
<div class="currenttime">
{{time}}
</div>
<div class="musicbutton">
<button @click="turnon" v-if="GOT" >music : on</button>
<button @click="turnoff" v-else>music : off</button>
</div>
</div>
</div>
</div>
<div class="players">
<div class="name">
{{names[1].toUpperCase()}}
</div>
<div class="namechanging" v-if="showchangename">
<input type="button" class="btn" @click="form2" value="Change Name">
<div class="form" v-if="showform2">
<input type="text" v-model="changedPlayerName">
<input type="submit" @click="changeNamep2" value="Done">
</div>
</div>
<div class="details" v-if="showdetails">
<div class="points">
Point: {{p2points}}
</div>
<div class="selected" v-if="selectbox">
<span v-if="p2turn"> your turn</span><br>
<span>Your selection</span>
<div class="selectedbox">
<div class="chosenone">
{{p2selection.toUpperCase()}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<style>
@import url('https://fonts.googleapis.com/css?family=Reenie+Beanie&display=swap');
</style>
<script src="index.js"></script>
</html>