-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
103 lines (98 loc) · 3.38 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
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
103
<!DOCTYPE html>
<html>
<head>
<title>Flapjack Fwop</title>
<meta name="description" content="Get the butter on all of the pancakes in as few clicks as possible!">
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1"
/>
<!-- Web Monetization -->
<meta name="monetization" content="$ilp.uphold.com/rEgHHBQGDUDP" />
<link rel="apple-touch-icon" sizes="120x120" href="apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" />
<link rel="manifest" href="site.webmanifest" />
<meta name="msapplication-TileColor" content="#00aba9" />
<meta name="theme-color" content="#ffffff" />
<meta property="og:image:height" content="520" />
<meta property="og:image:width" content="993" />
<meta property="og:title" content="Flapjack Fwop!" />
<meta property="og:type" content="website">
<meta
property="og:description"
content="Get the butter on all of the pancakes in as few clicks as possible!"
/>
<meta property="og:url" content="http://cassidoo.github.io/flapjack-fwop" />
<meta
property="og:image"
content="https://cassidoo.github.io/flapjack-fwop/og-image.jpg"
/>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Flapjack Fwop!" />
<meta
name="twitter:description"
content="Get the butter on all of the pancakes in as few clicks as possible!"
/>
<meta name="twitter:creator" content="@cassidoo" />
<meta
name="twitter:image"
content="https://cassidoo.github.io/flapjack-fwop/og-image.jpg"
/>
<script type="text/javascript" src="game.js"></script>
<link
href="https://fonts.googleapis.com/css?family=Baloo+Chettan"
rel="stylesheet"
/>
<link rel="stylesheet" href="main.css" />
</head>
<body>
<div class="banner">
<div class="line">
<span>Flapjack Fwop</span>
</div>
</div>
<div class="score">
<div class="scored">
<span id="clicks">0</span>
Clicks
</div>
<div class="line hide"></div>
<div class="best scored hide">Best Score <span id="best"></span></div>
</div>
<div class="board" id="board"></div>
<div class="help">
<img src="question-circle.svg" alt="how to play" />
<div class="helptext" tabindex="0">
<h3>How to Play</h3>
<p>
Click on the pancakes to add or remove butter from them, plus the ones
on the top, left, bottom, and right of the pancake you clicked.
<br />Get butter on all of the pancakes to win!
</p>
</div>
</div>
<button class="volume">
<img src="volume-high.svg" id="vol" alt="volume" />
</button>
<script>
(function () {
generateGrid(randomGrid());
audioSetup();
if (localStorage.getItem("ffbestscore") !== null) {
Array.from(document.getElementsByClassName("hide")).forEach((e) => {
e.classList.remove("hide");
});
document.getElementById("best").innerHTML = localStorage.getItem(
"ffbestscore"
);
}
})();
</script>
<script
async
src="https://platform.twitter.com/widgets.js"
charset="utf-8"
></script>
</body>
</html>