-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (105 loc) · 4.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="description" content="Connect 4 vs Robot" />
<meta name="author" content="iambriansreed" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1" />
<title>Connect 4</title>
</head>
<body>
<div class="app">
<div id="board" data-turn="player1">
<div class="next">
<div class="opening">
<div class="background">
<div></div>
</div>
<div class="foreground">
<div></div>
</div>
</div>
<div class="track">
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="checker player1">
<div>
<div><div></div></div>
</div>
</div>
</div>
</div>
<div class="columns">
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
</div>
<div class="foreground"></div>
</div>
<footer>
<div>Made with ❤️ by <a href="https://iambrian.com">Brian</a>.</div>
<div class="version">%version%</div>
</footer>
<div id="size"></div>
<div class="modal" id="game-start">
<div class="backdrop"></div>
<div class="dialog">
<h1 data-show="1" data-start="ai">Hello Human.</h1>
<p data-show="2">I am a robot.</p>
<p data-show="3">Can you beat me<span class="blink">?</span></p>
<div class="intro">
<div data-show="4">
<div class="checker player1">
<div>
<div><div></div></div>
</div>
</div>
<p>human</p>
</div>
<div data-show="5">
<div class="checker player2">
<div>
<div><div></div></div>
</div>
</div>
<p>robot</p>
</div>
</div>
<footer data-show="6">
<button type="button" class="btn" data-start>Start</button>
</footer>
</div>
</div>
<div class="modal" id="game-over">
<div class="backdrop"></div>
<div class="dialog">
<h1 data-show="1"><span id="win-message"></span></h1>
<footer data-show="2">
<button type="button" data-restart class="btn">Reset</button>
</footer>
</div>
</div>
<div class="modal" id="game-tie">
<div class="backdrop"></div>
<div class="dialog">
<h1>Tie Game!</h1>
<p>That was a good game.</p>
<footer>
<button type="button" data-restart class="btn">Reset</button>
</footer>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</div>
</body>
</html>