Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/vhosts/spacedonkey.de/httpdocs/wp-content/plugins/t-countdown/t-countdown.php on line 571
This is a test for integrating T(-) Countdown with Gutenberg Blocks.
First, we need to tidy up how the Javascript is being used. Here is a basic countdown that uses a gutenberg block set to 2 minutes.
Now let’s try a shortcode with a launch target of an external element.
[tminus t="+10 secs" launchtarget="#monkeymonk"]monkey is in space⦠space monkey![/tminus]
Of course, we can still use the old countdown (default), above and below targets:
[tminus t="+10 secs" launchtarget="tophtml"]this is the tophtml target area[/tminus]
[tminus t="+10 secs" launchtarget="bothtml"]this is the bothtml target area[/tminus]