-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2048.html
More file actions
102 lines (86 loc) · 2.99 KB
/
2048.html
File metadata and controls
102 lines (86 loc) · 2.99 KB
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
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="I coded a game with Zuitt!" />
<meta property="og:description" content="This Game Development project is powered by Zuitt Coding Bootcamp" />
<meta property="og:site_name" content="I coded a game with Zuitt!" />
<meta property="og:image" content="https://pythodon.github.io/2048-game/images/story-thumbnail-2048.jpg" />
<meta property="og:image:secure_url" content="https://pythodon.github.io/2048-game/images/story-thumbnail-2048.jpg" />
<title>2048</title>
<link rel="stylesheet" type="text/css" href="./styles.css">
</head>
<body>
<div class="game-controls-container">
<button id="new-game-btn">New Game</button>
<div class = "share-button-container">
<div class = "share-label">
Share:
</div>
<div class = "share-icons">
<a href="https://www.facebook.com/sharer/sharer.php?u=https://pythodon.github.io/2048-game/" target = "_blank">
<img src="./images/share_2048-fb.svg">
</a>
</div>
</div>
</div>
<div class = "container">
<h1>2048</h1>
<h2>Created By: Alvendia, Rayzen Louise C.<h2>
<hr id = "top-line">
<div class = "header-container">
<div class = "score-container">
<div class = "score-label">
Score
</div>
<div id = score>
0
</div>
</div>
<div class = "highs-container">
<div class = "score-label">
Best
</div>
<div id = high-score>
0
</div>
</div>
</div>
<div id = "board">
</div>
</div>
<div class="modal-overlay" id="new-game-modal">
<div class="modal-content">
<h2>Start a new game?</h2>
<p>Your current progress will be lost.</p>
<div class="modal-buttons">
<button id="confirm-new-game-btn">Start New Game</button>
<button id="cancel-new-game-btn">Cancel</button>
</div>
</div>
</div>
<div class="modal-overlay" id="game-over-modal">
<div class="modal-content">
<h2>Game Over</h2>
<p>You scored <strong id="final-score">0</strong> points!</p>
<div class="modal-buttons">
<button id="play-again-btn">Play Again</button>
</div>
</div>
</div>
<footer>
<a href="https://www.facebook.com/R8yz3n" target="blank">
<i class="fa-brands fa-facebook"></i>
</a>
<a href="#" target="blank">
<i class="fa-brands fa-x-twitter"></i>
</a>
<a href="#" target="blank">
<i class="fa-brands fa-instagram"></i>
</a>
</footer>
<script type="text/javascript" src = "./scripts.js"></script>
<script src="https://kit.fontawesome.com/23518aaeca.js" crossorigin="anonymous"></script>
</body>
</html>