-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (47 loc) · 2.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Witchy Pairings</title>
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/52177094a7.js" crossorigin="anonymous"></script>
<link rel="apple-touch-icon" sizes="180x180" href="images/favicon/favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon//favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
</head>
<body>
<div class="outer-container-home">
<div class="inner-container-home">
<h1>Witchy Pairings</h1>
<h2>How To Play</h2>
<img class="home-img" src="images/skeleton-bg.png" alt="image of a skeleton">
<p>- You've entered a haunted mansion💀</p>
<p>- There are three levels in the game.</p>
<!-- Radio buttons -->
<div class="level-selection">
<input type="radio" id="easy" name="difficulty" value="easy.html" checked>
<label for="easy">Easy</label><br>
<input type="radio" id="medium" name="difficulty" value="medium.html">
<label for="medium">Medium</label><br>
<input type="radio" id="hard" name="difficulty" value="hard.html">
<label for="hard">Hard</label>
</div>
<p>- The only way out is to match the haunted objects before the spirits catch you.</p>
<p>- Match all the pairs of cards in as few moves and as little time as possible to win the game. </p>
<a class="start" href="#" onclick="startGame()">Start Game</a>
</div>
</div>
<script>
function startGame() {
// Select the difficulty
let selectedDifficulty = document.querySelector('input[name="difficulty"]:checked').value;
// Redirect to the corresponding page
window.location.href = selectedDifficulty;
}
</script>
</body>
</html>