##// END OF EJS Templates
Hide warning message about matjax when page load...
Matthias BUSSONNIER -
Show More
@@ -12,12 +12,15 b''
12
12
13 <!-- <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script> -->
13 <!-- <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script> -->
14 <script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script>
14 <script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script>
15 <script language="Javascript">
15 <script type="text/javascript">
16 function CheckMathJax(){
16 function CheckMathJax(){
17 var div=document.getElementById("MathJaxFetchingWarning")
17 if(window.MathJax){
18 if(window.MathJax){
18 div=document.getElementById("MatjaxFetchingWarning")
19 document.body.removeChild(div)
19 document.body.removeChild(div)
20 }
20 }
21 else{
22 div.style.display = "block";
23 }
21 }
24 }
22 if (typeof MathJax == 'undefined') {
25 if (typeof MathJax == 'undefined') {
23 console.log("No local MathJax, loading from CDN");
26 console.log("No local MathJax, loading from CDN");
@@ -55,7 +58,7 b''
55 <span id="kernel_status">Idle</span>
58 <span id="kernel_status">Idle</span>
56 </div>
59 </div>
57
60
58 <div id="MatjaxFetchingWarning" style="width:80%;margin:auto;padding-top:20%;text-align:justify">
61 <div id="MathJaxFetchingWarning" style="width:80%;margin:auto;padding-top:20%;text-align:justify;display:none">
59 <p style="font-size:26px;">There was an issues trying to fetch MathJax.js from the internet.</p>
62 <p style="font-size:26px;">There was an issues trying to fetch MathJax.js from the internet.</p>
60 <p>You may want to consider running the following in order to be able to use the Notebook.
63 <p>You may want to consider running the following in order to be able to use the Notebook.
61 <pre style="background-color:lightblue;border:thin silver solid">
64 <pre style="background-color:lightblue;border:thin silver solid">
General Comments 0
You need to be logged in to leave comments. Login now