hey guys im not sure if you are aware of the countdown plugin but what im trying to do is select the number of days...so instance some like like this:
//example
if (days > 2)
{
// show days and hrs
}else
{
// show hours, mins, seconds
}
here is my working code below...I have looked in the documentation but Im unable to find the sytax if anyone can help please...thank you
$(function () {
var austDay = new Date();
austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
$('#countdown').countdown(
{
until: austDay,
compact: true,
layout: '{dn} Days {hnn} Hours {mnn} Minutes and {snn} Seconds {desc}',
description: 'left (22nd July @ 11:20pm)'
});
});