sparespace
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: [Booking Package] Add class to the current dateI do!
1) In Calendar.js file change this line:
dayPanel.setAttribute("data-key", key);on this:
dayPanel.setAttribute("data-key", calendar[key].year + "-" + ( "0" + calendar[key].month).slice(-2) + "-" + ( "0" + calendar[key].day).slice(-2)); var currentDate = new Date(); jQuery(".dayPanelHeight").each(function() { var specifiedDate = jQuery(this).data('key'); var date = new Date(specifiedDate); if(date.setHours(0,0,0,0) == currentDate.setHours(0,0,0,0)){ jQuery(this).addClass('today'); } });2) In your .css file add new element with name .today {} and set your own styles for current data.
Thx me!
Forum: Plugins
In reply to: [Booking Package] Add class to the current dateI want other css style for current date
Forum: Plugins
In reply to: [Booking Package] Add class to the current dateThis just other example (picture), for you can see how it looks like 🙂
Forum: Plugins
In reply to: [Booking Package] Add class to the current dateHello,
I do, but class the same.This just other example how it looks like: https://demo.themovation.com/entrepreneur/yoga/ (current date have class “today”).
- This reply was modified 5 years, 9 months ago by sparespace.
3×7, can you show your full code for refreshing a widget and a button? Thx!
Hey, Krzysztof! Can you add any demo with version 1.5 (with gravatars) to your site? Plz! ^^
Viewing 6 replies - 1 through 6 (of 6 total)