-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
48 lines (45 loc) · 1.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>The Memory Game by elfiservice</title>
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Fredoka+One" rel="stylesheet">
<!-- <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script> -->
<script defer src="js/lib/fontawesome-all.min.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/the-memory-game/sw.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}).catch(function(err) {
// registration failed :(
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
</head>
<body>
<header>
<h1>The Memory Game by <a href="https://www.linkedin.com/in/armando-junior-elfiservice" target="_blank">elfiservice</a></h1>
</header>
<main>
<section id="player_name"></section>
<section>
<div id="game_control"></div>
</section>
<section class="grid_container">
<table id="game_grid"></table>
</section>
</main>
<div class="modal_game hide">
<div class="modal_game_content">
</div>
</div>
<script src="js/app.js"></script>
</body>
</html>