Skip to content

Commit

Permalink
add holidays/extraWorkDays for 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
kiang committed Feb 27, 2024
1 parent 18e1dad commit 213ad9f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ <h2 class="f3 tc mt0" id="worksheetTitle"></h2>
const startDate = document.getElementById('dateBegin')
const endDate = document.getElementById('dateEnd')

const holidays = [ // https://www.319papago.idv.tw/holiday/2023-hr/2023_HR.html
const holidays = [
// https://www.319papago.idv.tw/holiday/2023-hr/2023_HR.html
'2023-01-01',
'2023-01-02',
'2023-01-20',
Expand All @@ -105,7 +106,21 @@ <h2 class="f3 tc mt0" id="worksheetTitle"></h2>
'2023-06-23',
'2023-09-29',
'2023-10-09',
'2023-10-10'
'2023-10-10',
// https://www.storm.mg/lifestyle/4868251
'2024-01-01',
'2024-02-08',
'2024-02-09',
'2024-02-12',
'2024-02-13',
'2024-02-14',
'2024-02-28',
'2024-04-04',
'2024-04-05',
'2024-05-01',
'2024-06-10',
'2024-09-17',
'2024-10-10'
].map(e => new Date(e).getTime())

const extraWorkDays = [
Expand All @@ -114,7 +129,8 @@ <h2 class="f3 tc mt0" id="worksheetTitle"></h2>
'2023-02-18',
'2023-03-25',
'2023-06-17',
'2023-09-23'
'2023-09-23',
'2024-02-17'
].map(e => new Date(e).getTime())

const now = new Date()
Expand Down

1 comment on commit 213ad9f

@bluet
Copy link

@bluet bluet commented on 213ad9f Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Please sign in to comment.