Таймер обратного отсчета

Описание

https://www.gieson.com/Library/projects/utilities/countdown/

Подключить к странице<script src="/sites/all/themes/axioma/js/countdown.js" charset="utf-8"></script>

JS
Код
      var currentMonth = <?php print date("m", mktime(0, 0, 0, date('m'), 1, date("Y"))); ?>;
var currentYear = <?php print date("Y"); ?>;
// console.log(currentMonth);
// console.log(currentYear);
if ( currentMonth === 12 ) {
    currentMonth = <?php print date("m", mktime(0, 0, 0, date('m') + 1, 1, date("Y"))); ?>;
    currentYear = <?php print date("Y"); ?> + 1;
    // console.log(currentMonth);
    // console.log(currentYear);
}
function myFunctionCountdown() {
    var myCountdown = new Countdown(
        {
            target: "countdown",
            year: currentYear,
            month : currentMonth,
            day : 15,
            hour : 0,
            minute : 0,
            second : 0,
            rangeHi:"day",
            numberMarginTop : 0,
            width    : 344,
            hideLine : true,
            labelText : {
                ms     : "ms",
                second : "секунд",
                minute : "минут",
                hour   : "часов",
                day    : "дней",
                month  : "месяцев",
                year   : "год"
            },
            numbers : {
                font : "Arial",
                color : "#FFFFFF",
                bkgd : "#f59f23",
            },
            labels : {
                font   : "Arial",
                color  : "#000000",
                offset : 0, // Number of pixels to push the labels down away from numbers.
                weight : "normal" // < - no comma on last item!
            },
            onComplete : function() {
                jQuery('.countdown__value > div').remove();
                currentMonth = <?php print date("m", mktime(0, 0, 0, date('m') + 1, 1, date("Y"))); ?>;
                // if ( currentMonth == 12 ) {
                //     currentYear = <?php print date("Y"); ?> + 1;
                // }
                // console.log(currentMonth);
                // console.log(currentYear);
                myFunctionCountdown();
            }
        }
    );
}

myFunctionCountdown();