-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
78 lines (74 loc) · 2.88 KB
/
index.html
File metadata and controls
78 lines (74 loc) · 2.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" >
<title>Flip Puzzle Game</title>
<link rel="shortcut icon" type="image/png" href="assets/pp-icon.png"/>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript" src="js/game.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-120045106-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-120045106-1');
</script>
</head>
<body>
<!-- <audio src="./assets/peppa.mp3" controls autoplay loop ></audio> -->
<audio id="mysoundclip" src="./assets/button.mp3" ></audio>
<audio id="mysoundclip1" preload="auto">
<source src="./assets/cheer.mp3"> </source>
</audio>
<div class="container">
<h1>Flip Puzzle Game</h1>
<div class="tooltip"><i class="button fa fa-volume-up"></i>
<span id="mute" class="tooltiptext">Mute</span>
</div>
<p class="counter">your steps: <span id="count"></span> vs. best record: <span id="record"></span></p>
<div class="board"></div>
<nav>
<input type="button" class="retry" value="Reset Board">
<input type="button" class="restart" value="New Game">
<input type="button" class="instructions" value="How to Play">
</nav>
<div class="author">
<a href='https://www.linkedin.com/in/luke-chen-42342458/' target='_blank'>
<i class="fa fa-linkedin-square" aria-hidden="true"> </i></a>
<a href='https://github.com/lukewhchen' target='_blank'>
<i class="fa fa-github" aria-hidden="true"> </i></a>
<a href='https://lukewhchen.github.io/' target='_blank'> Make by Luke Chen</i><br/></a>
</div>
<div id="rule-modal" class="modal">
<div class="content">
<h2>How to Play</h2>
<div class="rule">
<li>Click a square to flip its color.</li>
<li>All adjacent squares will flip at the same time.</li>
<li>Make all squares turn pink.</li>
</div>
<footer>
<input type="button" class="play-button" value="Play">
</footer>
</div>
</div>
<div id="level-modal" class="modal">
<div class="content">
<h2>CONGRATULATION !</h2>
<div class="rule">
<li>Awesome! You nailed it.</li>
<li>Let's move on to the next level.</li>
</div>
<footer>
<input type="button" class="play-button" value="Next Level">
</footer>
</div>
</div>
</div>
</body>
</html>