You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
518 B

2 years ago
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).HighlightWeekends=n()}(this,(function(){"use strict";return function(e){var n={gregorian:[0,6],persian:[6],arabic:[0,6],indian:[0]};return{type:"mapDays",fn:function(){return function(i){var t=i.date,r=t.calendar,a=t.weekDay;if((Array.isArray(e)?e:n[r.name]).includes(a.index))return{className:"highlight highlight-red"}}}}}}));