Show More
@@ -1,59 +1,59 b'' | |||||
1 | //---------------------------------------------------------------------------- |
|
1 | //---------------------------------------------------------------------------- | |
2 | // Copyright (C) 2008-2011 The IPython Development Team |
|
2 | // Copyright (C) 2008-2011 The IPython Development Team | |
3 | // |
|
3 | // | |
4 | // Distributed under the terms of the BSD License. The full license is in |
|
4 | // Distributed under the terms of the BSD License. The full license is in | |
5 | // the file COPYING, distributed as part of this software. |
|
5 | // the file COPYING, distributed as part of this software. | |
6 | //---------------------------------------------------------------------------- |
|
6 | //---------------------------------------------------------------------------- | |
7 |
|
7 | |||
8 | //============================================================================ |
|
8 | //============================================================================ | |
9 | // Global header/site setup. |
|
9 | // Global header/site setup. | |
10 | //============================================================================ |
|
10 | //============================================================================ | |
11 |
|
11 | |||
12 | var IPython = (function (IPython) { |
|
12 | var IPython = (function (IPython) { | |
13 |
|
13 | |||
14 | var Page = function () { |
|
14 | var Page = function () { | |
15 | this.style(); |
|
15 | this.style(); | |
16 | this.bind_events(); |
|
16 | this.bind_events(); | |
17 | }; |
|
17 | }; | |
18 |
|
18 | |||
19 | Page.prototype.style = function () { |
|
19 | Page.prototype.style = function () { | |
20 | $('div#header').addClass('border-box-sizing'). |
|
20 | $('div#header').addClass('border-box-sizing'). | |
21 | addClass('ui-widget'). |
|
21 | addClass('ui-widget-content'). | |
22 | css('border-top-style','none'). |
|
22 | css('border-top-style','none'). | |
23 | css('border-left-style','none'). |
|
23 | css('border-left-style','none'). | |
24 | css('border-right-style','none'); |
|
24 | css('border-right-style','none'); | |
25 | $('div#site').addClass('border-box-sizing') |
|
25 | $('div#site').addClass('border-box-sizing') | |
26 | }; |
|
26 | }; | |
27 |
|
27 | |||
28 |
|
28 | |||
29 | Page.prototype.bind_events = function () { |
|
29 | Page.prototype.bind_events = function () { | |
30 | }; |
|
30 | }; | |
31 |
|
31 | |||
32 |
|
32 | |||
33 | Page.prototype.show = function () { |
|
33 | Page.prototype.show = function () { | |
34 | // The header and site divs start out hidden to prevent FLOUC. |
|
34 | // The header and site divs start out hidden to prevent FLOUC. | |
35 | // Main scripts should call this method after styling everything. |
|
35 | // Main scripts should call this method after styling everything. | |
36 | this.show_header(); |
|
36 | this.show_header(); | |
37 | this.show_site(); |
|
37 | this.show_site(); | |
38 | }; |
|
38 | }; | |
39 |
|
39 | |||
40 |
|
40 | |||
41 | Page.prototype.show_header = function () { |
|
41 | Page.prototype.show_header = function () { | |
42 | // The header and site divs start out hidden to prevent FLOUC. |
|
42 | // The header and site divs start out hidden to prevent FLOUC. | |
43 | // Main scripts should call this method after styling everything. |
|
43 | // Main scripts should call this method after styling everything. | |
44 | $('div#header').css('display','block'); |
|
44 | $('div#header').css('display','block'); | |
45 | }; |
|
45 | }; | |
46 |
|
46 | |||
47 |
|
47 | |||
48 | Page.prototype.show_site = function () { |
|
48 | Page.prototype.show_site = function () { | |
49 | // The header and site divs start out hidden to prevent FLOUC. |
|
49 | // The header and site divs start out hidden to prevent FLOUC. | |
50 | // Main scripts should call this method after styling everything. |
|
50 | // Main scripts should call this method after styling everything. | |
51 | $('div#site').css('display','block'); |
|
51 | $('div#site').css('display','block'); | |
52 | }; |
|
52 | }; | |
53 |
|
53 | |||
54 |
|
54 | |||
55 | IPython.Page = Page; |
|
55 | IPython.Page = Page; | |
56 |
|
56 | |||
57 | return IPython; |
|
57 | return IPython; | |
58 |
|
58 | |||
59 | }(IPython)); |
|
59 | }(IPython)); |
General Comments 0
You need to be logged in to leave comments.
Login now