-
Notifications
You must be signed in to change notification settings - Fork 0
/
flashcards.html
87 lines (79 loc) · 3.59 KB
/
flashcards.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 lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Code Hub | Flashcards</title>
<!-- Link toB ootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="Images/icon.png" alt="The Code Hub Logo" width="30" height="30" class="d-inline-block align-top">
The Code Hub
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="lessons.html">Lessons</a>
</li>
<li class="nav-item">
<a class="nav-link" href="practice.html">Practice</a>
</li>
<li class="nav-item">
<a class="nav-link" href="flashcards.html">Flashcards</a>
</li>
<li class="nav-item">
<a class="nav-link" href="register.html">Register</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="FAQ.html">FAQ</a>
</li>
</ul>
</div>
</nav>
<div class="container mt-4">
<h1 class="text-center">Flashcards</h1>
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Flashcard 1</h5>
<p class="card-text">Question: Name 3 different data types </p>
<button class="btn btn-primary" onclick="showAnswer('answer1')">Show Answer</button>
<p id="answer1" style="display: none;">Answer: Booleans, integers, strings, floats, </p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Flashcard 2</h5>
<p class="card-text">Question: What is a conditional statement?</p>
<button class="btn btn-primary" onclick="showAnswer('answer2')">Show Answer</button>
<p id="answer2" style="display: none;">Answer: allows you to execute a sequence of code based on whether a set of given conditions are met or not.</p>
</div>
</div>
</div>
</div>
</div>
<script>
function showAnswer(answerId) {
var answer = document.getElementById(answerId);
if (answer.style.display === "none") {
answer.style.display = "block";
} else {
answer.style.display = "none";
}
}
</script>
</body>
</html>