-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
156 lines (135 loc) · 5.44 KB
/
Copy pathindex.html
File metadata and controls
156 lines (135 loc) · 5.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="Interactive simulation exploring the life cycle of stars - from stellar nurseries to black holes">
<title>Stellar Evolution: The Life Cycle of Stars</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0"
rel="stylesheet">
<link rel="stylesheet" href="/src/styles/main.css">
</head>
<body>
<!-- Starry Background -->
<div class="stars-bg" id="stars-bg"></div>
<!-- Header -->
<header class="shell">
<div class="hero">
<div class="hero-top">
<div>
<p class="kicker">The Thinking Experiment</p>
<h1>Stellar Evolution Simulation</h1>
<p class="subtitle">The Life Cycle of Stars</p>
</div>
</div>
</div></header>
<!-- Main Content -->
<main class="main-content">
<!-- Learn Section -->
<section id="learn-section" class="learn-section">
<!-- Mass Toggle -->
<div class="mass-toggle-container">
<span id="label-low" class="mass-label mass-label--active">☀️ Low Mass (Sun-like)</span>
<label class="toggle-switch">
<input type="checkbox" id="mass-toggle" onchange="toggleMassPath()">
<span class="toggle-slider"></span>
</label>
<span id="label-high" class="mass-label">🔵 High Mass (Massive)</span>
</div>
<!-- Pathway Diagram Container -->
<div class="pathway-container" id="stages-container">
<!-- Nodes will be rendered by JavaScript -->
</div>
<!-- SVG for connection lines -->
<svg class="connections-svg" id="connections"></svg>
</section>
<!-- Quiz Section -->
<section id="quiz-section" class="quiz-section hidden">
<!-- Score Display -->
<div class="quiz-header">
<div class="quiz-score">
<span class="material-symbols-outlined">stars</span>
<span id="score-display">0</span> pts
</div>
<div class="quiz-progress">
<div class="quiz-progress-bar" id="quiz-progress-bar"></div>
</div>
</div>
<!-- Quiz Card -->
<div class="quiz-card" id="quiz-card">
<div class="quiz-card-header">
<div class="quiz-stage-badge">
<img id="quiz-image" src="" alt="Current stage" class="quiz-stage-image">
<div class="quiz-stage-info">
<span class="quiz-stage-label">Current Stage:</span>
<span id="quiz-current-stage" class="quiz-stage-name">Loading...</span>
<span id="quiz-mass-type" class="quiz-mass-type">All Stars</span>
</div>
</div>
</div>
<h3 class="quiz-question" id="quiz-question">Loading question...</h3>
<div class="quiz-options" id="quiz-options">
<!-- Options rendered by JavaScript -->
</div>
<div class="quiz-feedback hidden" id="quiz-feedback"></div>
<div class="quiz-actions">
<button class="btn btn--primary hidden" id="quiz-next-btn" onclick="nextQuestion()">
Next Question
<span class="material-symbols-outlined">arrow_forward</span>
</button>
<button class="btn btn--secondary hidden" id="quiz-restart-btn" onclick="startQuiz()">
<span class="material-symbols-outlined">refresh</span>
Restart Quiz
</button>
</div>
</div>
</section>
</main>
<!-- Modal -->
<div class="modal-overlay hidden" id="info-modal" onclick="closeModalOutside(event)">
<div class="modal" onclick="event.stopPropagation()">
<button class="modal-close" onclick="closeModal()">
<span class="material-symbols-outlined">close</span>
</button>
<div class="modal-image-container">
<img id="modal-img" src="" alt="Star stage" class="modal-image">
</div>
<div class="modal-content">
<h2 id="modal-title" class="modal-title">Stage Name</h2>
<div class="modal-stats">
<div class="modal-stat">
<span class="material-symbols-outlined">thermostat</span>
<div>
<span class="stat-label">Temperature</span>
<span id="modal-temp" class="stat-value">--</span>
</div>
</div>
<div class="modal-stat">
<span class="material-symbols-outlined">schedule</span>
<div>
<span class="stat-label">Lifespan</span>
<span id="modal-time" class="stat-value">--</span>
</div>
</div>
</div>
<p id="modal-desc" class="modal-description">Description loading...</p>
<div class="modal-fact">
<span class="material-symbols-outlined">lightbulb</span>
<p id="modal-fact">Fun fact loading...</p>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<p>© 2026 Vladimir Lopez • Interactive Stellar Evolution Simulation</p>
</footer>
<script type="module" src="/src/main.js"></script>
</body>
</html>