math.js 585 B

12345678910111213141516171819
  1. $(document).ready(function() {
  2. setMathJax();
  3. });
  4. function setMathJax() {
  5. if(window.MathJax === undefined) {
  6. setTimeout(setMathJax, 500);
  7. return;
  8. }
  9. window.MathJax.Hub.Queue(function () {
  10. $(".MathJax").css('padding', '1%');
  11. $(".MathJax .math").css('width', '');
  12. $(".MathJax .math > span").css('width', '');
  13. $(":not(.MathJax_Display) > .MathJax .math > span").css('font-size', '');
  14. $(".MathJax .math > span > span").css('position', '');
  15. $(".MathJax .math > span > span > span").css('height', '');
  16. });
  17. }