function showLeftPanel() {
    var panelNewWidthPercent = 20;
    var panel = $('#left_panel');

    $('#showLeftPanel').hide();

    if ($('#preview').css('display') == 'none') {
        $('#editor').width(100 - panelNewWidthPercent - showButtonsPercentWidth + '%');
        panel.show();
        panel.width(panelNewWidthPercent + '%');
    } else {
        panel.show();
        panel.width(panelNewWidthPercent + '%');
        setEditorPreviewHalf('',panelNewWidthPercent, true);
    }
}
/**
 * Display left control panel and set width of panel to 20 percent.
 */
Display left control panel and set width of panel to 20 percent.
Display left control panel and set width of panel to 20 percent .
function showLeftPanel() {
    var panelNewWidthPercent = 20;
    var panel = $('#left_panel');
    $('#showLeftPanel').hide();
    if ($('#preview').css('display') == 'none') {
        $('#editor').width(100 - panelNewWidthPercent - showButtonsPercentWidth + '%');
        panel.show();
        panel.width(panelNewWidthPercent + '%');
    } else {
        panel.show();
        panel.width(panelNewWidthPercent + '%');
        setEditorPreviewHalf('',panelNewWidthPercent, true);
    }
}
function showLeftPanel ( ) { var panelNewWidthPercent = 20 ; var panel = $ ( '#left_panel' ) ; $ ( '#showLeftPanel' ) . hide ( ) ; if ( $ ( '#preview' ) . css ( 'display' ) == 'none' ) { $ ( '#editor' ) . width ( 100 - panelNewWidthPercent - showButtonsPercentWidth + '%' ) ; panel . show ( ) ; panel . width ( panelNewWidthPercent + '%' ) ; } else { panel . show ( ) ; panel . width ( panelNewWidthPercent + '%' ) ; setEditorPreviewHalf ( '' , panelNewWidthPercent , true ) ; } }
Display left control panel and set width of panel to 20 percent.
Display left control panel and set width of panel to 20 percent .