/*! * Countdown JS */ !function (n) { function o(n) { return n < 10 ? "0" + n : n } n.fn.showclock = function () { var s = new Date, t = n(this).data("date").split("-"), a = [0, 0]; null != n(this).data("time") && (a = n(this).data("time").split(":")); var c = new Date(t[0], t[1] - 1, t[2], a[0], a[1]).getTime() / 1e3 - s.getTime() / 1e3; if (c <= 0 || isNaN(c)) return this.hide(), this; var e = Math.floor(c / 86400); c %= 86400; var i = Math.floor(c / 3600); c %= 3600; var u = Math.floor(c / 60); c = Math.floor(c % 60); var d = ""; 0 != e && (d += "
", d += "" + o(e) + "", d += "Day", d += "
"), d += "
", d += "" + o(i) + "", d += "Hr's", d += "
", d += "
", d += "" + o(u) + "", d += "Min's", d += "
", d += "
", d += "" + o(c) + "", d += "Sec", d += "
", this.html(d) }, n.fn.countdown = function () { var o = n(this); o.showclock(), setInterval(function () { o.showclock() }, 1e3) } }(jQuery), jQuery(document).ready(function () { jQuery(".countdown").length > 0 && jQuery(".countdown").each(function () { jQuery(this).countdown() }) });