-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpokedex.html
123 lines (114 loc) · 4.8 KB
/
pokedex.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
<!DOCTYPE html>
<html>
<head>
<title>Pokedex</title>
<link href="pokedex.css" type="text/css" rel="stylesheet" />
<link rel="shortcut icon" type="image/x-icon" href="icons/favicon.ico">
<script src="https://courses.cs.washington.edu/courses/cse154/17sp/lib/ajax-promise.js"
type="text/javascript"></script>
<script src="pokedex.js" type="text/javascript"></script>
</head>
<body>
<h1 id="title">Your Pokedex</h1>
<main>
<div id="my-card">
<!-- Buffs/debuffs are added to this container whenever your Pokemon
has them during a game -->
<div class="hidden buffs"></div>
<div class="card-container">
<!-- Health point information should be hidden when the Pokedex view is shown, and
displayed when the pokedex view is hidden (ie, in the Game View) -->
<div class="hidden hp-info">
<p>HP:</p>
<div class="health-bar-container">
<div class="health-bar"></div>
</div>
</div>
<div class="card">
<img src="icons/normal.jpg" alt="type" class="type"/>
<span class="hp">60HP</span>
<h2 class="name">Pokemon Name</h2>
<div class="pokemon-pic">
<img src="images/pokeball.png" alt="pokemon" class="pokepic" />
</div>
<p class="info">Description here</p>
<div class="moves">
<button>
<span class="move">Move Name Here</span> <span class="dp"></span>
<img src="icons/fighting.jpg" alt="Pokemon move" />
</button>
<button>
<span class="move">Move Name Here</span> <span class="dp"></span>
<img src="icons/fighting.jpg" alt="Pokemon move" />
</button>
<button>
<span class="move">Move Name Here</span> <span class="dp"></span>
<img src="icons/fighting.jpg" alt="Pokemon move" />
</button>
<button>
<span class="move">Move Name Here</span> <span class="dp"></span>
<img src="icons/fighting.jpg" alt="Pokemon move" />
</button>
</div>
<img src="icons/fighting.jpg" alt="weakness" class="weakness" />
</div>
<button class="hidden" id="start-btn">Choose This Pokemon!</button>
<button class="hidden" id="flee-btn">Flee the Battle!</button>
</div>
</div>
<!-- You populate this using JavaScript -->
<div id="pokedex-view"></div>
<!-- Results container to display move results in each turn (between the two
cards in the Game View) -->
<div class="hidden" id="results-container">
<p class="hidden" id="p1-turn-results"></p>
<p class="hidden" id="p2-turn-results"><p>
<img class="hidden" id="loading" src="icons/loading-pikachu.gif" alt="loading" />
<button class ="hidden" id="endgame">Back to Pokedex</button>
</div>
<!-- The opponent's card should be populated when the game has started and the
#pokedex-view is hidden} -->
<div class="hidden" id="their-card">
<div class="buffs"></div>
<div class="card-container">
<div class="hp-info">
<p>HP:</p>
<div class="health-bar-container">
<div class="health-bar"></div>
</div>
</div>
<div class="card">
<img src="icons/normal.jpg" alt="type" class="type"/>
<span class="hp">60HP</span>
<h2 class="name">Pokemon Name</h2>
<div class="pokemon-pic">
<img src="images/pokeball.png" alt="pokemon" class="pokepic" />
</div>
<div class="info-container">
<p class="info">Description here</p>
</div>
<div class="moves">
<button>
<span class="move">Move Name Here</span> <span class="dp"></span>
<img src="icons/fighting.jpg" alt="Pokemon move" />
</button>
<button>
<span class="move">Move Name Here</span> <span class="dp"></span>
<img src="icons/fighting.jpg" alt="Pokemon move" />
</button>
<button>
<span class="move">Move Name Here</span> <span class="dp"></span>
<img src="icons/fighting.jpg" alt="Pokemon move" />
</button>
<button>
<span class="move">Move Name Here</span> <span class="dp"></span>
<img src="icons/fighting.jpg" alt="Pokemon move" />
</button>
</div>
<img src="icons/fighting.jpg" alt="weakness" class="weakness" />
</div>
</div>
</div>
</main>
</body>
</html>