-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathscience-page.html
More file actions
596 lines (559 loc) · 32.3 KB
/
Copy pathscience-page.html
File metadata and controls
596 lines (559 loc) · 32.3 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="Browse engaging K–12 science lessons, experiments, and educational activities covering biology, earth science, chemistry, and more.">
<meta name="keywords" content="science lessons, K-12 science, biology, chemistry, earth science, STEM education, science experiments">
<meta name="author" content="HouseLearning">
<meta name="robots" content="index,follow">
<meta property="og:type" content="website">
<meta property="og:title" content="HouseLearning Science Lessons">
<meta property="og:description" content="Interactive science lessons and activities for curious students and classrooms.">
<meta property="og:url" content="https://houselearning.org/science-page.html">
<meta property="og:image" content="https://houselearning.org/games/snapshots/house-explorer.png">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<title>K–12 Science Lessons | CoolScienceTime</title>
<script src="https://houselearning.org/cookiebanner.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="https://houselearning.org/home/main.js"></script>
<script type="module" src="also.js"></script>
<script src="/feedback.js"></script>
<style>
/* ---------------- base resets ---------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
background: #f7f8fa;
color: #222;
min-height: 100vh;
display: flex;
flex-direction: column;
transition: background 0.25s, color 0.25s;
}
body.dark-mode {
background: #0f1113;
color: #eaeaea;
}
/* ---------------- navbar ---------------- */
.navbar {
background-color: #1e2a1e;
display: flex;
align-items: center;
justify-content: center;
overflow-x: auto;
padding: 12px 12px;
gap: 8px;
box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
}
body.dark-mode .navbar {
background-color: #151515;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.navbar-inner {
display: flex;
gap: 8px;
white-space: nowrap;
padding: 0 6px;
}
.navbar a {
color: #2ecc71;
text-decoration: none;
padding: 10px 14px;
font-weight: 600;
font-size: 14px;
border-radius: 8px;
flex-shrink: 0;
transition: background 0.15s, color 0.15s, transform 0.06s;
}
.navbar a:hover { transform: translateY(-2px); }
.navbar a:focus { outline: 3px solid rgba(46, 204, 113, 0.2); }
/* ---------------- layout containers ---------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
main { flex: 1; padding: 20px; display: block; }
.page {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}
.section {
background: white;
padding: 18px;
border-radius: 10px;
box-shadow: 0 6px 18px rgb(2 8 23 / 6%);
transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
body.dark-mode .section {
background: #1e1e1e;
color: #f1f1f1;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
h2 {
font-weight: 700;
color: #28b463;
border-bottom: 3px solid #2ecc71;
padding-bottom: 8px;
margin: 0 0 14px 0;
}
body.dark-mode h2 { color: #58d68d; }
h1 {
color: #28b463;
}
body.dark-mode h1 { color: #58d68d; }
/* ---------------- grid of cards ---------------- */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 14px;
}
.lesson-card, .game-card {
background: #fff;
border-radius: 10px;
padding: 14px;
text-align: center;
box-shadow: 2px 6px 16px rgba(2, 8, 23, 0.06);
transition: transform 0.12s, box-shadow 0.12s;
display: flex;
flex-direction: column;
gap: 8px;
min-height: 110px;
}
.lesson-card:hover, .game-card:hover { transform: translateY(-6px); }
body.dark-mode .lesson-card, body.dark-mode .game-card {
background: #262626;
box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.6);
}
.lesson-card h3, .game-card h3 {
color: #28b463;
font-size: 16px;
margin: 6px 0 8px 0;
}
body.dark-mode .lesson-card h3, body.dark-mode .game-card h3 { color: #58d68d; }
.lesson-card a, .game-card a {
text-decoration: none;
color: white;
background: #28b463;
padding: 8px 12px;
border-radius: 6px;
display: inline-block;
margin-top: auto;
align-self: center;
font-weight: 600;
}
.lesson-card a:hover, .game-card a:hover { background: #1e8449; }
/* ---------------- theme switcher (floating) ---------------- */
.theme-switch-wrapper {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1200;
display: flex;
gap: 6px;
background: rgba(255, 255, 255, 0.9);
padding: 6px;
border-radius: 10px;
box-shadow: 0 6px 18px rgba(2, 8, 23, 0.08);
}
body.dark-mode .theme-switch-wrapper {
background: rgba(20, 20, 20, 0.85);
}
.theme-switch-wrapper button {
border: none;
background: transparent;
font-size: 18px;
padding: 8px 10px;
border-radius: 8px;
cursor: pointer;
transition: background 0.12s, transform 0.08s;
}
.theme-switch-wrapper button[aria-pressed="true"] {
background: rgba(46, 204, 113, 0.14);
box-shadow: inset 0 -2px 0 rgba(46, 204, 113, 0.16);
transform: translateY(-1px);
}
.theme-switch-wrapper button:focus { outline: 2px solid rgba(46, 204, 113, 0.2); }
/* ---------------- responsive tweaks ---------------- */
@media (max-width: 900px) {
.page { padding: 0 6px; }
.navbar { padding: 8px; }
.navbar-inner { gap: 6px; }
.content-wrapper {
flex-direction: column;
}
.games-section {
max-width: none;
}
}
@media (max-width: 420px) {
.theme-switch-wrapper { right: 12px; bottom: 12px; padding: 4px; gap: 4px; }
.lesson-card, .game-card { padding: 10px; }
}
/* ---------------- new styles for layout adjustment ---------------- */
.content-wrapper {
display: flex;
flex-direction: row;
gap: 20px;
}
.main-content {
flex: 3;
}
.games-section {
flex: 1;
max-width: 300px;
}
.search-bar {
margin-bottom: 20px;
}
.search-bar input {
width: 100%;
padding: 12px 16px;
border-radius: 8px;
border: 1px solid #ddd;
font-size: 16px;
background: white;
transition: border-color 0.2s, background 0.2s;
}
body.dark-mode .search-bar input {
background: #262626;
color: #f1f1f1;
border-color: #444;
}
.search-bar input:focus {
outline: none;
border-color: #2ecc71;
box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}
.warp-buttons {
margin-bottom: 20px;
}
.warp-buttons h2 {
font-weight: 700;
color: #28b463;
border-bottom: none;
padding-bottom: 0;
margin: 0;
font-size: 20px;
}
.warp-buttons-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.warp-buttons-container a {
display: inline-block;
padding: 8px 16px;
border-radius: 20px;
background: #e0f2f1;
color: #28b463;
font-weight: 600;
text-decoration: none;
transition: transform 0.1s, background 0.1s;
}
.warp-buttons-container a:hover {
background: #cff0f0;
transform: translateY(-2px);
}
body.dark-mode .warp-buttons-container a {
background: #1a3628;
color: #58d68d;
}
body.dark-mode .warp-buttons-container a:hover {
background: #254432;
}
.game-card img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin-bottom: 8px;
}
</style>
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<a href="https://houselearning.org/home/">Home</a>
<a href="https://houselearning.org/home/math-page.html">Math Games</a>
<a href="https://houselearning.org/home/science-page.html">Science Fun</a>
<a href="https://houselearning.org/home/computer-science-page.html">Coding Challenges</a>
<a href="https://houselearning.org/home/games.html">Random Games</a>
<a href="https://houselearning.org/safe-library">Safe Library</a>
<a href="https://houselearning.org/home/blog.html">Blog</a> <!-- ✅ Added Blog tab -->
<a href="https://houselearning.org/home/about">About</a>
<a href="https://houselearning.org/apply">Apply</a>
</div>
</div>
<main>
<div class="container">
<div class="content-wrapper">
<div class="main-content">
<h1>K–12 Science Lessons | CoolScienceTime</h1>
<!-- Warp Buttons Section -->
<div class="warp-buttons">
<h2>Warp to Grade:</h2>
<div class="warp-buttons-container" id="warp-buttons-container"></div>
</div>
<!-- Search Bar -->
<div class="search-bar">
<input type="text" id="searchInput" placeholder="Search for a science lesson...">
</div>
<!-- Kindergarten -->
<section class="section" aria-labelledby="kindergarten">
<h2 id="kindergarten">Kindergarten</h2>
<div class="grid">
<div class="lesson-card"><h3>The Five Senses</h3><a href="/home/science/k/five-senses.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Seasons & Weather</h3><a href="/home/science/k/seasons-weather.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Animal Homes</h3><a href="/home/science/k/animal-homes.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Parts of a Plant</h3><a href="/home/science/k/parts-of-plant.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Sorting Living & Non-Living</h3><a href="/home/science/k/living-nonliving.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 1 -->
<section class="section" aria-labelledby="grade1">
<h2 id="grade1">Grade 1</h2>
<div class="grid">
<div class="lesson-card"><h3>States of Matter</h3><a href="/home/science/grade1/states-of-matter.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Parts of the Body</h3><a href="/home/science/grade1/body-parts.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Day & Night Sky</h3><a href="/home/science/grade1/day-night-sky.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Simple Machines</h3><a href="/home/science/grade1/simple-machines.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Animal Habitats</h3><a href="/home/science/grade1/animal-habitats.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 2 -->
<section class="section" aria-labelledby="grade2">
<h2 id="grade2">Grade 2</h2>
<div class="grid">
<div class="lesson-card"><h3>Plant Life Cycles</h3><a href="/home/science/grade2/plant-life-cycles.html">Start Lesson</a></div>
<div class="lesson-card"><h3>The Water Cycle</h3><a href="/home/science/grade2/water-cycle.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Food Chains</h3><a href="/home/science/grade2/food-chains.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Magnets & Force</h3><a href="/home/science/grade2/magnets-force.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Weather & Climate</h3><a href="/home/science/grade2/weather-climate.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 3 -->
<section class="section" aria-labelledby="grade3">
<h2 id="grade3">Grade 3</h2>
<div class="grid">
<div class="lesson-card"><h3>Ecosystems</h3><a href="/home/science/grade3/ecosystems.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Force & Motion</h3><a href="/home/science/grade3/force-motion.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Earth's Layers</h3><a href="/home/science/grade3/earths-layers.html">Start Lesson</a></div>
<div class="lesson-card"><h3>The Solar System</h3><a href="/home/science/grade3/solar-system.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Simple Circuits</h3><a href="/home/science/grade3/simple-circuits.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 4 -->
<section class="section" aria-labelledby="grade4">
<h2 id="grade4">Grade 4</h2>
<div class="grid">
<div class="lesson-card"><h3>Human Body Systems</h3><a href="/home/science/grade4/body-systems.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Plant Adaptations</h3><a href="/home/science/grade4/plant-adaptations.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Sound & Light Energy</h3><a href="/home/science/grade4/sound-light.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Rocks & Minerals</h3><a href="/home/science/grade4/rocks-minerals.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Weathering & Erosion</h3><a href="/home/science/grade4/weathering-erosion.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 5 -->
<section class="section" aria-labelledby="grade5">
<h2 id="grade5">Grade 5</h2>
<div class="grid">
<div class="lesson-card"><h3>Introduction to Cells</h3><a href="/home/science/grade5/intro-to-cells.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Photosynthesis</h3><a href="/home/science/grade5/photosynthesis.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Properties of Matter</h3><a href="/home/science/grade5/properties-of-matter.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Gravity & Space</h3><a href="/home/science/grade5/gravity-space.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Earth's Biomes</h3><a href="/home/science/grade5/earths-biomes.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 6 -->
<section class="section" aria-labelledby="grade6">
<h2 id="grade6">Grade 6</h2>
<div class="grid">
<div class="lesson-card"><h3>Atoms & Molecules</h3><a href="/home/science/grade6/atoms-molecules.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Chemical Reactions</h3><a href="/home/science/grade6/chemical-reactions.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Cell Structure</h3><a href="/home/science/grade6/cell-structure.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Genetics (Intro)</h3><a href="/home/science/grade6/genetics-intro.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Plate Tectonics</h3><a href="/home/science/grade6/plate-tectonics.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 7 -->
<section class="section" aria-labelledby="grade7">
<h2 id="grade7">Grade 7</h2>
<div class="grid">
<div class="lesson-card"><h3>The Periodic Table</h3><a href="/home/science/grade7/periodic-table.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Newton's Laws</h3><a href="/home/science/grade7/newtons-laws.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Human Digestive System</h3><a href="/home/science/grade7/digestive-system.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Circulatory System</h3><a href="/home/science/grade7/circulatory-system.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Microorganisms</h3><a href="/home/science/grade7/microorganisms.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 8 -->
<section class="section" aria-labelledby="grade8">
<h2 id="grade8">Grade 8</h2>
<div class="grid">
<div class="lesson-card"><h3>Acids & Bases</h3><a href="/home/science/grade8/acids-bases.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Work, Power & Energy</h3><a href="/home/science/grade8/work-power-energy.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Evolution & Adaptation</h3><a href="/home/science/grade8/evolution-adaptation.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Earth's Climate</h3><a href="/home/science/grade8/earths-climate.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Ecology Basics</h3><a href="/home/science/grade8/ecology-basics.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 9 (Biology) -->
<section class="section" aria-labelledby="grade9">
<h2 id="grade9">Grade 9 (Biology)</h2>
<div class="grid">
<div class="lesson-card"><h3>Cellular Respiration</h3><a href="/home/science/grade9/cellular-respiration.html">Start Lesson</a></div>
<div class="lesson-card"><h3>DNA & RNA</h3><a href="/home/science/grade9/dna-rna.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Mendelian Genetics</h3><a href="/home/science/grade9/mendelian-genetics.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Taxonomy & Classification</h3><a href="/home/science/grade9/taxonomy-classification.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Human Anatomy</h3><a href="/home/science/grade9/human-anatomy.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 10 (Chemistry) -->
<section class="section" aria-labelledby="grade10">
<h2 id="grade10">Grade 10 (Chemistry)</h2>
<div class="grid">
<div class="lesson-card"><h3>Chemical Bonding</h3><a href="/home/science/grade10/chemical-bonding.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Stoichiometry</h3><a href="/home/science/grade10/stoichiometry.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Chemical Reactions</h3><a href="/home/science/grade10/chemical-reactions.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Gases & Their Laws</h3><a href="/home/science/grade10/gases-laws.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Acids, Bases & Salts</h3><a href="/home/science/grade10/acids-bases-salts.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 11 (Physics) -->
<section class="section" aria-labelledby="grade11">
<h2 id="grade11">Grade 11 (Physics)</h2>
<div class="grid">
<div class="lesson-card"><h3>Kinematics</h3><a href="/home/science/grade11/kinematics.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Newton's Laws of Motion</h3><a href="/home/science/grade11/newtons-laws-motion.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Waves & Sound</h3><a href="/home/science/grade11/waves-sound.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Electricity & Magnetism</h3><a href="/home/science/grade11/electricity-magnetism.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Thermodynamics</h3><a href="/home/science/grade11/thermodynamics.html">Start Lesson</a></div>
</div>
</section>
<!-- Grade 12 (Earth & Environmental Science) -->
<section class="section" aria-labelledby="grade12">
<h2 id="grade12">Grade 12 (Earth & Environmental Science)</h2>
<div class="grid">
<div class="lesson-card"><h3>Earth's Systems</h3><a href="/home/science/grade12/earths-systems.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Hydrology & Oceanography</h3><a href="/home/science/grade12/hydrology-oceanography.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Ecology & Biomes</h3><a href="/home/science/grade12/ecology-biomes.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Environmental Issues</h3><a href="/home/science/grade12/environmental-issues.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Astronomy</h3><a href="/home/science/grade12/astronomy.html">Start Lesson</a></div>
</div>
</section>
<section class="section" aria-labelledby="bin">
<h2 id="old-lessons-binned">Old CoolMathTime lessons</h2>
<div class="grid">
<div class="lesson-card"><h3>Earth & Ecosystems</h3><a href="https://houselearning.org/home/science/bin/ecosystems.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Forces & Motion</h3><a href="https://houselearning.org/home/science/bin/forcesandmotion.html">Start Lesson</a></div>
<div class="lesson-card"><h3>States of Matter</h3><a href="https://houselearning.org/home/science/bin/statesofmatter.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Electricity & Magnetism</h3><a href="https://houselearning.org/home/science/bin/electricity.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Plants & Photosynthesis</h3><a href="https://houselearning.org/home/science/bin/photosynthesis.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Animals & Adaptations</h3><a href="https://houselearning.org/home/science/bin/animalsandadaptations.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Solar System & Space</h3><a href="https://houselearning.org/home/science/bin/solarsystem.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Human Body Systems</h3><a href="https://houselearning.org/home/science/bin/humanbody.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Weather & Climate</h3><a href="https://houselearning.org/home/science/bin/weather.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Rocks & Minerals</h3><a href="https://houselearning.org/home/science/bin/rocksandminerals.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Sound & Waves</h3><a href="https://houselearning.org/home/science/bin/soundwaves.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Light & Optics</h3><a href="https://houselearning.org/home/science/bin/lightandoptics.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Fossils & Dinosaurs</h3><a href="https://houselearning.org/home/bin/home/science/dinosaurfossils.html">Start Lesson</a></div>
<div class="lesson-card"><h3>Biomes & Habitats</h3><a href="https://houselearning.org/home/bin/home/science/biomes.html">Start Lesson</a></div>
</div>
</section>
</div>
<div class="games-section">
<section class="section" aria-labelledby="games-title">
<h2 id="games-title">Science Games</h2>
<div class="grid" id="games-grid">
<div class="game-card"><img src="https://houselearning.org/home/assets/main/ecoexplorer.png" alt=""><h3>Eco Explorer</h3><a href="https://houselearning.org/home/science/games/ecoexplorer.html">Play Now</a></div>
<div class="game-card"><img src="https://houselearning.org/home/assets/main/gravityjump.png" alt=""><h3 title="Not a game, rather an experimental interactive program.">Gravity Jump (Experiment)</h3><a href="https://houselearning.org/home/science/games/gravityjump.html">Play Now</a></div>
<div class="game-card"><img src="https://houselearning.org/home/assets/main/energyquest.png" alt=""><h3>Energy Quest</h3><a href="https://houselearning.org/home/science/games/energyquest.html">Play Now</a></div>
<div class="game-card"><img src="https://houselearning.org/home/assets/main/animalkingdom.png" alt=""><h3>Animal Kingdom</h3><a href="https://houselearning.org/home/science/games/animalkingdom.html">Play Now</a></div>
<div class="game-card"><img src="https://houselearning.org/home/assets/main/spaceadventure.png" alt=""><h3>Space Adventure</h3><a href="https://houselearning.org/home/science/games/spaceexplorer.html">Play Now</a></div>
<div class="game-card"><img src="https://houselearning.org/home/assets/main/bodysystemschallange.png" alt=""><h3>Body Systems Challenge</h3><a href="https://houselearning.org/home/science/games/bodysystems.html">Play Now</a></div>
<div class="game-card"><img src="https://houselearning.org/home/assets/main/weatherwizard.png" alt=""><h3>Weather Wizard</h3><a href="https://houselearning.org/home/science/games/weatherwizard.html">Play Now</a></div>
<div class="game-card"><img src="https://houselearning.org/home/assets/main/rockhunter.png" alt=""><h3>Rock Hunter</h3><a href="https://houselearning.org/home/science/games/rockhunter.html">Play Now</a></div>
<div class="game-card"><img src="https://houselearning.org/home/assets/main/lightlab.png" alt=""><h3>Light Lab</h3><a href="https://houselearning.org/home/science/games/lightlab.html">Play Now</a></div>
</div>
</section>
</div>
</div>
</div>
</main>
<!-- Theme Switcher -->
<div class="theme-switch-wrapper">
<button id="lightModeBtn" aria-pressed="true">☀️</button>
<button id="darkModeBtn" aria-pressed="false">🌙</button>
</div>
<!-- JavaScript for functionality -->
<script>
const sections = document.querySelectorAll('.section');
const warpButtonsContainer = document.getElementById('warp-buttons-container');
const searchInput = document.getElementById('searchInput');
const lessonsGrid = document.querySelectorAll('.grid');
// Create warp buttons
sections.forEach(section => {
const gradeTitle = section.querySelector('h2');
if (gradeTitle) {
const gradeName = gradeTitle.textContent;
const gradeId = gradeTitle.id;
const button = document.createElement('a');
button.href = `#${gradeId}`;
button.textContent = gradeName;
warpButtonsContainer.appendChild(button);
}
});
// Search functionality
searchInput.addEventListener('keyup', () => {
const searchText = searchInput.value.toLowerCase();
lessonsGrid.forEach(grid => {
const lessons = grid.querySelectorAll('.lesson-card, .game-card');
lessons.forEach(lesson => {
const title = lesson.querySelector('h3').textContent.toLowerCase();
if (title.includes(searchText)) {
lesson.style.display = 'flex';
} else {
lesson.style.display = 'none';
}
});
});
});
// Dark mode functionality
const lightModeBtn = document.getElementById('lightModeBtn');
const darkModeBtn = document.getElementById('darkModeBtn');
const body = document.body;
function setDarkMode(isDark) {
if (isDark) {
body.classList.add('dark-mode');
localStorage.setItem('theme', 'dark');
lightModeBtn.setAttribute('aria-pressed', 'false');
darkModeBtn.setAttribute('aria-pressed', 'true');
} else {
body.classList.remove('dark-mode');
localStorage.setItem('theme', 'light');
lightModeBtn.setAttribute('aria-pressed', 'true');
darkModeBtn.setAttribute('aria-pressed', 'false');
}
}
darkModeBtn.addEventListener('click', () => setDarkMode(true));
lightModeBtn.addEventListener('click', () => setDarkMode(false));
// Load saved theme from local storage
document.addEventListener('DOMContentLoaded', () => {
const savedTheme = localStorage.getItem('theme');
if (savedTheme === 'dark') {
setDarkMode(true);
} else {
setDarkMode(false);
}
});
</script>
</body>
</html>