-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
64 lines (54 loc) · 2.24 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UFT-8">
<title id="title">TicTacToe Titan</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="A simple tic tac toe game.">
<meta name="theme-color" content="#2980b9"/>
<meta name="author" content="Kelvin Kamau"/>
<meta name="keywords"
content="tic tac toe, kelvin kamau,game, kenya game developer, progressive web app"/>
<link rel="canonical" href="https://kelvinkamau.github.io/TicTacToe"/>
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="icon" href="images/ttc.png" type="image/png"/>
<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet'>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<div class="container">
<h1>TicTacToe Titan</h1>
<p>Begin by choosing a square for your move.<br>You play as <span class="purple">X</span> and the computer as <span class="black">O</span><br>
</p>
<p id="score-display" class="scoreset">[ You: 0 / Computer: 0 ]</p>
</div>
<div class="tic-tac-toe">
<div id="square1" class="tile free"></div>
<div id="square2" class="tile free"></div>
<div id="square3" class="tile free"></div>
<div id="square4" class="tile free"></div>
<div id="square5" class="tile free"></div>
<div id="square6" class="tile free"></div>
<div id="square7" class="tile free"></div>
<div id="square8" class="tile free"></div>
<div id="square9" class="tile free"></div>
</div>
<div class="container">
<p>Built by Kamau. <a href="https://github.com/kelvinkamau/TicTacToe" target="_blank"> <br>Contribute to the project</a></p>
</div>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/TicTacToe/sw.js')
.then(function () {
console.log("Service Worker Registered");
});
}
);
}
</script>
</body>
</html>