Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50659 views
1
//----------------------------------------------------------------------------
2
// Copyright (C) 2008-2011 The IPython Development Team
3
//
4
// Distributed under the terms of the BSD License. The full license is in
5
// the file COPYING, distributed as part of this software.
6
//----------------------------------------------------------------------------
7
8
//============================================================================
9
// Global header/site setup.
10
//============================================================================
11
12
var IPython = (function (IPython) {
13
"use strict";
14
15
var Page = function () {
16
this.style();
17
this.bind_events();
18
};
19
20
Page.prototype.style = function () {
21
$('div#header').addClass('border-box-sizing');
22
$('div#site').addClass('border-box-sizing');
23
};
24
25
26
Page.prototype.bind_events = function () {
27
};
28
29
30
Page.prototype.show = function () {
31
// The header and site divs start out hidden to prevent FLOUC.
32
// Main scripts should call this method after styling everything.
33
this.show_header();
34
this.show_site();
35
};
36
37
38
Page.prototype.show_header = function () {
39
// The header and site divs start out hidden to prevent FLOUC.
40
// Main scripts should call this method after styling everything.
41
$('div#header').css('display','block');
42
};
43
44
45
Page.prototype.show_site = function () {
46
// The header and site divs start out hidden to prevent FLOUC.
47
// Main scripts should call this method after styling everything.
48
$('div#site').css('display','block');
49
};
50
51
52
IPython.Page = Page;
53
54
return IPython;
55
56
}(IPython));
57
58