Content deleted Content added
|
|
(4 intermediate revisions by the same user not shown) |
if (true) {
var mathTags = $('.mwe-math-mathml-a11y');
if (false && mathTags.length > 0){ //only do something when there's math on the page
if (mathTags.length > 0 && !window.MathJax = ){ //hookonly intodo MathJaxsomething when there's configurationmath on the page
window.MathJax = { //hook into MathJax's configuration
AuthorInit: function () {
AuthorInit: function () { MathJax.Hub.Register.StartupHook("End",function () { //when MathJax is done...
MathJax.Hub.Queue(
function(){
mathTags.removeClass('mwe-math-mathml-a11y'); // .. make the span around MathML (now MathJax output) visible
$('.mwe-math-fallback-image-inline').addClass('mwe-math-mathml-a11y'); //hide fallback images
}
}
);
);
});
}
}
};
mw.loader.load('https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=MML_HTMLorMML-full');//load MathJax with a suitable combined config file
}
}
|