MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / expand_sidebar

Function expand_sidebar

doc/static/sidebar.js:82–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 function expand_sidebar() {
83 bodywrapper.css('margin-left', bw_margin_expanded);
84 sidebar.css('width', ssb_width_expanded);
85 sidebarwrapper.show();
86 sidebarbutton.css({
87 'margin-left': ssb_width_expanded-12,
88 'height': bodywrapper.height(),
89 'border-radius': '0 5px 5px 0'
90 });
91 sidebarbutton.find('span').text('«');
92 sidebarbutton.attr('title', _('Collapse sidebar'));
93 //sidebarwrapper.css({'padding-top':
94 // Math.max(window.pageYOffset - sidebarwrapper.offset().top, 10)});
95 document.cookie = 'sidebar=expanded';
96 }
97
98 function add_sidebar_button() {
99 sidebarwrapper.css({

Callers 2

toggle_sidebarFunction · 0.85
set_position_from_cookieFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected