-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
39 lines (38 loc) · 1.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>2048 Game - A Simple Brain Teaser</title>
<link rel="stylesheet" href="Web-Version/style.css">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link rel="manifest" href="manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Join the numbers and get to the 2048 tile! Careful: this game is extremely addictive!">
<meta name="theme-color" content="#bbada0">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-B01ML0VLV1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-B01ML0VLV1');
</script>
</head>
<body>
<div id="gameContainer" style="text-align: center" onselectstart="return false" ondragstart="return false">
<div id="title" style="text-align: center">2048</div>
<div id="subtitle" style="text-align: center">Join the numbers and get to the 2048 tile!</div>
<div id="scoreContainer">
<div>Score: <span id="score">0</span></div>
<div>High Score: <span id="highScore">0</span></div>
</div>
<div id="gridContainer"></div>
<button class="buttons" onclick="window.location.href='Web-Version/about.html'">About</button>
</div>
<script src="Web-Version/script.js"></script>
<script>
document.getElementById('gridContainer').addEventListener('touchmove', function(e) {
e.preventDefault();
}, { passive: false });
</script>
</body>
</html>