-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
166 lines (164 loc) · 9.49 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<title>KdGanzenbord</title>
<link href="style/styles.css" type="text/css" rel="stylesheet" media="all">
<link href="style/gameboard.css" type="text/css" rel="stylesheet" media="all">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="manifest.json">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#000000">
<meta name="apple-mobile-web-app-title" content="KdGanzenbord">
<meta name="application-name" content="KdGanzenbord">
<meta name="theme-color" content="#ffffff">
<meta name="description" content="Een digitaal ganzenbord in de stijl van KdG">
</head>
<body>
<noscript>
<div>Om KdGanzenbord te spelen moet je JavaScript in je browser aanzetten, klik <a href="http://enable-javascript.com/nl/" target="_blank" >hier</a> om te zien hoe</div>
</noscript>
<header>
<h1>KdGanzenbord</h1>
<h2>KWEK</h2>
</header>
<div id="overlay">
<div role="alertdialog" id="begin">
<h3>Met hoeveel spelers wil je spelen?</h3>
<label for="playerAmount">Aantal spelers:</label>
<select id="playerAmount" autofocus>
<option value="4">4</option>
<option value="3">3</option>
<option value="2">2</option>
<option value="1">1</option>
</select>
<label for="p1" class="hidden">naam Speler 1</label>
<input type="text" name="player1" placeholder="Speler 1" id="p1" maxlength="9">
<label for="p2" class="hidden">naam Speler 2</label>
<input type="text" name="player2" placeholder="Speler 2" id="p2" maxlength="9">
<label for="p3" class="hidden">naam Speler 3</label>
<input type="text" name="player3" placeholder="Speler 3" id="p3" maxlength="9">
<label for="p4" class="hidden">naam Speler 4</label>
<input type="text" name="player4" placeholder="Speler 4" id="p4" maxlength="9">
<button role="button" tabindex="0">Speel!</button>
</div>
<div role="alertdialog" id="end" class="hidden">
<h3 role="textbox">Gewonnen!</h3>
<p></p>
<button autofocus>Nog een keer?</button>
</div>
</div>
<div role="alertdialog" id="whiteoverlay" class="hidden">
<h3 role="textbox"></h3>
<p></p>
</div>
<div role="alert" id="dice">
<div role="textbox" id="die-1" aria-label="Je dobbelde 2" class="rolled-0 hidden"></div>
<div role="textbox" id="die-2" aria-label="en 4" class="rolled-0 hidden"></div>
</div>
<div id="players">
<div id="player-1" class="hidden">
<img src="style/player.svg" alt="image of player 1">
<span></span>
<button aria-label="Speler 1 Dobbel" disabled>Dobbel</button>
</div>
<div id="player-2" class="hidden">
<img src="style/player.svg" alt="image of player 2">
<span></span>
<button aria-label="Speler 2 Dobbel" disabled>Dobbel</button>
</div>
<div id="player-3" class="hidden">
<img src="style/player.svg" alt="image of player 3">
<span></span>
<button aria-label="Speler 3 Dobbel" disabled>Dobbel</button>
</div>
<div id="player-4" class="hidden">
<img src="style/player.svg" alt="image of player 4">
<span></span>
<button aria-label="Speler 4 Dobbel" disabled>Dobbel</button>
</div>
</div>
<div id="game">
<div id="pawn-1" class="place-0 hidden">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 63.98 127.32"><path d="M5.54 111.88l15-51.71-11.24-8.17 10.14-11.83s-6.84-10.3-6.44-18.82 11.3-15.73 19.08-16.08 19.25 5 19.65 14.4-1.83 19.23-5.93 22.22c2.25 3.54 9.36 12.21 9.36 12.21l-10.86 6.17 13.89 52s-10.5 9.43-23.27 10z" fill="#fff"/><path d="M44.31 61.24l14.85 53m-40.72-45.9l-13.65 45.78m54.9-3.53a39 39 0 0 1-55.15.07l-.07-.07m53-58.86a35.22 35.22 0 0 1-49.8 0M48.91 46.08l9.28 8.52m-40.88-11.39l-10 10.9M28.71 5a19.93 19.93 0 1 1 6.59 39.31m12.18-6.54a19.93 19.93 0 1 1-30.48-25.68M12.23 24.79m20.42 20.42" stroke="#000" stroke-miterlimit="10" stroke-width="10" fill="none"/></svg>
</div>
<div id="pawn-2" class="place-0 hidden">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 63.98 127.32"><path d="M5.54 111.88l15-51.71-11.24-8.17 10.14-11.83s-6.84-10.3-6.44-18.82 11.3-15.73 19.08-16.08 19.25 5 19.65 14.4-1.83 19.23-5.93 22.22c2.25 3.54 9.36 12.21 9.36 12.21l-10.86 6.17 13.89 52s-10.5 9.43-23.27 10z" fill="#fff"/><path d="M44.31 61.24l14.85 53m-40.72-45.9l-13.65 45.78m54.9-3.53a39 39 0 0 1-55.15.07l-.07-.07m53-58.86a35.22 35.22 0 0 1-49.8 0M48.91 46.08l9.28 8.52m-40.88-11.39l-10 10.9M28.71 5a19.93 19.93 0 1 1 6.59 39.31m12.18-6.54a19.93 19.93 0 1 1-30.48-25.68M12.23 24.79m20.42 20.42" stroke="#000" stroke-miterlimit="10" stroke-width="10" fill="none"/></svg>
</div>
<div id="pawn-3" class="place-0 hidden">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 63.98 127.32"><path d="M5.54 111.88l15-51.71-11.24-8.17 10.14-11.83s-6.84-10.3-6.44-18.82 11.3-15.73 19.08-16.08 19.25 5 19.65 14.4-1.83 19.23-5.93 22.22c2.25 3.54 9.36 12.21 9.36 12.21l-10.86 6.17 13.89 52s-10.5 9.43-23.27 10z" fill="#fff"/><path d="M44.31 61.24l14.85 53m-40.72-45.9l-13.65 45.78m54.9-3.53a39 39 0 0 1-55.15.07l-.07-.07m53-58.86a35.22 35.22 0 0 1-49.8 0M48.91 46.08l9.28 8.52m-40.88-11.39l-10 10.9M28.71 5a19.93 19.93 0 1 1 6.59 39.31m12.18-6.54a19.93 19.93 0 1 1-30.48-25.68M12.23 24.79m20.42 20.42" stroke="#000" stroke-miterlimit="10" stroke-width="10" fill="none"/></svg>
</div>
<div id="pawn-4" class="place-0 hidden">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 63.98 127.32"><path d="M5.54 111.88l15-51.71-11.24-8.17 10.14-11.83s-6.84-10.3-6.44-18.82 11.3-15.73 19.08-16.08 19.25 5 19.65 14.4-1.83 19.23-5.93 22.22c2.25 3.54 9.36 12.21 9.36 12.21l-10.86 6.17 13.89 52s-10.5 9.43-23.27 10z" fill="#fff"/><path d="M44.31 61.24l14.85 53m-40.72-45.9l-13.65 45.78m54.9-3.53a39 39 0 0 1-55.15.07l-.07-.07m53-58.86a35.22 35.22 0 0 1-49.8 0M48.91 46.08l9.28 8.52m-40.88-11.39l-10 10.9M28.71 5a19.93 19.93 0 1 1 6.59 39.31m12.18-6.54a19.93 19.93 0 1 1-30.48-25.68M12.23 24.79m20.42 20.42" stroke="#000" stroke-miterlimit="10" stroke-width="10" fill="none"/></svg>
</div>
<div id="board">
<a aria-hidden="true" id="tile-0"><p>0</p></a>
<a aria-hidden="true" id="tile-1"><p>1</p></a>
<a aria-hidden="true" id="tile-2"><p>2</p></a>
<a aria-hidden="true" id="tile-3"><p>3</p></a>
<a aria-hidden="true" id="tile-4"><p>4</p></a>
<a aria-hidden="true" id="tile-5"><p>5</p></a>
<a aria-hidden="true" id="tile-6"><p>6</p></a>
<a aria-hidden="true" id="tile-7"><p>7</p></a>
<a aria-hidden="true" id="tile-8"><p>8</p></a>
<a aria-hidden="true" id="tile-9"><p>9</p></a>
<a aria-hidden="true" id="tile-10"><p>10</p></a>
<a aria-hidden="true" id="tile-11"><p>11</p></a>
<a aria-hidden="true" id="tile-12"><p>12</p></a>
<a aria-hidden="true" id="tile-13"><p>13</p></a>
<a aria-hidden="true" id="tile-14"><p>14</p></a>
<a aria-hidden="true" id="tile-15"><p>15</p></a>
<a aria-hidden="true" id="tile-16"><p>16</p></a>
<a aria-hidden="true" id="tile-17"><p>17</p></a>
<a aria-hidden="true" id="tile-18"><p>18</p></a>
<a aria-hidden="true" id="tile-19"><p>19</p></a>
<a aria-hidden="true" id="tile-20"><p>20</p></a>
<a aria-hidden="true" id="tile-21"><p>21</p></a>
<a aria-hidden="true" id="tile-22"><p>22</p></a>
<a aria-hidden="true" id="tile-23"><p>23</p></a>
<a aria-hidden="true" id="tile-24"><p>24</p></a>
<a aria-hidden="true" id="tile-25"><p>25</p></a>
<a aria-hidden="true" id="tile-26"><p>26</p></a>
<a aria-hidden="true" id="tile-27"><p>27</p></a>
<a aria-hidden="true" id="tile-28"><p>28</p></a>
<a aria-hidden="true" id="tile-29"><p>29</p></a>
<a aria-hidden="true" id="tile-30"><p>30</p></a>
<a aria-hidden="true" id="tile-31"><p>31</p></a>
<a aria-hidden="true" id="tile-32"><p>32</p></a>
<a aria-hidden="true" id="tile-33"><p>33</p></a>
<a aria-hidden="true" id="tile-34"><p>34</p></a>
<a aria-hidden="true" id="tile-35"><p>35</p></a>
<a aria-hidden="true" id="tile-36"><p>36</p></a>
<a aria-hidden="true" id="tile-37"><p>37</p></a>
<a aria-hidden="true" id="tile-38"><p>38</p></a>
<a aria-hidden="true" id="tile-39"><p>39</p></a>
<a aria-hidden="true" id="tile-40"><p>40</p></a>
<a aria-hidden="true" id="tile-41"><p>41</p></a>
<a aria-hidden="true" id="tile-42"><p>42</p></a>
<a aria-hidden="true" id="tile-43"><p>43</p></a>
<a aria-hidden="true" id="tile-44"><p>44</p></a>
<a aria-hidden="true" id="tile-45"><p>45</p></a>
<a aria-hidden="true" id="tile-46"><p>46</p></a>
<a aria-hidden="true" id="tile-47"><p>47</p></a>
<a aria-hidden="true" id="tile-48"><p>48</p></a>
<a aria-hidden="true" id="tile-49"><p>49</p></a>
<a aria-hidden="true" id="tile-50"><p>50</p></a>
<a aria-hidden="true" id="tile-51"><p>51</p></a>
<a aria-hidden="true" id="tile-52"><p>52</p></a>
<a aria-hidden="true" id="tile-53"><p>53</p></a>
<a aria-hidden="true" id="tile-54"><p>54</p></a>
<a aria-hidden="true" id="tile-55"><p>55</p></a>
<a aria-hidden="true" id="tile-56"><p>56</p></a>
<a aria-hidden="true" id="tile-57"><p>57</p></a>
<a aria-hidden="true" id="tile-58"><p>58</p></a>
<a aria-hidden="true" id="tile-59"><p>59</p></a>
<a aria-hidden="true" id="tile-60"><p>60</p></a>
<a aria-hidden="true" id="tile-61"><p>61</p></a>
<a aria-hidden="true" id="tile-62"><p>62</p></a>
<a aria-hidden="true" id="tile-63"><p>63</p></a>
</div>
</div>
<script type="text/javascript" src="game.js"></script>
</body>
</html>