Skip to content

Commit

Permalink
fix: [選課小幫手] 學分數小數點問題、調整排版
Browse files Browse the repository at this point in the history
  • Loading branch information
itshenrywu committed Aug 20, 2024
1 parent d004306 commit 9949159
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion course/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ <h1>搜尋課程</h1>
<th style="width:16rem">課程名稱</th>
<th style="width:8rem">上課時間</th>
<th style="width:9rem">修別/學分</th>
<th style="width:6rem">授課老師</th>
<th style="width:7rem">授課老師</th>
<th>備註</th>
</tr>
</thead>
Expand Down
4 changes: 2 additions & 2 deletions course/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
}

td:nth-child(3):before {
content: "網路初選:";
content: "初選:";
}

td:nth-child(4):before {
content: "網路加退選:";
content: "加退選:";
}

td:nth-child(5):before {
Expand Down
2 changes: 1 addition & 1 deletion course/rule.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}

main [data-detail] td:nth-child(3) {
width: 5rem;
width: 6rem;
}

main [data-detail] td:nth-child(4) {
Expand Down
4 changes: 2 additions & 2 deletions course/saved.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
if(v['type'] == '必修') _type_class = '';
else if(v['type'] == '選修') _type_class = 'is-secondary';
else _type_class = 'is-outlined';
tr += '<td><span class="ts-badge is-end-spaced is-small is-dense '+_type_class+'">'+v['type']+( (v['otherinfo'] != null)?'['+v['otherinfo'].substring(0,2)+']':'' )+'</span>'+v['credit']+'</td>';
tr += '<td><span class="ts-badge is-end-spaced is-small is-dense '+_type_class+'">'+v['type']+( (v['otherinfo'] != null)?' | '+v['otherinfo'].substring(0,2):'' )+'</span>'+v['credit']+'</td>';
tr += '<td>'+v['teacher']+'</td>';
tr += '<td>';
if(v['rates'] != '') tr += '<span class="ts-badge is-end-spaced is-small is-dense is-outlined"><span class="ts-icon is-comment-icon"></span> '+v['rates']+' 評價</span> ';
Expand Down Expand Up @@ -432,7 +432,7 @@
function updateCount() {
_c = 0; _h = 0;
$.each( savedCourse, function( k, v ) {
if(courseData[v]) _c += parseInt(courseData[v]['credit'])
if(courseData[v]) _c += parseFloat(courseData[v]['credit']*10)/10
})
$('.savedCourse_credit').text(_c);
$('.savedCourse_count').text(savedCourse.length);
Expand Down

0 comments on commit 9949159

Please sign in to comment.