mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 21:55:20 +08:00
29 lines
646 B
Text
29 lines
646 B
Text
(function(global) {
|
|
'use strict';
|
|
global.SideBarToggle = (function() {
|
|
|
|
function show() {
|
|
$('#sideBarLeft').show();
|
|
$('#sideBarRight').hide();
|
|
$('#wrapper').removeClass('hidden2');
|
|
$('.navbar-secondary').css(
|
|
{ 'margin-left': '-280px', 'padding-left': '294px' }
|
|
);
|
|
}
|
|
|
|
function hide() {
|
|
$('#sideBarLeft').hide();
|
|
$('#sideBarRight').show();
|
|
$('#wrapper').addClass('hidden2');
|
|
$('.navbar-secondary').css({
|
|
'margin-left': '0',
|
|
'padding-left': '14px'
|
|
});
|
|
}
|
|
|
|
return Object.freeze({
|
|
show: show,
|
|
hide: hide
|
|
})
|
|
})();
|
|
})(window);
|