Show More
@@ -8,13 +8,11 b' define([' | |||
|
8 | 8 | "use strict"; |
|
9 | 9 | |
|
10 | 10 | var Page = function () { |
|
11 | this.style(); | |
|
12 | 11 | this.bind_events(); |
|
13 | 12 | }; |
|
14 | 13 | |
|
15 | 14 | Page.prototype.style = function () { |
|
16 | $('div#header').addClass('border-box-sizing'); | |
|
17 | $('div#site').addClass('border-box-sizing'); | |
|
15 | console.log('page.style() is know an empty function, plese consider removing call.') | |
|
18 | 16 | }; |
|
19 | 17 | |
|
20 | 18 | Page.prototype.bind_events = function () { |
@@ -30,12 +28,14 b' define([' | |||
|
30 | 28 | Page.prototype.show_header = function () { |
|
31 | 29 | // The header and site divs start out hidden to prevent FLOUC. |
|
32 | 30 | // Main scripts should call this method after styling everything. |
|
31 | // TODO: selector are hardcoded, pass as constructor argument | |
|
33 | 32 | $('div#header').css('display','block'); |
|
34 | 33 | }; |
|
35 | 34 | |
|
36 | 35 | Page.prototype.show_site = function () { |
|
37 | 36 | // The header and site divs start out hidden to prevent FLOUC. |
|
38 | 37 | // Main scripts should call this method after styling everything. |
|
38 | // TODO: selector are hardcoded, pass as constructor argument | |
|
39 | 39 | $('div#site').css('display','block'); |
|
40 | 40 | }; |
|
41 | 41 |
@@ -24,6 +24,7 b' div#header {' | |||
|
24 | 24 | padding-left: 30px; |
|
25 | 25 | padding-bottom: 5px; |
|
26 | 26 | border-bottom: 1px solid @navbar-default-border; |
|
27 | .border-box-sizing(); | |
|
27 | 28 | } |
|
28 | 29 | |
|
29 | 30 | #ipython_notebook { |
@@ -50,6 +51,7 b' div#header {' | |||
|
50 | 51 | #site { |
|
51 | 52 | width: 100%; |
|
52 | 53 | display: none; |
|
54 | .border-box-sizing(); | |
|
53 | 55 | } |
|
54 | 56 | |
|
55 | 57 | /* Smaller buttons */ |
General Comments 0
You need to be logged in to leave comments.
Login now