I am got using following code in a javascript file(custom.js):
gapinvite = new Date(2014, 06 - 1, 2);
$('.days').countdown({
until: gapinvite,
layout: '{dn} {dl}',
timezone: +7
});
I am using theme options(theme-options.php) to get the input from a user and then need to use it in the above javascript file.If it was a php file I would've used:
$date = get_option('director_date');
if( $date) {
echo $date;
}
. Since it is a javascript file I do not know how that could be possible. Could you please help?