Difference between revisions of "MediaWiki:Common.js"

From Glolf Wiki
Jump to navigation Jump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: mw.loader.getScript('https://twemoji.maxcdn.com/v/latest/twemoji.min.js').then(function () { twe...")
 
 
Line 2: Line 2:
  
 
mw.loader.getScript('https://twemoji.maxcdn.com/v/latest/twemoji.min.js').then(function () {
 
mw.loader.getScript('https://twemoji.maxcdn.com/v/latest/twemoji.min.js').then(function () {
   twemoji.parse(document.body);
+
   twemoji.parse($('.mw-parser-output')[0]);
 
});
 
});

Latest revision as of 01:23, 1 June 2021

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

mw.loader.getScript('https://twemoji.maxcdn.com/v/latest/twemoji.min.js').then(function () {
   twemoji.parse($('.mw-parser-output')[0]);
});