Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: importScript('MediaWiki:RefToolbar.js');") |
m |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | + | ||
+ | jQuery( document ).ready( function( $ ) { | ||
+ | mw.loader.using( 'jquery.tablesorter', function() { | ||
+ | //$('table.sortable').tablesorter( {sortList: [ { 2: 'desc'} ]} ) | ||
+ | // or look for tables with an ID attribute of "sortMe" on any page | ||
+ | $( '.wikitable.sortable .sortme' ).click(); | ||
+ | $( '.wikitable.sortable .sortme.desc' ).click(); | ||
+ | } ); | ||
+ | } ); | ||
+ | |||
+ | jQuery('#mw-head').append('<div><a href="https://www.legallyindia.com/" style="position: relative;background: #fff;padding: 0px 0px;z-index: 5;left: 180px;float:left;">>> Return to Legally India <<</a></div>') |
Latest revision as of 12:51, 28 April 2018
/* Any JavaScript here will be loaded for all users on every page load. */ jQuery( document ).ready( function( $ ) { mw.loader.using( 'jquery.tablesorter', function() { //$('table.sortable').tablesorter( {sortList: [ { 2: 'desc'} ]} ) // or look for tables with an ID attribute of "sortMe" on any page $( '.wikitable.sortable .sortme' ).click(); $( '.wikitable.sortable .sortme.desc' ).click(); } ); } ); jQuery('#mw-head').append('<div><a href="https://www.legallyindia.com/" style="position: relative;background: #fff;padding: 0px 0px;z-index: 5;left: 180px;float:left;">>> Return to Legally India <<</a></div>')