{"size": 934, "ext": "js", "max_stars_repo_path": "02 - CSS + JS Clock/james.js", "max_stars_repo_name": "Tech615/javascript30", "max_stars_repo_stars_event_min_datetime": "2016-12-12T14:44:48.000Z", "max_stars_repo_stars_event_max_datetime": "2016-12-12T14:44:48.000Z", "max_issues_repo_path": "02 - CSS + JS Clock/james.js", "max_issues_repo_name": "Tech615/javascript30", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "02 - CSS + JS Clock/james.js", "max_forks_repo_name": "Tech615/javascript30", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 37.36, "max_line_length": 88, "alphanum_fraction": 0.6381156317}
window.addEventListener("load", function load(e){
    window.removeEventListener("load", load, false); //remove listener, no longer needed

    function setDate() {
        const now = new Date();

        const seconds = now.getSeconds();
        const minutes = now.getMinutes();
        const hours = now.getHours();

        const secondsDegrees = ((seconds / 60) * 360) + 90;
        const minutesDegrees = ((minutes / 60) * 360) + 90;
        const hoursDegrees = ((hours / 12) * 360) + 90;

        secondHand.style.transform = `rotate(${secondsDegrees}deg)`;
        minuteHand.style.transform = `rotate(${minutesDegrees}deg)`;
        hourHand.style.transform = `rotate(${hoursDegrees}deg)`;
    }

    const secondHand = document.querySelector('.second-hand');
    const minuteHand = document.querySelector('.min-hand');
    const hourHand = document.querySelector('.hour-hand');

    setInterval( setDate, 1000 );
},false);