Anonymous

Changes

From CUGC Wiki

MediaWiki:Common.js

293 bytes removed, 17:55, 12 March 2019
Remove debugging statements.
/* Any JavaScript here will be loaded for all users on every page load. */
// MathJax typesetting in edit previewsfunction mathJaxTypesetwaitForMathJax($content) { function waitForMathJax() { if (typeof MathJax === 'undefined') { setTimeout(function () { waitForMathJax($content); }, 1000); console.log('Waiting for MathJax.'); } else { console.log($content); // delay as wikipage.content is fired before $content is added to the page setTimeout( MathJax.Hub.Queue(["Typeset", MathJax.Hub, $content[0]]).execute, 1000); console.log('Found MathJax; typeset done.'); }
}
waitForMathJax();
}
 mw.hook('wikipage.content').add(mathJaxTypesetwaitForMathJax);