MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 38: Line 38:
}
}
}(jQuery));
}(jQuery));
/****************************** Slides JS ******************************/
addOnloadHook(function(){
    $('.slidediv').each(function(){
        var width = $(this).width();
        $(this).find('.prev').click(function(){
            $(this).find('div').scrollLeft -= width + 'px';
        });
        $(this).fine('.next').click(function(){
            $(this).fine('div').scrollLeft += width + 'px';
        });
    });
});


/** Collapsible tables code *****************************************************
/** Collapsible tables code *****************************************************