-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (101 loc) · 3.56 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
<!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" />
<meta name="theme-color" content="#000000" />
<link rel="shortcut icon" href="./icons/icon-128x128.png" type="image/x-icon"/>
<link rel="apple-touch-icon" href="./icons/icon-128x128.png" />
<link rel="apple-touch-icon" href="./icons/icon-512x512.png" />
<meta name="apple-mobile-web-app-status-bar" content="#000000" />
<link rel="stylesheet" href="./css/fonts.css" />
<link rel="stylesheet" href="./css/style.css" />
<link rel="stylesheet" href="./css/main.css" />
<link rel="stylesheet" href="./css/menu.css" />
<link rel="manifest" href="./manifest.json" />
<title>Who's the Spy?</title>
</head>
<body>
<main>
<div class="titled">
<p class="titlef">Who's the Spy?</p>
</div>
<div class="center">
<p class="frog">Select how many Players you have:</p>
<form>
<fieldset data-quantity>
<legend>Change quantity</legend>
</fieldset>
</form>
<p class="frog">Select how many Spies do you need:</p>
<form>
<fieldset data-quantity2>
<legend>Change quantity</legend>
</fieldset>
</form>
<p class="frog">How much time do you need? (Minutes):</p>
<form>
<fieldset data-quantity3>
<legend>Change quantity</legend>
</fieldset>
</form>
<button class="startB" id="startB">Start</button>
</div>
<div class="game">
<h1 id="out11">Player 1</h1>
<h1 id="out1"></h1>
<button class="NextB" id="NextB">Next</button>
<br>
<button class="ShowB" id="ShowB">Show</button>
<br>
<button class="HideB" id="HideB">Hide</button>
</div>
<div class="last">
<h1 id="out2"></h1>
<h1 id="timer"></h1>
</div>
</main>
<script type="module">
import QuantityInput from "./js/quantity.js";
(function () {
let quantities = document.querySelectorAll("[data-quantity]");
if (quantities instanceof Node) quantities = [quantities];
if (quantities instanceof NodeList)
quantities = [].slice.call(quantities);
if (quantities instanceof Array) {
quantities.forEach(
(div) =>
(div.quantity = new QuantityInput(div, "Down", "Up", "lm1"))
);
}
})();
(function () {
let quantities2 = document.querySelectorAll("[data-quantity2]");
if (quantities2 instanceof Node) quantities2 = [quantities2];
if (quantities2 instanceof NodeList)
quantities2 = [].slice.call(quantities2);
if (quantities2 instanceof Array) {
quantities2.forEach(
(div) =>
(div.quantity = new QuantityInput(div, "Down", "Up", "lm2"))
);
}
})();
(function () {
let quantities3 = document.querySelectorAll("[data-quantity3]");
if (quantities3 instanceof Node) quantities3 = [quantities3];
if (quantities3 instanceof NodeList)
quantities3 = [].slice.call(quantities3);
if (quantities3 instanceof Array) {
quantities3.forEach(
(div) =>
(div.quantity = new QuantityInput(div, "Down", "Up", "lm3"))
);
}
})();
</script>
<script src="./js/words.js"></script>
<script src="./js/app.js"></script>
</body>
</html>