Show More
@@ -92,11 +92,13 body { | |||
|
92 | 92 | |
|
93 | 93 | |
|
94 | 94 | div#header { |
|
95 | /* Initially hidden to prevent FLOUC */ | |
|
96 | display: none; | |
|
95 | 97 | position: relative; |
|
96 | 98 | height: 45px; |
|
97 | 99 | padding: 5px; |
|
98 | 100 | margin: 0px; |
|
99 | width: 100% | |
|
101 | width: 100%; | |
|
100 | 102 | } |
|
101 | 103 | |
|
102 | 104 | span#ipython_notebook { |
@@ -143,6 +145,8 span#kernel_status { | |||
|
143 | 145 | } |
|
144 | 146 | |
|
145 | 147 | div#notebook_app { |
|
148 | /* Initially hidden to prevent FLOUC */ | |
|
149 | display: none; | |
|
146 | 150 | width: 100%; |
|
147 | 151 | position: relative; |
|
148 | 152 | } |
@@ -470,17 +470,17 var IPython = (function (IPython) { | |||
|
470 | 470 | var that = this; |
|
471 | 471 | var cell = that.selected_cell(); |
|
472 | 472 | var cell_index = that.find_cell_index(cell); |
|
473 | // TODO: the logic here needs to be moved into appropriate | |
|
474 | // methods of Notebook. | |
|
475 | 473 | if (cell instanceof IPython.CodeCell) { |
|
476 | 474 | cell.clear_output(); |
|
477 | 475 | var code = cell.get_code(); |
|
478 | 476 | if (that.notebook_load_re.test(code)) { |
|
477 | // %notebook load | |
|
479 | 478 | var code_parts = code.split(' '); |
|
480 | 479 | if (code_parts.length === 3) { |
|
481 | 480 | that.load_notebook(code_parts[2]); |
|
482 | 481 | }; |
|
483 | 482 | } else if (that.notebook_save_re.test(code)) { |
|
483 | // %notebook save | |
|
484 | 484 | var code_parts = code.split(' '); |
|
485 | 485 | if (code_parts.length === 3) { |
|
486 | 486 | that.save_notebook(code_parts[2]); |
@@ -34,5 +34,9 $(document).ready(function () { | |||
|
34 | 34 | IPython.layout_manager.do_resize(); |
|
35 | 35 | IPython.pager.collapse(); |
|
36 | 36 | IPython.layout_manager.do_resize(); |
|
37 | ||
|
38 | // These have display: none in the css file and are made visible here to prevent FLOUC. | |
|
39 | $('div#header').css('display','block'); | |
|
40 | $('div#notebook_app').css('display','block'); | |
|
37 | 41 | }); |
|
38 | 42 |
General Comments 0
You need to be logged in to leave comments.
Login now