Pink day theme - documentation
Applies global template color change for the pink day color, as that property is defined on the <html>
or <body>
element.
Working examples
Javascript code sample to schedule the CSS addition for pink day
The following script adds the CSS class only on April 10, 2019 based on local time.
( function( d ) {
"use strict";
var t = new Date(),
msT = t.getTime(),
s = new Date( 2019, 3, 10, 0, 1 ),
e = new Date( 2019, 3, 10, 23, 59 );
if ( s.getTime() < msT && msT < e.getTime() ) {
d.getElementsByTagName( "html" )[ 0 ].classList.add ("pnkDy-theme", "provisional");
}
} )( document );
Page details
- Date modified: