This function will allow you to check if the current post or archive page is assigned a specific category. I use it often to apply category-based body classes and special styles for category archives.
Tweaking jQuery DatePicker to open up after Corona shut downs
How I used some simple JavaScript such as the date object and jQuery UI Datepicker setters to help a client open back up after the Corona shut-down.