forked from interlinksite/interlinksite.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simulations.html
86 lines (81 loc) · 3.71 KB
/
simulations.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simulations</title>
<link rel="stylesheet" href="https://interlinkcvhs.org/styles.css">
<link rel="icon" href="https://interlinkcvhs.org/favicon.png" type="image/png">
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8W81FT4M1N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-8W81FT4M1N');
</script>
<body>
<div id="banner-container"></div> <!-- Placeholder for banner -->
<header class="glass-header">
<div class="logo-container">
<h1 class="glow-text">Simulations</h1>
</div>
<div id="nav-container"></div> <!-- Placeholder for navigation -->
</header>
<main class="fade-in">
<div class="games-container">
<h2 class="section-title glow-text">Active Simulations</h2>
<div class="resources-grid">
<div class="resource-card glass-effect">
<h3 class="resource-title">Human Geography Vocabulary</h3>
<p class="resource-description">A flashcard simulation with every human geography vocabulary term!</p>
<a href="https://interlinkcvhs.org/simulations/hug-vocab" class="access-btn">OPEN SIMULATION</a>
</div>
</div>
<div class="resources-grid">
<div class="resource-card glass-effect">
<h3 class="resource-title">Transcription</h3>
<p class="resource-description">A simulation covering how DNA is copied to form RNA!</p>
<a href="https://interlinkcvhs.org/simulations/transcription" class="access-btn">OPEN SIMULATION</a>
</div>
<div class="resource-card glass-effect">
<h3 class="resource-title">Translation</h3>
<p class="resource-description">A simulation covering how RNA is complemented to form proteins!</p>
<a href="https://interlinkcvhs.org/simulations/translation" class="access-btn">OPEN SIMULATION</a>
</div>
</div>
</div>
</main>
<script src="https://interlinkcvhs.org/script.js"></script>
<script>
// Load navigation from nav.html
async function loadNav() {
try {
const response = await fetch('https://interlinkcvhs.org/navnav.html');
const nav = await response.text();
document.getElementById('nav-container').innerHTML = nav;
} catch (error) {
console.error('Error loading navigation:', error);
document.getElementById('nav-container').innerHTML = '<p>Error loading navigation. Please try again later.</p>';
}
}
// Function to load the banner
async function loadBanner() {
try {
const response = await fetch('https://interlinkcvhs.org/banner.html');
const bannerContent = await response.text();
document.getElementById('banner-container').innerHTML = bannerContent;
} catch (error) {
console.error('Error loading banner:', error);
document.getElementById('banner-container').innerHTML = '<p>Error loading banner. Please try again later.</p>';
}
}
// Fetch assignments and load navigation when the page loads
document.addEventListener('DOMContentLoaded', () => {
loadNav();
loadBanner();
});
</script>
</body>
</html>