-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (97 loc) · 5.04 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Pokemon Trivia Fighters</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/style.css" />
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/animate.css" />
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="mx-auto my-2 order-0 order-md-1 position-relative">
<a class="mx-auto text-center" href="#">
<img id="pokeball" src="./assets/images/pokeball.png" class="rounded-circle">
</a>
</div>
</nav>
<div id="menu" class="">
<img id="dancingPikachu" src="./assets/images/flippingPickachu.gif" alt="">
<a id="playButton" href="#" class="BUTTON_IJH">Play</a>
</div>
<!-- make sure to add d-none below -->
<div id="battleScreen" class="d-none">
<div id="enemyRow" class="row">
<div id="enemyInfoContainer" class="col-6">
<div class="pokemonInfo">
Charizard <span class="level">Lv76</span>
<br>
<progress id="enemyHealth" value="100" max="100" class="healthBar"></progress>
</div>
</div>
<div id="enemyPicContainer" class="col-6">
<img id="enemyPic" class="" src="./assets/images/charizard.gif" alt="Charizard Picture">
<img src="./assets/images/scratch.png" alt="Scratch" id="scratch" class="scratch d-none">
<img src="./assets/images/scratch.png" alt="Scratch" id="reverseScratch" class="scratch d-none">
<img src="./assets/images/bubble.png" alt="bubble Attack" class="d-none" id="bubble">
</div>
</div>
<div id="yourRow" class="row">
<div id="yourPicContainer" class="col-6">
<img src="./assets/images/blastoise.gif" alt="" class="" id="yourPic">
<div id="meteorDiv" class="d-none ">
<!-- animated slideInRight infinite -->
<img src="./assets/images/meteor.png" class="" alt="picture of meteor" id="meteor">
<!-- animated slideInDown infinite -->
</div>
</div>
<div id="yourInfoContainer" class="col-6">
<div class="pokemonInfo">
Blastoise <span class="level">Lv54</span>
<br>
<progress id="yourHealth" value="100" max="100" class="healthBar"></progress>
</div>
</div>
</div>
<div class="row">
<div id="textBox" class="col-12">
<div class="row">
<div id="leftText" class="col-7">
<p id="prompt">Solve Math Problems to do more damage (Press Enter to Attack)!</p>
<p id="mathLine">
<span id="number1"></span>
<span id="operator"></span>
<span id="number2"></span> =
</p>
</div>
<div class="col-5">
<p id="timer">Timer: <span id="currentTime">60</span> s</p>
<input id="userAnswer" type="text" name="userAnswer">
<button id="attackButton">Attack!</button>
</div>
</div>
</div>
</div>
<div id="gameOver" class="d-none">
<div id="youWin" class="d-none">
<h2>You Win!</h2>
<p>Charizard fainted!</p>
<p>Correct Answers: <span class="correctAnswers">#</span>/<span class="totalQuestions">#</span></p>
<button id="replayWinButton" class="replay">Replay</button>
</div>
<div id="youLose" class="d-none">
<h2>You Lose!</h2>
<p>Blastoise fainted!</p>
<p>Correct Answers: <span class="correctAnswers">#</span>/<span class="totalQuestions">#</span></p>
<button id="replayLoseButton" class="replay">Replay</button>
</div>
</div>
</div>
<script src="./assets/javascript/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="./assets/javascript/app.js"></script>
</body>
</html>