Skip to content

Commit

Permalink
fix: [選課小幫手] 儲存課程數字 bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
itshenrywu committed Aug 18, 2024
1 parent 592dbae commit 0d9404f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions course/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@
</script>
<script>
$(function(){
let savedCourse = JSON.parse(localStorage.getItem('savedCourse') || '[]');
let getTerm = localStorage.getItem('term') || '';
if(savedCourse.length > 0) $('.savedCourse_count').text(savedCourse.length).show();
else $('.savedCourse_count').hide();

function conventTime(arr) {
const formatDateTime = (dateTime) => {
const date = new Date(dateTime);
Expand Down

0 comments on commit 0d9404f

Please sign in to comment.