debtcalculatorapp/static/debtcalculatorapp/js/index.js
/**
 * Make the clock in homepage click
 */
Make the clock in homepage click
Make the clock in homepage click
function startTime() {
    let now = new Date();
    let year = now.getFullYear();
    let month = (now.getMonth() + 1).fillZero();
    let day = now.getDate().fillZero();
    let dayInWeek = daysInWeekNamesS[now.getDay()];
    let hour = now.getHours().fillZero();
    let minute = now.getMinutes().fillZero();
    let second = now.getSeconds().fillZero();
    $("#clock").html(
        "<div>" + dayInWeek + " " + day + "/" + month + "/" + year + "</div>" +
        "<div>" + hour + ":" + minute + ":" + second + "</div>"
    );
    setTimeout(startTime, 1000)
}
function startTime ( ) { let now = new Date ( ) ; let year = now . getFullYear ( ) ; let month = ( now . getMonth ( ) + 1 ) . fillZero ( ) ; let day = now . getDate ( ) . fillZero ( ) ; let dayInWeek = daysInWeekNamesS [ now . getDay ( ) ] ; let hour = now . getHours ( ) . fillZero ( ) ; let minute = now . getMinutes ( ) . fillZero ( ) ; let second = now . getSeconds ( ) . fillZero ( ) ; $ ( "#clock" ) . html ( "<div>" + dayInWeek + " " + day + "/" + month + "/" + year + "</div>" + "<div>" + hour + ":" + minute + ":" + second + "</div>" ) ; setTimeout ( startTime , 1000 ) }
Make the clock in homepage click
Make the clock in homepage click