I am using the Javascript timer module to create multiple countdowns and I would like the output of each to be slightly different (e.g. "Countdown complete in 2 hours" vs "02:00:00 to blastoff"). I would like to use the Output Overrides in the settings to achieve this but I do not know how to invoke the Output Format Presets 1 & 2.

Please provide some documentation on how to select the different formats using HTML or PHP.

Thanks

Comments

jvandervort’s picture

Oops, your right.

HTML:

<span class="jst_timer">
<span class="datetime" style="display: none;">2012-11-27T10:15:00-07:00</span> 
<span class="format_num" style="display:none;">2</span>
</span> 

PHP:

<?php
print theme('jstimer', 'jst_timer', array(
  'datetime' => '2015-05-02T08:11:00-08:00',
  'format_num' => 2,
));
?>

I'll add them to the readme as well.

jvandervort’s picture

Status: Active » Fixed

Added documentation to the README.txt file.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.