Skip to content

Commit d99dc3e

Browse files
committed
digits
1 parent 8ad6ae9 commit d99dc3e

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

452-Check List-KTP.csv

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Status,NO.,Date,Group,Safety,Prelab,Full Report,Calculation,Due,Over Due
2-
✓,1,26-Aug,8,1,1,1,1,09-Sep,✗
3-
,2,02-Sep,9,1,1,1,1,16-Sep,✗
4-
,3,09-Sep,10,1,1,1,1,30-Sep,
5-
,4,16-Sep,1,1,1,1,1,30-Sep,
6-
,5,07-Oct,2,-,-,-,-,21-Oct,✗
7-
✗,6,14-Oct,3,-,-,-,-,28-Oct,✗
8-
,7,21-Oct,4,-,-,-,-,04-Nov,✗
9-
✗,8,28-Oct,5,-,-,-,-,11-Nov,✗
10-
,9,04-Nov,6,-,-,-,-,18-Nov,✗
11-
✗,10,18-Nov,7,-,-,-,-,02-Dec,✗
2+
✓,1,15-Aug,1,1,1,1,1,05-Sep,✗
3+
,2,22-Aug,2,1,1,-,-,12-Sep,✗
4+
,3,29-Aug,3,1,1,1,1,19-Sep,
5+
,4,05-Sep,4,1,-,-,-,26-Sep,
6+
,5,12-Sep,5,1,1,1,-,03-Oct,✗
7+
✗,6,19-Sep,6,1,1,-,-,10-Oct,✗
8+
,7,26-Sep,7,1,1,1,1,17-Oct,✗
9+
✗,8,03-Oct,8,1,-,-,-,24-Oct,✓
10+
,9,10-Oct,9,1,1,1,1,31-Oct,✗
11+
✗,10,17-Oct,10,1,1,-,-,07-Nov,✗

admin.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,10 +1464,10 @@ <h4 class="text-base sm:text-lg font-semibold text-gray-900 mb-3 sm:mb-4">Group
14641464
// Update statistics
14651465
const scores = Object.values(groupScores).map(g => g.total).filter(s => s > 0);
14661466
const stats = {
1467-
'avg-group-score': scores.length > 0 ? (scores.reduce((a, b) => a + b, 0) / scores.length).toFixed(1) : 0,
1468-
'highest-group-score': scores.length > 0 ? Math.max(...scores) : 0,
1467+
'avg-group-score': scores.length > 0 ? `${(scores.reduce((a, b) => a + b, 0) / scores.length).toFixed(2)}/20` : '0.00/20',
1468+
'highest-group-score': scores.length > 0 ? `${Math.max(...scores).toFixed(2)}/20` : '0.00/20',
14691469
'graded-groups': scores.length,
1470-
'total-points': scores.reduce((a, b) => a + b, 0).toFixed(1)
1470+
'total-points': `${scores.reduce((a, b) => a + b, 0).toFixed(2)}/20`
14711471
};
14721472

14731473
Object.entries(stats).forEach(([id, value]) => {
@@ -2099,11 +2099,11 @@ <h4 class="text-base sm:text-lg font-semibold text-gray-900 mb-3 sm:mb-4">Group
20992099
return `
21002100
<tr class="hover:bg-gray-50">
21012101
<td class="px-3 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm font-medium text-gray-900">Group ${group}</td>
2102-
<td class="px-4 py-3 text-sm text-gray-900">${scores.theory}</td>
2103-
<td class="px-4 py-3 text-sm text-gray-900">${scores.results}</td>
2104-
<td class="px-4 py-3 text-sm text-gray-900">${scores.appendix}</td>
2105-
<td class="px-4 py-3 text-sm text-gray-900">${scores.discussion}</td>
2106-
<td class="px-4 py-3 text-sm font-semibold text-gray-900">${scores.total}</td>
2102+
<td class="px-4 py-3 text-sm text-gray-900">${scores.theory.toFixed(2)}/3</td>
2103+
<td class="px-4 py-3 text-sm text-gray-900">${scores.results.toFixed(2)}/4</td>
2104+
<td class="px-4 py-3 text-sm text-gray-900">${scores.appendix.toFixed(2)}/5</td>
2105+
<td class="px-4 py-3 text-sm text-gray-900">${scores.discussion.toFixed(2)}/8</td>
2106+
<td class="px-4 py-3 text-sm font-semibold text-gray-900">${scores.total.toFixed(2)}/20</td>
21072107
<td class="px-3 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm">
21082108
<div class="flex items-center">
21092109
<div class="w-full bg-gray-200 rounded-full h-2 mr-2">
@@ -2167,7 +2167,7 @@ <h4 class="text-base sm:text-lg font-semibold text-gray-900 mb-3 sm:mb-4">Group
21672167
</button>
21682168
</td>
21692169
<td class="px-3 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm ${scoreClass}">
2170-
${totalScore > 0 ? `${totalScore}/${maxScore} (${percentage}%)` : '—'}
2170+
${totalScore > 0 ? `${totalScore.toFixed(2)}/${maxScore} (${percentage}%)` : '—'}
21712171
</td>
21722172
<td class="px-3 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm ${statusClass}">${groupStatus}</td>
21732173
</tr>
@@ -2326,12 +2326,12 @@ <h4 class="text-base sm:text-lg font-semibold text-gray-900 mb-3 sm:mb-4">Group
23262326
const maxScore = 70;
23272327
const totalPercentage = maxScore > 0 ? Math.round((totalScore / maxScore) * 100) : 0;
23282328

2329-
document.getElementById('modal-total-score').textContent = totalScore;
2329+
document.getElementById('modal-total-score').textContent = `${totalScore.toFixed(2)}/70`;
23302330
document.getElementById('modal-total-percentage').textContent = `${totalPercentage}%`;
2331-
document.getElementById('modal-performance-score').textContent = student.performanceScore;
2332-
document.getElementById('modal-oral-score').textContent = student.oralExamScore;
2333-
document.getElementById('modal-prelab-score').textContent = student.prelabScore;
2334-
document.getElementById('modal-group-score').textContent = student.groupReportScore;
2331+
document.getElementById('modal-performance-score').textContent = `${student.performanceScore.toFixed(2)}/10`;
2332+
document.getElementById('modal-oral-score').textContent = `${student.oralExamScore.toFixed(2)}/20`;
2333+
document.getElementById('modal-prelab-score').textContent = `${student.prelabScore.toFixed(2)}/20`;
2334+
document.getElementById('modal-group-score').textContent = `${student.groupReportScore.toFixed(2)}/20`;
23352335

23362336
// Detailed score breakdown
23372337
populateScoreBreakdown(student);
@@ -2379,7 +2379,7 @@ <h4 class="text-base sm:text-lg font-semibold text-gray-900 mb-3 sm:mb-4">Group
23792379
<div class="font-medium">${comp.name}</div>
23802380
<div class="text-xs text-gray-500">${comp.description}</div>
23812381
</td>
2382-
<td class="px-3 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm font-semibold text-gray-900">${comp.score}</td>
2382+
<td class="px-3 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm font-semibold text-gray-900">${comp.score.toFixed(2)}/${comp.max}</td>
23832383
<td class="px-3 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm text-gray-900">${comp.max}</td>
23842384
<td class="px-3 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm text-gray-900">${percentage}%</td>
23852385
<td class="px-3 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm ${statusClass}">${statusText}</td>

0 commit comments

Comments
 (0)