MediaWiki:Slider.js

mw.loader.using( ['jquery.ui.tabs'], function {   $(function { var $tabs = $("#portal_slider").tabs({ fx: {opacity:'toggle', duration:100} } ); $("[class^=portal_sliderlink]").click(function { // bind click event to link           $tabs.tabs('select', this.className.replace("portal_sliderlink_", ""));            return false;        }); }); $(function { var $tabs = $("#portal2_slider").tabs({ fx: {opacity:'toggle', duration:100} } ); $("[class^=portal2_sliderlink]").click(function { // bind click event to link           $tabs.tabs('select', this.className.replace("portal2_sliderlink_", ""));            return false;        }); }); $(function { var $tabs = $("#portal3_slider").tabs({ fx: {opacity:'toggle', duration:100} } ); $("[class^=portal3_sliderlink]").click(function { // bind click event to link           $tabs.tabs('select', this.className.replace("portal3_sliderlink_", ""));            return false;        }); }); });