-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-form.html
More file actions
266 lines (243 loc) · 10.2 KB
/
test-form.html
File metadata and controls
266 lines (243 loc) · 10.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test Evaluation Form - UNIMA</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 50px auto;
padding: 20px;
background: #f5f5f5;
}
.form-container {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #333;
border-bottom: 3px solid #667eea;
padding-bottom: 10px;
}
h2 {
color: #667eea;
margin-top: 30px;
}
.question {
margin: 20px 0;
padding: 15px;
background: #f9f9f9;
border-left: 4px solid #667eea;
}
.question label {
display: block;
margin-bottom: 10px;
font-weight: bold;
color: #333;
}
.radio-group {
display: flex;
gap: 15px;
flex-wrap: wrap;
}
.radio-group label {
font-weight: normal;
display: flex;
align-items: center;
gap: 5px;
}
textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-family: Arial, sans-serif;
resize: vertical;
}
select {
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
width: 200px;
}
.submit-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 15px 40px;
border: none;
border-radius: 6px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
margin-top: 30px;
}
.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.info-box {
background: #d1ecf1;
border: 1px solid #bee5eb;
padding: 15px;
border-radius: 4px;
margin-bottom: 20px;
}
.lecturer-info {
background: #e7f3ff;
padding: 15px;
border-radius: 4px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="form-container">
<h1>📝 Course Evaluation Form - TEST PAGE</h1>
<div class="info-box">
<strong>ℹ️ This is a TEST page</strong><br>
Use this to test the browser extension before using it on the actual UNIMA portal.
The extension should work the same way here as it does on the real evaluation form.
</div>
<div class="lecturer-info">
<strong>Lecturer:</strong> Dr. Test Lecturer<br>
<strong>Course:</strong> COM 101 - Introduction to Computing<br>
<strong>Semester:</strong> 2024/2025
</div>
<form id="evaluationForm">
<h2>Section A: Teaching Effectiveness</h2>
<div class="question">
<label>1. The lecturer demonstrates thorough knowledge of the subject matter</label>
<div class="radio-group">
<label><input type="radio" name="q1" value="5"> 5 - Strongly Agree</label>
<label><input type="radio" name="q1" value="4"> 4 - Agree</label>
<label><input type="radio" name="q1" value="3"> 3 - Neutral</label>
<label><input type="radio" name="q1" value="2"> 2 - Disagree</label>
<label><input type="radio" name="q1" value="1"> 1 - Strongly Disagree</label>
</div>
</div>
<div class="question">
<label>2. The lecturer explains concepts clearly and effectively</label>
<div class="radio-group">
<label><input type="radio" name="q2" value="5"> 5 - Strongly Agree</label>
<label><input type="radio" name="q2" value="4"> 4 - Agree</label>
<label><input type="radio" name="q2" value="3"> 3 - Neutral</label>
<label><input type="radio" name="q2" value="2"> 2 - Disagree</label>
<label><input type="radio" name="q2" value="1"> 1 - Strongly Disagree</label>
</div>
</div>
<div class="question">
<label>3. The lecturer is well prepared for classes</label>
<div class="radio-group">
<label><input type="radio" name="q3" value="5"> 5 - Strongly Agree</label>
<label><input type="radio" name="q3" value="4"> 4 - Agree</label>
<label><input type="radio" name="q3" value="3"> 3 - Neutral</label>
<label><input type="radio" name="q3" value="2"> 2 - Disagree</label>
<label><input type="radio" name="q3" value="1"> 1 - Strongly Disagree</label>
</div>
</div>
<div class="question">
<label>4. The lecturer encourages student participation and questions</label>
<div class="radio-group">
<label><input type="radio" name="q4" value="5"> 5 - Strongly Agree</label>
<label><input type="radio" name="q4" value="4"> 4 - Agree</label>
<label><input type="radio" name="q4" value="3"> 3 - Neutral</label>
<label><input type="radio" name="q4" value="2"> 2 - Disagree</label>
<label><input type="radio" name="q4" value="1"> 1 - Strongly Disagree</label>
</div>
</div>
<div class="question">
<label>5. The lecturer provides timely and helpful feedback</label>
<div class="radio-group">
<label><input type="radio" name="q5" value="5"> 5 - Strongly Agree</label>
<label><input type="radio" name="q5" value="4"> 4 - Agree</label>
<label><input type="radio" name="q5" value="3"> 3 - Neutral</label>
<label><input type="radio" name="q5" value="2"> 2 - Disagree</label>
<label><input type="radio" name="q5" value="1"> 1 - Strongly Disagree</label>
</div>
</div>
<h2>Section B: Course Organization</h2>
<div class="question">
<label>6. The course objectives were clearly stated</label>
<select name="q6">
<option value="">-- Select --</option>
<option value="5">5 - Strongly Agree</option>
<option value="4">4 - Agree</option>
<option value="3">3 - Neutral</option>
<option value="2">2 - Disagree</option>
<option value="1">1 - Strongly Disagree</option>
</select>
</div>
<div class="question">
<label>7. The course materials were helpful and relevant</label>
<select name="q7">
<option value="">-- Select --</option>
<option value="5">5 - Strongly Agree</option>
<option value="4">4 - Agree</option>
<option value="3">3 - Neutral</option>
<option value="2">2 - Disagree</option>
<option value="1">1 - Strongly Disagree</option>
</select>
</div>
<div class="question">
<label>8. The workload was appropriate for the course</label>
<select name="q8">
<option value="">-- Select --</option>
<option value="5">5 - Strongly Agree</option>
<option value="4">4 - Agree</option>
<option value="3">3 - Neutral</option>
<option value="2">2 - Disagree</option>
<option value="1">1 - Strongly Disagree</option>
</select>
</div>
<h2>Section C: Comments</h2>
<div class="question">
<label>9. What did you like most about this course?</label>
<textarea name="comment1" rows="4" placeholder="Enter your comments here..."></textarea>
</div>
<div class="question">
<label>10. What suggestions do you have for improvement?</label>
<textarea name="comment2" rows="4" placeholder="Enter your comments here..."></textarea>
</div>
<div class="question">
<label>11. Additional comments</label>
<textarea name="comment3" rows="4" placeholder="Enter your comments here..."></textarea>
</div>
<button type="submit" class="submit-btn">Submit Evaluation</button>
</form>
</div>
<script>
document.getElementById('evaluationForm').addEventListener('submit', function(e) {
e.preventDefault();
// Count filled fields
let filled = 0;
let total = 0;
// Check radio buttons
for (let i = 1; i <= 5; i++) {
total++;
if (document.querySelector(`input[name="q${i}"]:checked`)) {
filled++;
}
}
// Check selects
for (let i = 6; i <= 8; i++) {
total++;
if (document.querySelector(`select[name="q${i}"]`).value) {
filled++;
}
}
// Check textareas
document.querySelectorAll('textarea').forEach(ta => {
total++;
if (ta.value.trim()) {
filled++;
}
});
alert(`Form submitted!\n\nFilled: ${filled}/${total} fields\n\nThis is just a test page. On the real portal, this would submit your evaluation.`);
});
</script>
</body>
</html>