-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (82 loc) · 2.89 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
<!DOCTYPE html>
<html>
<head>
<title>Pokémon Name Game</title>
<link rel="stylesheet" href="./index.css" />
<script defer src="./index.js" type="module"></script>
</head>
<body>
<img
src="./images/PokéErez Logo.webp"
alt="Profile picture of the game's creator: PokéErez"
height="75px"
/>
Name Game
<div id="game-body">
Name:
<span id="pokemon-name"></span>
<br />
<div id="hints">
<div id="language-hint" class="hidden">
Language:
<span id="language-text"></span>
<br />
</div>
<div id="generation-hint" class="hidden">
Generation:
<span id="generation-text"></span>
<br />
</div>
<div id="type-hint" class="hidden">
Type:
<span id="type-text"></span>
<br />
</div>
</div>
<br />
<label id="player-input-label" for="player-input">Type your guess:</label>
<input type="text" id="player-input" />
<br />
<button id="make-guess">Guess</button>
<br />
<span id="guess-status" class="hidden"></span>
<br />
<div id="guesses"></div>
<div id="hint-buttons" class="hidden">
Need some hints?
<br />
<button id="language-button" class="hidden">Display Language</button>
<button id="generation-button" class="hidden">Display Generation</button>
<button id="type-button" class="hidden">Display Type</button>
<br />
</div>
<div id="game-win" class="hidden">
<img id="official-art" height="250px" width="250px" />
<br />
<span id="win-text"></span>
<br />
<button id="play-again">Play again!</button>
</div>
</div>
<br />
<div id="instructions-title">
How to play?
<br />
</div>
<div id="instructions">
You're given the official name of a Pokémon in a language that isn't English (but still
uses the latin alphabet),
<br />
and your job is to guess the English name.
<br />
<br />
To assist you, you can get up to three hints as you continue guessing;
<br />
the language the name is in (after 1 guess),
<br />
the generation the Pokémon is from (after 3 guesses),
<br />
and the Pokémon's typing (after 6 guesses).
</div>
</body>
</html>