User:FlyingRagnar/timeless.js: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
No edit summary
(Blanked the page)
Tag: Blanking
 
Line 1: Line 1:
mw.loader.load( 'oojs-ui-widgets' );
function createNJQueryTabs()
{


var tabPanel1 = new OO.ui.TabPanelLayout( 'one' );
var tabPanel2 = new OO.ui.TabPanelLayout( 'two' );
tabPanel2.$element.append( '<p>Second tab paerqdswfanel</p>' );
var index = new OO.ui.IndexLayout();
index.addTabPanels( [ tabPanel1, tabPanel2 ] );
$( '#ntabs' ).append( index.$element );
}
// after the page has loaded
jQuery( document ).ready( function( $ ) {
        // ensure that the resource modules are used as dependencies so they are fully loaded in time
        mw.loader.using( 'oojs-ui-widgets', function() {createNJQueryTabs();} );
} );

Latest revision as of 03:18, 29 May 2020