/**
 * Hodiny
 */

jQuery.fn.clock = function () {
    function getTime(clock) {
        var today = new Date();

        clock.html(today.getHours() + 'h ' + today.getMinutes() + 'min');

        setTimeout(
            function () {
                getTime(clock)
            },
            1000
        );
    }

    return getTime(this);
};
