leapfrogtechnology / nepali-date-picker

Nepali Date Picker jQuery Plugin 🇳🇵
http://leapfrogtechnology.github.io/nepali-date-picker/demo/
ISC License
87 stars 71 forks source link

Is there is a way to set holidays? #56

Closed bleedweedsuz closed 5 months ago

bleedweedsuz commented 1 year ago

I use below CSS to indicate holidays, it would be awesome if I can set date range or some sort of date arrays.

/*Custom - Holiday indicator*/
<style> #ndp-nepali-box #ndp-table table td:has(a[data-value="2080-03-03"]){ background: #ff9898; } </style>
<style> #ndp-nepali-box #ndp-table table td:has(a[data-value="2080-03-04"]){ background: #ff9898; } </style>
<style> #ndp-nepali-box #ndp-table table td:has(a[data-value="2080-03-05"]){ background: #ff9898; } </style>
/*Saturday - सार्बजनिक bida*/
<style> 
#ndp-nepali-box #ndp-table table tr td:nth-child(7){ background: #ff3f3f; } 
#ndp-nepali-box #ndp-table table tr td:nth-child(7)>a{color:white;}
</style>
mesaugat commented 5 months ago

Stale issue, closing.