|
@@ -1,18 +0,0 @@
|
|
-<!doctype html>
|
|
|
|
-<html lang="en">
|
|
|
|
- <head>
|
|
|
|
- <meta charset="UTF-8" />
|
|
|
|
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
|
|
- <title>Vite + TS</title>
|
|
|
|
- </head>
|
|
|
|
- <body>
|
|
|
|
- <script src="/dist/index.js"></script>
|
|
|
|
- <script>
|
|
|
|
- const holidaysIncludingWeekends = chinaDays.getHolidays("2024-01-01", "2024-12-31")
|
|
|
|
- console.log('Holidays including weekends:', holidaysIncludingWeekends.map(d => chinaDays.getDayDetail(d)));
|
|
|
|
-
|
|
|
|
- const onlyHolidays = chinaDays.getHolidays("2024-01-01", "2024-12-31", false)
|
|
|
|
- console.log('Holidays do not include weekends:', onlyHolidays.map(d => chinaDays.getDayDetail(d)));
|
|
|
|
- </script>
|
|
|
|
- </body>
|
|
|
|
-</html>
|
|
|