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