-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·96 lines (89 loc) · 2.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;900&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/c7e4c21339.js" crossorigin="anonymous"></script>
<script src="./script.js"></script>
<title>Teambuilder</title>
</head>
<body onload="onStart();" class="center">
<div class="flex-container center">
<!-- Form with textfield for the playernames and skilllevel (will be added). -->
<form onsubmit="return addPlayer()" class="wrap">
<div class="block center">
<label for="player">Playername</label>
<input
type="text"
name="player"
id="player"
placeholder="Playername"
maxlength="15"
required
autofocus
/>
</div>
</form>
<form onsubmit="return false">
<div class="block center">
<label for="skill">Skill</label>
<input
type="range"
min="1"
max="5"
name="skill"
id="skill"
class="slider"
value="1"
/>
</div>
</form>
<div class="block center">
<label>Submit</label>
<!-- Button to create the teams. -->
<div>
<button id="submit" class="button" type="button" onclick="return addPlayer()">Add player</button>
</div>
</div>
<form onsubmit="return false">
<div class="block center">
<label for="numberOfTeams">Teams</label>
<div class="teamsForm">
<button class="form button" type="button" onclick="subNumberOfTeams()"><i class="fas fa-minus"></i></button>
<input
type="number"
min="1"
max="99"
name="numberOfTeams"
id="numberOfTeams"
value="1"
/>
<button class="form button" type="button" onclick="addNumberOfTeams()"><i class="fas fa-plus"></i></button>
</div>
</div>
</form>
<div class="block center">
<label>Create</label>
<!-- Button to create the teams. -->
<div class="create nowrap">
<button class="button" type="button" onclick="randomTeams()">Random</button>
<button class="button" type="button" onclick="balancedTeams()">Balanced</button>
</div>
</div>
</div>
<div id="list-container">
<!-- Playerlist. -->
<div id="pList" class="list">
<h3>Players</h3>
<p><ol id=playerList class="list"></ol></p>
</div>
<!-- Teamlist. -->
<div id="tList" class="list">
<h3>Teams</h3>
<p><ol id=teamList class="list"></ol></p>
</div>
</div>
</body>
</html>