/*
*/MathJax/latest.js
*
*Copyright (c) 2009-2018 The MathJax Consortium
*
*Licensed under the Apache License, Version 2.0 (the License);
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
*http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
*distributed under the License is distributed on an AS IS BASIS,
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*See the License for the specific language governing permissions and
*limitations under the License.
*/
(function(){var h={cdnjs.cloudflare.com:{api:https://api.cdnjs.com/libraries/mathjax?fields=version,version:version,mathjax:https://cdnjs.cloudflare.com/ajax/libs/mathjax/},cdn.rawgit.com:{api:https://api.github.com/repos/mathjax/mathjax/releases/latest,version:tag_name,mathjax:https://cdn.rawgit.com/mathjax/MathJax/},cdn.jsdelivr.net:{api:https://api.jsdelivr.com/v1/jsdelivr/libraries?name=mathjax&lastversion=*,version:lastversion,mathjax:https://cdn.jsdelivr.net/mathjax/}};function g(q){if(console&&console.log){console.log(q)}}function e(){if(document.currentScript){return document.currentScript}var r=document.getElementsByTagName(script);for(var v=0,q=r.length;v element)}}function i(){var q=e();if(q){o(q.src.replace(//latest.js/,/MathJax.js))}else{g(Cant determine the URL for loading MathJax)}}function m(q,r,s){var t=j();if(t){t.onreadystatechange=function(){if(t.readyState===4){if(t.status===200){var v=JSON.parse(t.responseText);if(v instanceof Array){v=v[0]}var u=v[q.version];if(u.substr(0,2)===2.){c(u);o(q.mathjax+v[q.version]+s+/MathJax.js+r);return}}else{g(Problem acquiring MathJax version: status = +t.status)}i()}};t.open(GET,q.api,true);t.send(null)}else{g(Cant create XMLHttpRequest object);i()}}var n=e();var p=a(n);if(p){var b=n.src.replace(/.*?(?|$)/,$1);b+=(b?&:?)+latest;var f=(n.src.match(//unpacked/latest.js/)?/unpacked:);var k=d();if(k){o(p.mathjax+k+f+/MathJax.js+b)}else{m(p,b,f)}}else{i()}})();
Reviews
There are no reviews yet.