eaglelandsonce commited on
Commit
f49bbee
·
verified ·
1 Parent(s): 51d3500

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +237 -18
index.html CHANGED
@@ -1,19 +1,238 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>Teacher_Eval_Fact_or_Fiction (MERIT)</title>
6
+ <link rel="preconnect" href="https://fonts.gstatic.com" />
7
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap" rel="stylesheet">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <style>
10
+ * { margin: 0; padding: 0; box-sizing: border-box; }
11
+ :root {
12
+ --bg1:#c9e8ff; --bg2:#fde2ff; --ink:#222; --ink-sub:#555;
13
+ --brand:#2563eb; --brand-2:#22c55e; --good:#16a34a; --bad:#dc2626;
14
+ --card:#ffffffcc;
15
+ }
16
+ body {
17
+ font-family: 'Poppins', sans-serif;
18
+ background: radial-gradient(1200px 600px at 20% 0%, var(--bg1), transparent 60%),
19
+ radial-gradient(1200px 600px at 80% 0%, var(--bg2), transparent 60%),
20
+ #f6f7fb;
21
+ min-height: 100vh;
22
+ display: flex;
23
+ flex-direction: column;
24
+ align-items: center;
25
+ justify-content: flex-start;
26
+ padding: 2rem 1rem;
27
+ color: var(--ink);
28
+ }
29
+ h1 { text-align: center; margin-bottom: .25rem; font-weight: 600; font-size: 2.2rem; }
30
+ #subtitle { text-align:center; margin-bottom:1rem; color: var(--ink-sub); }
31
+ #source-link { text-align: center; margin-bottom: 1.25rem; font-size: .95rem; }
32
+ #source-link a { color: var(--ink); text-decoration: underline; }
33
+ #game-container {
34
+ background: var(--card);
35
+ width: 100%; max-width: 820px;
36
+ padding: 2rem; border-radius: 16px;
37
+ box-shadow: 0 10px 24px rgba(0,0,0,.15);
38
+ display: flex; flex-direction: column; align-items: center;
39
+ }
40
+ .progress-container {
41
+ width: 100%; background:#ececec; border-radius: 999px; overflow: hidden; margin-bottom: 1rem;
42
+ }
43
+ .progress-bar { height: 14px; width:0%; background: linear-gradient(90deg,var(--brand),var(--brand-2)); transition: width .3s ease; }
44
+ #statement {
45
+ font-size: 1.25rem; line-height: 1.5; text-align: center; color: #333;
46
+ min-height: 90px; margin: .75rem 0 1rem;
47
+ }
48
+ .btn-group { display:flex; gap:.75rem; flex-wrap:wrap; justify-content:center; margin: .25rem 0 1rem; }
49
+ button {
50
+ padding: .75rem 1.25rem; border: none; border-radius: 999px; cursor: pointer;
51
+ background: var(--brand); color: #fff; font-weight: 600; letter-spacing:.2px;
52
+ transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
53
+ }
54
+ button.secondary { background:#111827; }
55
+ button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
56
+ #result {
57
+ margin-top: .5rem; padding: .75rem 1rem; border-radius: 10px; font-weight: 700; text-align: center; display:none;
58
+ }
59
+ #result.correct { display:block; background:#dcfce7; color:#14532d; }
60
+ #result.incorrect { display:block; background:#fee2e2; color:#7f1d1d; }
61
+ #explanation {
62
+ margin-top: .75rem; padding: 1rem; background:#f9fafb; color:#374151; border-radius:12px; display:none;
63
+ }
64
+ #score { margin-top: .75rem; font-weight: 700; }
65
+ #controls { display:flex; gap:.5rem; margin-top:.5rem; }
66
+ #controls button { background:#0f766e; }
67
+ #restart-btn { background:#6b21a8; }
68
+ </style>
69
+ </head>
70
+ <body>
71
+ <h1>Teacher_Eval_Fact_or_Fiction</h1>
72
+ <div id="subtitle">Test your knowledge of MERIT’s growth-oriented Teaching & Course Evaluation vision</div>
73
+ <div id="source-link">
74
+ Source: <a href="https://docs.google.com/document/d/1QenVtPPz8VRllxyBPqNoCYiLjDl2z77zWbgDHnxn6N4/edit?tab=t.0" target="_blank" rel="noopener">
75
+ MERIT Teaching & Course Evaluation (Google Doc)
76
+ </a>
77
+ </div>
78
+
79
+ <div id="game-container" role="region" aria-label="Fact or Fiction game">
80
+ <div class="progress-container" aria-hidden="true"><div class="progress-bar" id="progress-bar"></div></div>
81
+ <div id="statement" aria-live="polite">Loading statement...</div>
82
+
83
+ <div class="btn-group">
84
+ <button onclick="guess(true)" aria-label="Choose Fact">Fact</button>
85
+ <button class="secondary" onclick="guess(false)" aria-label="Choose Fiction">Fiction</button>
86
+ </div>
87
+
88
+ <div id="result" role="status" aria-live="polite"></div>
89
+ <div id="explanation"></div>
90
+
91
+ <div id="controls">
92
+ <button id="next-btn" style="display:none;" onclick="nextStatement()">Next</button>
93
+ <button id="restart-btn" style="display:none;" onclick="startGame()">Restart</button>
94
+ </div>
95
+
96
+ <div id="score" aria-live="polite"></div>
97
+ </div>
98
+
99
+ <script>
100
+ // 12 statements (6 Fact, 6 Fiction) derived from the provided MERIT material
101
+ const statements = [
102
+ // ===== FACTS (6) =====
103
+ {
104
+ text: "MERIT reframes course evaluations around growth, collaboration, and transparency rather than punitive judgment.",
105
+ isFact: true,
106
+ explanation: "MERIT’s vision emphasizes improvement and shared responsibility over punishment."
107
+ },
108
+ {
109
+ text: "MERIT promotes “same-side pedagogy,” making faculty, students, and administrators partners in improving teaching.",
110
+ isFact: true,
111
+ explanation: "The vision explicitly calls for allies working together on teaching quality."
112
+ },
113
+ {
114
+ text: "MERIT integrates student voice, instructor reflection, course design, and peer input into a structured review.",
115
+ isFact: true,
116
+ explanation: "The core idea is a comprehensive review that blends these multiple perspectives."
117
+ },
118
+ {
119
+ text: "A core design challenge for MERIT is making the process so clearly non-punitive that misuse for discipline would be unthinkable.",
120
+ isFact: true,
121
+ explanation: "Non-punitive design is a stated goal to prevent disciplinary misuse."
122
+ },
123
+ {
124
+ text: "Stakeholders include instructors, students, department chairs/program leads (as partners), the MERIT team, CELT consultants, and college leadership.",
125
+ isFact: true,
126
+ explanation: "All of these are named stakeholders in the material."
127
+ },
128
+ {
129
+ text: "Measures of success include high faculty and student satisfaction and positive recognition from chairs and administrators.",
130
+ isFact: true,
131
+ explanation: "Satisfaction and recognition are explicitly listed as success measures."
132
+ },
133
+
134
+ // ===== FICTIONS (6) =====
135
+ {
136
+ text: "MERIT is primarily intended to discipline underperforming instructors through evaluative penalties.",
137
+ isFact: false,
138
+ explanation: "Fiction. MERIT is explicitly non-punitive and growth-oriented."
139
+ },
140
+ {
141
+ text: "Students are not considered feedback providers in MERIT.",
142
+ isFact: false,
143
+ explanation: "Fiction. Student voice is a central input to the review."
144
+ },
145
+ {
146
+ text: "Department chairs and program leads act as enforcers rather than partners within MERIT.",
147
+ isFact: false,
148
+ explanation: "Fiction. Chairs/program leads are described as partners, not enforcers."
149
+ },
150
+ {
151
+ text: "MERIT replaces CELT entirely and removes the role of consultants in the process.",
152
+ isFact: false,
153
+ explanation: "Fiction. CELT consultants are listed among the stakeholders."
154
+ },
155
+ {
156
+ text: "MERIT deliverables exclude prototypes and focus only on final policies.",
157
+ isFact: false,
158
+ explanation: "Fiction. Deliverables include prototypes like interview guides and templates."
159
+ },
160
+ {
161
+ text: "Success in MERIT is measured by how effectively it identifies and penalizes low-performing instructors.",
162
+ isFact: false,
163
+ explanation: "Fiction. Success focuses on satisfaction, recognition, design principles, and practical tools—not penalties."
164
+ }
165
+ ];
166
+
167
+ // Game logic (shuffle, progress, scoring)
168
+ let currentIndex = 0, score = 0, answered = false;
169
+ function shuffle(arr) {
170
+ for (let i = arr.length - 1; i > 0; i--) {
171
+ const j = Math.floor(Math.random() * (i + 1));
172
+ [arr[i], arr[j]] = [arr[j], arr[i]];
173
+ }
174
+ }
175
+ function startGame() {
176
+ shuffle(statements);
177
+ currentIndex = 0; score = 0; answered = false;
178
+ document.getElementById('restart-btn').style.display = 'none';
179
+ loadStatement(); updateScore();
180
+ }
181
+ function loadStatement() {
182
+ if (currentIndex >= statements.length) return endGame();
183
+ const s = statements[currentIndex];
184
+ document.getElementById('statement').textContent = s.text;
185
+ const resultEl = document.getElementById('result');
186
+ resultEl.style.display = 'none';
187
+ resultEl.textContent = '';
188
+ resultEl.className = '';
189
+ document.getElementById('explanation').style.display = 'none';
190
+ document.getElementById('next-btn').style.display = 'none';
191
+ answered = false; updateProgress();
192
+ }
193
+ function guess(isFactGuess) {
194
+ if (answered) return;
195
+ answered = true;
196
+ const correct = statements[currentIndex].isFact;
197
+ const resultEl = document.getElementById('result');
198
+ if (isFactGuess === correct) {
199
+ resultEl.textContent = 'Correct!';
200
+ resultEl.className = 'correct';
201
+ score++;
202
+ } else {
203
+ resultEl.textContent = 'Incorrect!';
204
+ resultEl.className = 'incorrect';
205
+ }
206
+ resultEl.style.display = 'block';
207
+ const expEl = document.getElementById('explanation');
208
+ expEl.textContent = statements[currentIndex].explanation + " (See source link above.)";
209
+ expEl.style.display = 'block';
210
+ document.getElementById('next-btn').style.display = 'inline-block';
211
+ updateScore();
212
+ }
213
+ function nextStatement() {
214
+ currentIndex++;
215
+ if (currentIndex < statements.length) loadStatement();
216
+ else endGame();
217
+ }
218
+ function updateScore() {
219
+ document.getElementById('score').textContent = `Score: ${score} / ${statements.length}`;
220
+ }
221
+ function updateProgress() {
222
+ const pct = Math.round((currentIndex / statements.length) * 100);
223
+ document.getElementById('progress-bar').style.width = pct + '%';
224
+ }
225
+ function endGame() {
226
+ const pct = Math.round((score / statements.length) * 100);
227
+ document.getElementById('statement').textContent =
228
+ `Game Over! You scored ${score} of ${statements.length} (${pct}%).`;
229
+ document.getElementById('result').style.display = 'none';
230
+ document.getElementById('explanation').style.display = 'none';
231
+ document.getElementById('next-btn').style.display = 'none';
232
+ document.getElementById('restart-btn').style.display = 'inline-block';
233
+ document.getElementById('progress-bar').style.width = '100%';
234
+ }
235
+ startGame();
236
+ </script>
237
+ </body>
238
  </html>