MediaWiki:Common.js: Difference between revisions

Created page with "$(document).ready(function(){ $('.animated-grids').each(function() { var $current = $(this).children().first(); $current.addClass('active'); ..."
(No difference)

Revision as of 01:14, 23 August 2014

$(document).ready(function(){
 
    $('.animated-grids').each(function() {
            var $current = $(this).children().first();
            $current.addClass('active');
        });
 
    setInterval(function() {
        $('.animated-grids').each(function() {

            var $current = $(this).children('.active');
            
            var $next = $current.nextAll(':not(.skip):first');
            if (!$next.length) {
                $next = $(this).children(':not(.skip):first');
            }
            $current.removeClass('active');
            $next.addClass('active');
        });
    }, 2000);


});
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis