##// END OF EJS Templates
Warn user if MathJax can't be fetched from notebook...
Matthias BUSSONNIER -
Show More
@@ -1,244 +1,257
1 1 <!DOCTYPE HTML>
2 2 <html>
3 3
4 4 <head>
5 5 <meta charset="utf-8">
6 6
7 7 <title>IPython Notebook</title>
8 8
9 9 <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
10 10 <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> -->
11 11 <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />-->
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");
18 25 document.write(unescape("%3Cscript type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js%3Fconfig=TeX-AMS_HTML' charset='utf-8'%3E%3C/script%3E"));
19 26 }else{
20 27 console.log("Using local MathJax");
21 28 }
22 29 </script>
23 30
24 31 <link rel="stylesheet" href="static/codemirror-2.12/lib/codemirror.css">
25 32 <link rel="stylesheet" href="static/codemirror-2.12/mode/rst/rst.css">
26 33 <link rel="stylesheet" href="static/codemirror-2.12/theme/ipython.css">
27 34 <link rel="stylesheet" href="static/codemirror-2.12/theme/default.css">
28 35
29 36 <link rel="stylesheet" href="static/prettify/prettify.css"/>
30 37
31 38 <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
32 39 <link rel="stylesheet" href="static/css/layout.css" type="text/css" />
33 40 <link rel="stylesheet" href="static/css/base.css" type="text/css" />
34 41 <link rel="stylesheet" href="static/css/notebook.css" type="text/css" />
35 42 <link rel="stylesheet" href="static/css/renderedhtml.css" type="text/css" />
36 43
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>
44 51 <span id="save_widget">
45 52 <input type="text" id="notebook_name" size="20"></textarea>
46 53 <span id="notebook_id" style="display:none">{{notebook_id}}</span>
47 54 <button id="save_notebook"><u>S</u>ave</button>
48 55 </span>
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">
55 68
56 69 <div id="notebook_section">
57 70 <h3 class="section_header">Notebook</h3>
58 71 <div class="section_content">
59 72 <div class="section_row">
60 73 <span id="new_open" class="section_row_buttons">
61 74 <button id="new_notebook">New</button>
62 75 <button id="open_notebook">Open</button>
63 76 </span>
64 77 <span class="section_row_header">Actions</span>
65 78 </div>
66 79 <div class="section_row">
67 80 <span>
68 81 <select id="download_format">
69 82 <option value="json">ipynb</option>
70 83 <option value="py">py</option>
71 84 </select>
72 85 </span>
73 86 <span class="section_row_buttons">
74 87 <button id="download_notebook">Download</button>
75 88 </span>
76 89 </div>
77 90 <div class="section_row">
78 91 <span class="section_row_buttons">
79 92 <span id="print_widget">
80 93 <button id="print_notebook">Print</button>
81 94 </span>
82 95 </span>
83 96 </div>
84 97 </div>
85 98 </div>
86 99
87 100 <div id="cell_section">
88 101 <h3 class="section_header">Cell</h3>
89 102 <div class="section_content">
90 103 <div class="section_row">
91 104 <span class="section_row_buttons">
92 105 <button id="delete_cell"><u>D</u>elete</button>
93 106 </span>
94 107 <span class="section_row_header">Actions</span>
95 108 </div>
96 109 <div class="section_row">
97 110 <span id="cell_type" class="section_row_buttons">
98 111 <button id="to_code"><u>C</u>ode</button>
99 112 <!-- <button id="to_html">HTML</button>-->
100 113 <button id="to_markdown"><u>M</u>arkdown</button>
101 114 </span>
102 115 <span class="button_label">Format</span>
103 116 </div>
104 117 <div class="section_row">
105 118 <span id="cell_output" class="section_row_buttons">
106 119 <button id="toggle_output"><u>T</u>oggle</button>
107 120 <button id="clear_all_output">ClearAll</button>
108 121 </span>
109 122 <span class="button_label">Output</span>
110 123 </div>
111 124 <div class="section_row">
112 125 <span id="insert" class="section_row_buttons">
113 126 <button id="insert_cell_above"><u>A</u>bove</button>
114 127 <button id="insert_cell_below"><u>B</u>elow</button>
115 128 </span>
116 129 <span class="button_label">Insert</span>
117 130 </div>
118 131 <div class="section_row">
119 132 <span id="move" class="section_row_buttons">
120 133 <button id="move_cell_up">Up</button>
121 134 <button id="move_cell_down">Down</button>
122 135 </span>
123 136 <span class="button_label">Move</span>
124 137 </div>
125 138 <div class="section_row">
126 139 <span id="run_cells" class="section_row_buttons">
127 140 <button id="run_selected_cell">Selected</button>
128 141 <button id="run_all_cells">All</button>
129 142 </span>
130 143 <span class="button_label">Run</span>
131 144 </div>
132 145 <div class="section_row">
133 146 <span id="autoindent_span">
134 147 <input type="checkbox" id="autoindent" checked="true"></input>
135 148 </span>
136 149 <span class="checkbox_label">Autoindent:</span>
137 150 </div>
138 151 </div>
139 152 </div>
140 153
141 154 <div id="kernel_section">
142 155 <h3 class="section_header">Kernel</h3>
143 156 <div class="section_content">
144 157 <div class="section_row">
145 158 <span id="int_restart" class="section_row_buttons">
146 159 <button id="int_kernel">Interrupt</button>
147 160 <button id="restart_kernel">Restart</button>
148 161 </span>
149 162 <span class="section_row_header">Actions</span>
150 163 </div>
151 164 <div class="section_row">
152 165 <span id="kernel_persist">
153 166 <input type="checkbox" id="kill_kernel"></input>
154 167 </span>
155 168 <span class="checkbox_label">Kill kernel upon exit:</span>
156 169 </div>
157 170 </div>
158 171 </div>
159 172
160 173 <div id="help_section">
161 174 <h3 class="section_header">Help</h3>
162 175 <div class="section_content">
163 176 <div class="section_row">
164 177 <span id="help_buttons0" class="section_row_buttons">
165 178 <a id="python_help" href="http://docs.python.org" target="_blank">Python</a>
166 179 <a id="ipython_help" href="http://ipython.org/documentation.html" target="_blank">IPython</a>
167 180 </span>
168 181 <span class="section_row_header">Links</span>
169 182 </div>
170 183 <div class="section_row">
171 184 <span id="help_buttons1" class="section_row_buttons">
172 185 <a id="numpy_help" href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a>
173 186 <a id="scipy_help" href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a>
174 187 </span>
175 188 </div>
176 189 <div class="section_row">
177 190 <span id="help_buttons2" class="section_row_buttons">
178 191 <a id="matplotlib_help" href="http://matplotlib.sourceforge.net/" target="_blank">MPL</a>
179 192 <a id="sympy_help" href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a>
180 193 </span>
181 194 </div>
182 195 <div class="section_row">
183 196 <span class="help_string">run selected cell</span>
184 197 <span class="help_string_label">Shift-Enter :</span>
185 198 </div>
186 199 <div class="section_row">
187 200 <span class="help_string">run in terminal mode</span>
188 201 <span class="help_string_label">Ctrl-Enter :</span>
189 202 </div>
190 203 <div class="section_row">
191 204 <span class="help_string">show keyboard shortcuts</span>
192 205 <span class="help_string_label">Ctrl-m h :</span>
193 206 </div>
194 207 </div>
195 208 </div>
196 209
197 210 </div>
198 211 <div id="left_panel_splitter"></div>
199 212 <div id="notebook_panel">
200 213 <div id="notebook"></div>
201 214 <div id="pager_splitter"></div>
202 215 <div id="pager"></div>
203 216 </div>
204 217
205 218 </div>
206 219
207 220 <script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
208 221 <script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
209 222 <script src="static/jquery/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script>
210 223
211 224 <script src="static/codemirror-2.12/lib/codemirror.js" charset="utf-8"></script>
212 225 <script src="static/codemirror-2.12/mode/python/python.js" charset="utf-8"></script>
213 226 <script src="static/codemirror-2.12/mode/htmlmixed/htmlmixed.js" charset="utf-8"></script>
214 227 <script src="static/codemirror-2.12/mode/xml/xml.js" charset="utf-8"></script>
215 228 <script src="static/codemirror-2.12/mode/javascript/javascript.js" charset="utf-8"></script>
216 229 <script src="static/codemirror-2.12/mode/css/css.js" charset="utf-8"></script>
217 230 <script src="static/codemirror-2.12/mode/rst/rst.js" charset="utf-8"></script>
218 231
219 232 <script src="static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
220 233
221 234 <script src="static/prettify/prettify.js" charset="utf-8"></script>
222 235
223 236 <script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
224 237 <script src="static/js/utils.js" type="text/javascript" charset="utf-8"></script>
225 238 <script src="static/js/cell.js" type="text/javascript" charset="utf-8"></script>
226 239 <script src="static/js/codecell.js" type="text/javascript" charset="utf-8"></script>
227 240 <script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
228 241 <script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
229 242 <script src="static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script>
230 243 <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script>
231 244 <script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script>
232 245 <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script>
233 246 <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script>
234 247 <script src="static/js/printwidget.js" type="text/javascript" charset="utf-8"></script>
235 248 <script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script>
236 249 <script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
237 250 <script src="static/js/notebook_main.js" type="text/javascript" charset="utf-8"></script>
238 251
239 252
240 253 </body>
241 254
242 255 </html>
243 256
244 257
General Comments 0
You need to be logged in to leave comments. Login now