-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconnect4_index.html
100 lines (87 loc) · 5.55 KB
/
connect4_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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Connect 4</title>
<link rel="stylesheet" href="connect4_main.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</head>
<body>
<header class="header">
<h1>Cynthia's Connect 4 Game!</h1>
<h2>Next player turn is: <span id="current-player-name"></span> <span id="current-player-colour"></span></h2>
<h2 id="result"></h2>
</header>
<main class="grid">
<section class="row">
<section class="col" id="row1-col0" onClick="playerClick(event);"></section>
<section class="col" id="row1-col1" onClick="playerClick(event);"></section>
<section class="col" id="row1-col2" onClick="playerClick(event);"></section>
<section class="col" id="row1-col3" onClick="playerClick(event);"></section>
<section class="col" id="row1-col4" onClick="playerClick(event);"></section>
<section class="col" id="row1-col5" onClick="playerClick(event);"></section>
<section class="col" id="row1-col6" onClick="playerClick(event);"></section>
</section>
<section class=" row">
<section class="col" id="row2-col0" onClick="playerClick(event);"></section>
<section class="col" id="row2-col1" onClick="playerClick(event);"></section>
<section class="col" id="row2-col2" onClick="playerClick(event);"></section>
<section class="col" id="row2-col3" onClick="playerClick(event);"></section>
<section class="col" id="row2-col4" onClick="playerClick(event);"></section>
<section class="col" id="row2-col5" onClick="playerClick(event);"></section>
<section class="col" id="row2-col6" onClick="playerClick(event);"></section>
</section>
<section class="row">
<section class="col" id="row3-col0" onClick="playerClick(event);"></section>
<section class="col" id="row3-col1" onClick="playerClick(event);"></section>
<section class="col" id="row3-col2" onClick="playerClick(event);"></section>
<section class="col" id="row3-col3" onClick="playerClick(event);"></section>
<section class="col" id="row3-col4" onClick="playerClick(event);"></section>
<section class="col" id="row3-col5" onClick="playerClick(event);"></section>
<section class="col" id="row3-col6" onClick="playerClick(event);"></section>
</section>
<section class="row">
<section class="col" id="row4-col0" onClick="playerClick(event);"></section>
<section class="col" id="row4-col1" onClick="playerClick(event);"></section>
<section class="col" id="row4-col2" onClick="playerClick(event);"></section>
<section class="col" id="row4-col3" onClick="playerClick(event);"></section>
<section class="col" id="row4-col4" onClick="playerClick(event);"></section>
<section class="col" id="row4-col5" onClick="playerClick(event);"></section>
<section class="col" id="row4-col6" onClick="playerClick(event);"></section>
</section>
<section class="row">
<section class="col" id="row5-col0" onClick="playerClick(event);"></section>
<section class="col" id="row5-col1" onClick="playerClick(event);"></section>
<section class="col" id="row5-col2" onClick="playerClick(event);"></section>
<section class="col" id="row5-col3" onClick="playerClick(event);"></section>
<section class="col" id="row5-col4" onClick="playerClick(event);"></section>
<section class="col" id="row5-col5" onClick="playerClick(event);"></section>
<section class="col" id="row5-col6" onClick="playerClick(event);"></section>
</section>
<section class="row">
<section class="col" id="row6-col0" onClick="playerClick(event);"></section>
<section class="col" id="row6-col1" onClick="playerClick(event);"></section>
<section class="col" id="row6-col2" onClick="playerClick(event);"></section>
<section class="col" id="row6-col3" onClick="playerClick(event);"></section>
<section class="col" id="row6-col4" onClick="playerClick(event);"></section>
<section class="col" id="row6-col5" onClick="playerClick(event);"></section>
<section class="col" id="row6-col6" onClick="playerClick(event);"></section>
</section>
</main>
<section class="reset">
<section>
<button type="button" name="button" id="reset-button" onClick="resetBoard(event);">Start Again</button>
</section>
</section>
<footer>
<p id="score-title">** TOP 10 HIGHSCORES **</p>
<ul id="highscore"></ul>
</footer>
<script src="connect4_code.js" type="text/javascript"></script>
<script src="connect4_ui.js" type="text/javascript"></script>
<script src="connect4_client.js" type="text/javascript"></script>
</body>
</html>