Skip to content

Commit 2192de8

Browse files
author
Jason Tigas
committed
Initial commit
0 parents  commit 2192de8

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

index.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Grade 1 Math & Reading Flashcards</title>
7+
<style>
8+
body {
9+
font-family: Arial, sans-serif;
10+
display: flex;
11+
justify-content: center;
12+
align-items: center;
13+
height: 100vh;
14+
background-color: #f2f2f2;
15+
}
16+
.card {
17+
background-color: #fff;
18+
padding: 2em;
19+
border-radius: 10px;
20+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
21+
text-align: center;
22+
}
23+
.question {
24+
font-size: 1.5em;
25+
margin-bottom: 1em;
26+
}
27+
button {
28+
padding: 0.5em 1em;
29+
font-size: 1em;
30+
margin-top: 1em;
31+
cursor: pointer;
32+
}
33+
</style>
34+
</head>
35+
<body>
36+
37+
<div class="card">
38+
<div class="question" id="question">Loading...</div>
39+
<button onclick="nextQuestion()">Next</button>
40+
</div>
41+
42+
<script>
43+
const questions = [
44+
'What is 2 + 3?',
45+
'What word starts with C: cat or bat?',
46+
'What is 5 - 1?',
47+
'Which word rhymes with log: dog or cat?',
48+
'What is 4 + 4?',
49+
'What letter comes after B?',
50+
'What is 7 - 2?',
51+
'Which word is a color: red or bed?',
52+
'What is 3 + 6?',
53+
'What letter comes before D?'
54+
];
55+
56+
let currentQuestion = 0;
57+
58+
function nextQuestion() {
59+
if (currentQuestion < questions.length) {
60+
document.getElementById('question').innerText = questions[currentQuestion];
61+
currentQuestion++;
62+
} else {
63+
document.getElementById('question').innerText = 'Great job! You finished!';
64+
}
65+
}
66+
67+
// Initialize first question
68+
nextQuestion();
69+
</script>
70+
71+
</body>
72+
</html>

0 commit comments

Comments
 (0)