-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (84 loc) · 3.95 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Flash Card Game</title>
<script src="main.js"></script>
</head>
<body>
<div class="myClass"><img src="LogoMakr.png" style="float:right" height="53px" width="300px">
<h1>myQuiz</h1>
</div>
<!-- Input Questions on this page (disappears after submiting) -->
<div id="content1" class="content1">
<div class="column">
<h1 style="color:black">Instructions:</h1>
<ol>
<li>Fill in questions that you wish to study, with corresponding answers.</li>
<li>Press enter to check your answer.</li>
<li>You may switch between questions, and have a second chance to answer incorrect answers.</li>
<li>You have only 4 guesses for each set.</li>
</ol>
<input style="width:80%" id="input1"></input>
<p>Question 1</p>
<input style="width:80%" id="answer1"></input>
<p>Answer</p>
<input style="width:80%" id="input2"></input>
<p>Question 2</p>
<input style="width:80%" id="answer2"></input>
<p>Answer</p>
<input style="width:80%" id="input3"></input>
<p>Question 3</p>
<input style="width:80%" id="answer3"></input>
<p>Answer</p>
<input style="width:80%" id="input4"></input>
<p>Question 4</p>
<input style="width:80%" id="answer4"></input>
<p>Answer</p>
<input style="width:80%" id="input5"></input>
<p>Question 5</p>
<input style="width:80%" id="answer5"></input>
<p>Answer</p>
<button id="inputSubmit" class="button" onclick="changePage()">Submit</button>
</div>
</div>
<!-- Here is the flashcard game. Appears after submiting questions/answers. -->
<div id="content2" class="content2">
<div class="column">
<div class="flip-box">
<div class="flip-box-inner" id="cardFront">
<div class="flip-box-front">
<p id="question"></p>
<form id="frm1" autocomplete="off">
Answer: <input type="text" id="userinput" name="answr" onkeydown="keyEnter(this)">
<p>Press Enter</p>
</form>
<br>
</div>
<div class="flip-box-back" >
<h2></h2>
<p id="answer"></p>
</div>
</div>
</div>
<!-- Buttons to change question number -->
<button class="questions" onclick="setCurrentQuestion(0)">Q1</button>
<button class="questions" onclick="setCurrentQuestion(1)">Q2</button>
<button class="questions" onclick="setCurrentQuestion(2)">Q3</button>
<button class="questions" onclick="setCurrentQuestion(3)">Q4</button>
<button class="questions" onclick="setCurrentQuestion(4)">Q5</button>
<!-- Health Bar -->
<h5 id="player" style="text-align:center">Health Bar </h5>
<div class="progress">
<div id="progress-bar" class="progress-bar" role="progressbar" style="width: 100%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<h2 id="end" style="text-align:center; color: red;"></h2>
</div> <!-- Content -->
</body>
</html>