-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (39 loc) · 1.44 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<title>Spyfall</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#333333">
<meta name="description" content="Just another Spyfall game">
</head>
<body>
<div class="container">
<input type="text" id="nameinput" aria-label="Player name" placeholder="name here.."></input>
<div id="top-buttons">
<button id="new-player">New Player</button>
<button id="start-game">Start Game</button>
</div>
<div id="players">
<h1>Players</h1>
<div v-for='player in players' class="player" v-on:click="showhide">
<p class="p-name">{{player.name}}</p>
<p class="p-loc">Location: <span class="p-loc-var">{{player.location}}</span></p>
<p class="p-role">Role: <span class="p-role-var">{{player.role}}</span></p>
</div>
</div>
<div id="clock">
<h1>Timer</h1>
<p>{{minutes}} : {{seconds}}</p>
</div>
<div id="locations">
<h1>Locations</h1>
<p v-for="location in locations" class="location">{{location.location}}</p>
</div>
</div>
</body>
</html>