-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
268 lines (246 loc) · 13.6 KB
/
Copy pathindex.html
File metadata and controls
268 lines (246 loc) · 13.6 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>End-of-Semester Sentiment & Skills</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Reveal.js CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js@4.5.0/dist/reveal.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js@4.5.0/dist/theme/black.css" id="theme">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- Slide 1: Title -->
<section>
<h1 style="font-size: 2.5em; margin-bottom: 10px;">Coding in the Humanities</h1>
<h3 style="font-size: 1.2em; margin-bottom: 20px;">End-of-Semester Wrap-Up</h3>
<div id="connection-info" style="margin-top: 10px; padding: 15px; background: rgba(255,255,255,0.1); border-radius: 10px; display: inline-block;">
<p style="font-size: 0.5em; margin: 0 0 10px 0;">Join the session:</p>
<div id="qrcode" style="display: inline-block; background: white; padding: 5px;"></div>
<p id="join-link" style="font-size: 0.4em; margin-top: 5px; color: #42affa;"></p>
<p id="status-indicator" style="font-size: 0.3em; color: #aaa; margin: 0;">Status: Connecting to network...</p>
</div>
</section>
<!-- Slide 2: Sentiment Analysis Input -->
<section>
<h2>How are you feeling?</h2>
<p>Go to <strong>/student.html</strong> to submit your thoughts!</p>
<div id="sentiment-legend" style="margin-top: 50px;">
<span style="color: #4caf50;">Positive</span> |
<span style="color: #ffeb3b;">Neutral</span> |
<span style="color: #f44336;">Negative</span>
</div>
</section>
<!-- Slide 3: Sentiment Visualization (Bubbles) -->
<section id="bubble-slide">
<h2>Class Sentiment</h2>
<div style="display: flex; justify-content: space-between; font-size: 0.6em; color: #aaa; margin-bottom: 10px;">
<span>Negative</span>
<span>Neutral</span>
<span>Positive</span>
</div>
<div id="bubble-container">
<!-- Bubbles will appear here -->
</div>
</section>
<!-- Slide 4: Python & NLP Quiz - Question 1 -->
<section>
<h2>Skills Check: Q1</h2>
<div class="quiz-container">
<div class="question">
<p>1. Which library is commonly used for NLP in Python?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) Pandas</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) NLTK</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) Flask</li>
</ul>
</div>
</div>
</section>
<!-- Slide 5: Python & NLP Quiz - Question 2 -->
<section>
<h2>Skills Check: Q2</h2>
<div class="quiz-container">
<div class="question">
<p>2. What does 'tokenization' do?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) Encrypts data</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) Splits text into words</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) Connects to API</li>
</ul>
</div>
</div>
</section>
<!-- Slide 6: Python & NLP Quiz - Question 3 -->
<section>
<h2>Skills Check: Q3</h2>
<div class="quiz-container">
<div class="question">
<p>3. What is the output of <code>print(10 % 3)</code>?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) 1</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) 3</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) 10</li>
</ul>
</div>
</div>
</section>
<!-- Slide 7: Python & NLP Quiz - Question 4 -->
<section>
<h2>Skills Check: Q4</h2>
<div class="quiz-container">
<div class="question">
<p>4. Which data structure is immutable?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) List</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) Dictionary</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) Tuple</li>
</ul>
</div>
</div>
</section>
<!-- Slide 8: Python & NLP Quiz - Question 5 -->
<section>
<h2>Skills Check: Q5</h2>
<div class="quiz-container">
<div class="question">
<p>5. What keyword defines a function?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) func</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) def</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) function</li>
</ul>
</div>
</div>
</section>
<!-- Slide 9: Python & NLP Quiz - Question 6 -->
<section>
<h2>Skills Check: Q6</h2>
<div class="quiz-container">
<div class="question">
<p>6. Which method adds an item to a list?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) push()</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) add()</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) append()</li>
</ul>
</div>
</div>
</section>
<!-- Slide 10: Python & NLP Quiz - Question 7 -->
<section>
<h2>Skills Check: Q7</h2>
<div class="quiz-container">
<div class="question">
<p>7. What is a 'stop word' in NLP?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) A common word filtered out</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) The end of a sentence</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) A syntax error</li>
</ul>
</div>
</div>
</section>
<!-- Slide 11: Python & NLP Quiz - Question 8 -->
<section>
<h2>Skills Check: Q8</h2>
<div class="quiz-container">
<div class="question">
<p>8. How do you start a comment in Python?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) //</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) #</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) <!-- --></li>
</ul>
</div>
</div>
</section>
<!-- Slide 12: Python & NLP Quiz - Question 9 -->
<section>
<h2>Skills Check: Q9</h2>
<div class="quiz-container">
<div class="question">
<p>9. Which function gets the length of a string?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) length()</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) size()</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) len()</li>
</ul>
</div>
</div>
</section>
<!-- Slide 13: Python & NLP Quiz - Question 10 -->
<section>
<h2>Skills Check: Q10</h2>
<div class="quiz-container">
<div class="question">
<p>10. What is 'sentiment analysis'?</p>
<ul style="list-style: none; padding: 0;">
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">a) Checking grammar</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">b) Determining emotional tone</li>
<li style="padding: 10px; background: #333; margin: 5px; border-radius: 5px;">c) Translating text</li>
</ul>
</div>
</div>
</section>
<!-- Slide 5: Quiz Results -->
<section id="results-slide">
<h2>Quiz Results</h2>
<div style="display: flex; justify-content: space-between; gap: 20px;">
<!-- Left Column: Q1-Q5 -->
<div style="flex: 1;">
<table id="results-table-left" style="font-size: 0.5em; width: 100%;">
<thead>
<tr>
<th>Question</th>
<th>Correct</th>
<th>Incorrect</th>
</tr>
</thead>
<tbody id="results-body-left">
<!-- Rows Q1-Q5 -->
</tbody>
</table>
</div>
<!-- Right Column: Q6-Q10 -->
<div style="flex: 1;">
<table id="results-table-right" style="font-size: 0.5em; width: 100%;">
<thead>
<tr>
<th>Question</th>
<th>Correct</th>
<th>Incorrect</th>
</tr>
</thead>
<tbody id="results-body-right">
<!-- Rows Q6-Q10 -->
</tbody>
</table>
</div>
</div>
<!-- Totals Footer -->
<div style="margin-top: 20px; font-size: 0.6em; border-top: 2px solid #666; padding-top: 10px;">
<strong>Total Class Score:</strong>
<span style="color: #4caf50; margin-left: 10px;">Correct: <span id="total-correct">0</span></span>
<span style="color: #f44336; margin-left: 20px;">Incorrect: <span id="total-incorrect">0</span></span>
</div>
<button onclick="resetQuiz()" style="margin-top: 20px; font-size: 0.6em;">Reset Quiz</button>
<button onclick="loadQuizResults()" style="margin-top: 20px; margin-left: 10px; font-size: 0.6em; background-color: #555;">Refresh Table</button>
</section>
</div>
</div>
<!-- Reveal.js Script -->
<script src="https://cdn.jsdelivr.net/npm/reveal.js@4.5.0/dist/reveal.js"></script>
<!-- PeerJS (Networking) -->
<script src="https://unpkg.com/peerjs@1.5.2/dist/peerjs.min.js"></script>
<!-- QRCode.js (For easy phone connection) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<!-- Shared Sentiment Logic -->
<script src="js/sentiment.js"></script>
<!-- Custom Script -->
<script src="js/script.js"></script>
</body>
</html>