##// 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 <!-- <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">
16 function CheckMathJax(){
17 if(window.MathJax){
18 document.getElementById("MatjaxFetchingWarning").style.visibility='hidden'
19 }
20 }
21 </script>
15 <script type="text/javascript">
22 <script type="text/javascript">
16 if (typeof MathJax == 'undefined') {
23 if (typeof MathJax == 'undefined') {
17 console.log("No local MathJax, loading from CDN");
24 console.log("No local MathJax, loading from CDN");
@@ -37,7 +44,7 b''
37
44
38 </head>
45 </head>
39
46
40 <body>
47 <body onload='CheckMathJax();'>
41
48
42 <div id="header">
49 <div id="header">
43 <span id="ipython_notebook"><h1>IPython Notebook</h1></span>
50 <span id="ipython_notebook"><h1>IPython Notebook</h1></span>
@@ -49,6 +56,12 b''
49 <span id="kernel_status">Idle</span>
56 <span id="kernel_status">Idle</span>
50 </div>
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 <div id="main_app">
65 <div id="main_app">
53
66
54 <div id="left_panel">
67 <div id="left_panel">
General Comments 0
You need to be logged in to leave comments. Login now