{"size": 1053, "ext": "js", "max_stars_repo_path": "public/js/analog_clock.js", "max_stars_repo_name": "genskjb2100/esp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/analog_clock.js", "max_issues_repo_name": "genskjb2100/esp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/analog_clock.js", "max_forks_repo_name": "genskjb2100/esp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.6829268293, "max_line_length": 91, "alphanum_fraction": 0.4995251662}
// Initialize Analog Interactive Clock
/*
function Clock_dg(prop) {
    var angle = 360/60,
        date = new Date();
        var h = date.getHours();
		//alert(h);
		h = 12;
        if(h > 12) {
            h = h - 12;
        }

        hour = h;
        minute = date.getMinutes(),
		//minute = 45,
		
        second = date.getSeconds(),
		//alert(second);
		//second = 5,
        hourAngle = (360/12) * hour + (360/(12*60)) * minute;

        $('#minute')[0].style[prop] = 'rotate('+angle * minute+'deg)';
        $('#second')[0].style[prop] = 'rotate('+angle * second+'deg)';
        $('#hour')[0].style[prop] = 'rotate('+hourAngle+'deg)';
}
*/
$(function(){
    var props = 'transform WebkitTransform MozTransform OTransform msTransform'.split(' '),
        prop,
        el = document.createElement('div');

    for(var i = 0, l = props.length; i < l; i++) {
        if(typeof el.style[props[i]] !== "undefined") {
            prop = props[i];
            break;
        }
    }
    setInterval(function(){
        Clock_dg(prop)
    },100);
});