Content added Content deleted
mNo edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
$bubbles.each(function( index ) { |
$bubbles.each(function( index ) { |
||
$( this ).addClass(' |
$( this ).addClass('cl-bubble-complete'); |
||
}); |
}); |
||
})( jQuery ); |
})( jQuery ); |
Revision as of 02:07, 5 December 2021
(function ( $ ) {
var $bubbles = $( '#cl-tracker' ).children();
var today = new Date(new Date().toLocaleString('en-US', { timeZone: 'Asia/Tokyo' })).getDay();
if ( today === 0 ) { // 0 is sunday, which is day 7 in CL
today = 7;
}
$bubbles.each(function( index ) {
$( this ).addClass('cl-bubble-complete');
});
})( jQuery );