Difference between revisions of "MediaWiki:Common.js"

From Algowiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
(function () {
 
(function () {
//var elem = $('div#mw-indicator-toplink').find('pre');
+
var elem = $('div#mw-indicator-toplink').find('pre');
//var cnt = elem.contents();
+
var cnt = elem.contents();
//elem.replaceWith(cnt);
+
elem.replaceWith(cnt);
 
}());
 
}());

Revision as of 13:03, 15 June 2018

/* Any JavaScript here will be loaded for all users on every page load. */

(function () {
var elem = $('div#mw-indicator-toplink').find('pre');
var cnt = elem.contents();
elem.replaceWith(cnt);
}());