When a≠0, there are two solutions to ax2+bx+c=0, and they are
x=−b±√b2−4ac2a.
The trick here is to start the Jmol loading process only after the MathJax process is complete. We monitor the contents of the MathJax_Message div every 10 ms, and while it doesn't exist or its message contains the word Loading, we loop: checkMathJax = function(fReady) { return (!$("#MathJax_Message")[0] || $('#MathJax_Message:contains("Loading")')[0] ? setTimeout(function(){checkMathJax(fReady)},10) : fReady()); } | spin on spin off |