##// END OF EJS Templates
Warn user if MathJax can't be fetched from notebook...
Matthias BUSSONNIER -
Show More
@@ -12,6 +12,13 b''
12 12
13 13 <!-- <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script> -->
14 14 <script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script>
15 <script language="Javascript">
16 function CheckMathJax(){
17 if(window.MathJax){
18 document.getElementById("MatjaxFetchingWarning").style.visibility='hidden'
19 }
20 }
21 </script>
15 22 <script type="text/javascript">
16 23 if (typeof MathJax == 'undefined') {
17 24 console.log("No local MathJax, loading from CDN");
@@ -37,7 +44,7 b''
37 44
38 45 </head>
39 46
40 <body>
47 <body onload='CheckMathJax();'>
41 48
42 49 <div id="header">
43 50 <span id="ipython_notebook"><h1>IPython Notebook</h1></span>
@@ -49,6 +56,12 b''
49 56 <span id="kernel_status">Idle</span>
50 57 </div>
51 58
59 <div id="MatjaxFetchingWarning">
60 There was an issues trying to fetch MathJax.js from the internet. You might
61 wan't to consider using "install_mathjax()" to be able to use the Notebook
62 fonctionnality offline
63 </div>
64
52 65 <div id="main_app">
53 66
54 67 <div id="left_panel">
General Comments 0
You need to be logged in to leave comments. Login now