-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
167 lines (153 loc) · 5.8 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="src/style.css" />
<style>
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
@media (max-width: 500px) {
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}
</style>
<title>Memory Game</title>
</head>
<body>
<a
href="https://github.com/crisgon/Memory-game"
class="github-corner"
aria-label="View source on GitHub"
><svg
width="80"
height="80"
viewBox="0 0 250 250"
style="
fill: #2f3542;
color: #fff;
position: absolute;
top: 0;
border: 0;
right: 0;
"
aria-hidden="true"
>
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="currentColor"
style="transform-origin: 130px 106px"
class="octo-arm"
></path>
<path
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor"
class="octo-body"
></path></svg
></a>
<div class="overlay overlay-hidden" id="overlay"></div>
<button class="config-btn" id="config-btn">⚙️</button>
<div class="levels levels-hidden" id="levels">
<h3>Difficulty</h3>
<label>
Easy
<input type="radio" name="difficulty" id="easy" checked />
</label>
<label>
Medium
<input type="radio" name="difficulty" id="medium" />
</label>
<label>
Hard
<input type="radio" name="difficulty" id="hard" />
</label>
</div>
<main class="main-container" id="game-container">
<header class="game-header">
<h2 class="timer">
<svg
width="51"
height="51"
viewBox="0 0 51 51"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g clip-path="url(#clip0)">
<path
d="M18.8838 0V4.19786H23.0817V6.29674C24.5509 6.08688 25.8103 6.08688 27.2796 6.29674V4.19786H31.4774V0H18.8838Z"
fill="white"
/>
<path
d="M39.4532 13.8528L40.9224 12.3836L42.6016 14.0628L45.5401 11.1243L39.2434 4.82751L36.3049 7.76603L37.984 9.44509L36.095 11.3341C26.0202 5.24723 13.0069 8.3956 7.12998 18.4704C1.25305 28.5452 4.40132 41.1387 14.2663 47.2255C24.1312 53.3124 37.1444 50.1641 43.0214 40.0893C48.2687 31.4837 46.7995 20.5694 39.4532 13.8528ZM25.1806 43.8673C16.9948 43.8673 10.4882 37.3607 10.4882 29.175C10.4882 20.9892 16.9948 14.4825 25.1806 14.4825V29.1749H39.8729C39.873 37.3606 33.3663 43.8673 25.1806 43.8673Z"
fill="white"
/>
</g>
<defs>
<clipPath id="clip0">
<rect width="50.3226" height="50.3226" fill="white" />
</clipPath>
</defs>
</svg>
<span id="timer-count">01:00</span>
</h2>
<div class="game-header-info">
<button class="start-restart-btn" id="start-btn">
Start
<svg
width="15"
height="15"
viewBox="0 0 15 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g clip-path="url(#clip0)">
<path
d="M12.5368 1.887C11.7418 1.093 10.8068 0.528002 9.8098 0.190002V2.325C10.2898 2.564 10.7448 2.875 11.1438 3.275C13.1368 5.269 13.1368 8.511 11.1438 10.504C9.1508 12.494 5.9108 12.494 3.9148 10.504C1.9238 8.509 1.9238 5.269 3.9148 3.275C3.9198 3.269 3.9358 3.259 3.9428 3.25H3.9448L5.1258 4.429L5.1188 0.685002L1.3768 0.680002L2.5528 1.856C2.5458 1.868 2.5348 1.88 2.5258 1.887C-0.237198 4.649 -0.237198 9.13 2.5258 11.892C5.2928 14.657 9.7708 14.657 12.5368 11.892C15.2978 9.13 15.3008 4.649 12.5368 1.887Z"
fill="#7158E2"
/>
</g>
<defs>
<clipPath id="clip0">
<rect
width="14.155"
height="14.155"
fill="white"
transform="translate(0.453796)"
/>
</clipPath>
</defs>
</svg>
</button>
<span class="moves-count" id="moves-count">Moves: 0</span>
</div>
</header>
<section class="board" id="board"></section>
</main>
<section
class="game-completed game-completed-hidden"
id="game-completed"
></section>
<script src="src/main.js"></script>
</body>
</html>