##// END OF EJS Templates
Fixing HTML cell syntax highlighting.
Fixing HTML cell syntax highlighting.

File last commit:

r4488:1699c903
r4505:3896ff19
Show More
notebook_main.js
50 lines | 1.9 KiB | application/javascript | JavascriptLexer
Brian E. Granger
Splitting notebook.js into muliple files for development ease.
r4349
//============================================================================
// On document ready
//============================================================================
$(document).ready(function () {
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
},
displayAlign: 'left', // Change this to 'center' to center equations.
"HTML-CSS": {
styles: {'.MathJax_Display': {"margin": 0}}
}
});
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 $('div#header').addClass('border-box-sizing');
Brian E. Granger
Implemented basic notebook browser and fixed numerous bugs.
r4488 $('div#main_app').addClass('border-box-sizing ui-widget ui-widget-content');
Brian E. Granger
Left panel is now working.
r4363 $('div#notebook_panel').addClass('border-box-sizing ui-widget');
Brian E. Granger
Splitting notebook.js into muliple files for development ease.
r4349
Brian E. Granger
Left panel is now working.
r4363 IPython.layout_manager = new IPython.LayoutManager();
Brian E. Granger
Refactoring pager into its own class.
r4357 IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter');
Brian E. Granger
Left panel is now working.
r4363 IPython.left_panel = new IPython.LeftPanel('div#left_panel', 'div#left_panel_splitter');
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 IPython.save_widget = new IPython.SaveWidget('span#save_widget');
Brian E. Granger
Left panel is now working.
r4363 IPython.notebook = new IPython.Notebook('div#notebook');
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 IPython.kernel_status_widget = new IPython.KernelStatusWidget('#kernel_status');
IPython.kernel_status_widget.status_idle();
Brian E. Granger
Refactoring pager into its own class.
r4357
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 IPython.layout_manager.do_resize();
Brian E. Granger
Hacks to prevent FLOUC (flash of unformatted content).
r4395
// These have display: none in the css file and are made visible here to prevent FLOUC.
$('div#header').css('display','block');
Brian E. Granger
Implemented basic notebook browser and fixed numerous bugs.
r4488 $('div#main_app').css('display','block');
Brian E. Granger
Massive work on the notebook document format....
r4484
// Perform these actions after the notebook has been loaded.
Brian E. Granger
Implemented basic notebook browser and fixed numerous bugs.
r4488 // We wait 100 milliseconds because the notebook scrolls to the top after a load
// is completed and we need to wait for that to mostly finish.
IPython.notebook.load_notebook(function () {
setTimeout(function () {
IPython.save_widget.update_url();
IPython.layout_manager.do_resize();
IPython.pager.collapse();
},100);
});
Brian E. Granger
Splitting notebook.js into muliple files for development ease.
r4349 });