-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (40 loc) · 1.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pokémon Game Instructions</title>
<link rel="stylesheet" href="./styles/instructions.css">
<link rel="icon" href="./assets/pokeball.png" type="image/x-icon">
</head>
<body>
<div id="mobileMessage">
Please open this website on a laptop.
</div>
<div class="container">
<h1>Pokémon Game Instructions</h1>
<section>
<h2>Game Overview</h2>
<p>Welcome to the Pokémon Game! It's a two player game . Each Pokémon has unique abilities and moves that can be used in battle. Your goal is to defeat your opponent's Pokémon to win the game.</p>
</section>
<section>
<h2>Controls</h2>
<ul>
<li><strong>Select Pokémon:</strong> Use the arrow keys to navigate through your Pokémon.</li>
<li><strong>Choose Move:</strong> Once your Pokémon is selected, you can proceed to the battle.</li>
<li><strong>Attack:</strong> Press the buttons with the selected move.</li>
<li><strong>End:</strong> When the game ends , you are redirected to the home page.</li>
</ul>
</section>
<button class="next-button" onclick="location.href='search.html'">Next</button>
</div>
<script>
function isMobileDevice() {
return (typeof window.orientation !== "undefined") || (navigator.userAgent.indexOf('IEMobile') !== -1);
}
if (isMobileDevice()) {
document.getElementById('mobileMessage').style.display = 'block';
}
</script>
</body>
</html>