MediaWiki:Common.js: Difference between revisions

From Minetest
>Xyz
No edit summary
>Xyz
No edit summary
(No difference)

Revision as of 11:37, 10 September 2013

function animate() {
    $('.animated').each(function () {
        var current = $(this).find('.active').removeClass('active');
        next = current.next().length ? current.next() : $(this).children().eq(0);
        next.addClass('active');
    });
    setTimeout(animate, 1500);
}

if ($('.animated').length) {
    animate();
}