-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
141 lines (140 loc) · 5.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Memory Game with HTML5 CSS3 and JS" />
<meta name="keywords" content="Memory , Game , HTML5 , CSS3 , JS" />
<meta name="author" content="Khazri" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0" /> -->
<link rel="shortcut icon" href="images/logo.png" type="image/x-icon" />
<title>Memory Game</title>
<!--CDN Fontawesome-->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!--CDN Sweet Alert-->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!--Link CSS-->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main>
<div class="content-start">
<button><i class="fa-solid fa-play"></i> start play</button>
</div>
<h1><i class="fa-solid fa-brain"></i> memory game</h1>
<section class="memory-game">
<section class="info-memory-game">
<div class="player">
<i class="fa-solid fa-dice-three"></i>
<p>Name : <span>Player</span></p>
</div>
<div class="timer">
<i class="fa-solid fa-hourglass-start"></i>
<p>Timer : <span> 01min</span></p>
</div>
<div class="tries">
<i class="fa-solid fa-sliders"></i>
<p>Tries : <span>00</span>/ 15</p>
</div>
<div class="restart">
<i class="fa-sharp fa-solid fa-rotate-right"></i>
</div>
</section>
<section class="content-memory-game">
<div class="cards">
<div class="card" data-anime="Takashi">
<div class="face im1"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Takashi">
<div class="face im1"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Naruto">
<div class="face im2"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Naruto">
<div class="face im2"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Gara">
<div class="face im3"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Gara">
<div class="face im3"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Hinat">
<div class="face im4"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Hinat">
<div class="face im4"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Saski">
<div class="face im5"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Saski">
<div class="face im5"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Sakura">
<div class="face im6"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
<div class="card" data-anime="Sakura">
<div class="face im6"></div>
<div class="back">
<i class="fa-solid fa-circle-radiation fa-5x"></i>
</div>
</div>
</div>
</section>
</section>
<!--Audios-->
<audio src="audios/same.wav" preload="auto" id="same"></audio>
<audio src="audios/different.wav" preload="auto" id="different"></audio>
<audio
src="audios/Naruto-background-song.mp3"
preload="auto"
id="back-naruto-song"
></audio>
<audio src="audios/lose.wav" preload="auto" id="lose"></audio>
<audio src="audios/win.wav" preload="auto" id="win"></audio>
</main>
<!--Link JS-->
<script src="main.js"></script>
</body>
</html>