Revision fe7ce01d
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
js/switchmenuframe.js | ||
---|---|---|
1 |
var vSwitch_Menu = 1; |
|
2 |
var Frame; |
|
3 |
var FrameSize; |
|
4 |
|
|
1 |
var vSwitch_Menu = 0; |
|
5 | 2 |
function Switch_Menu() { |
6 |
if (Frame) { |
|
7 |
Frame.attr('cols',vSwitch_Menu ? '30,*' : FrameSize); |
|
8 |
vSwitch_Menu=!vSwitch_Menu; |
|
3 |
vSwitch_Menu=!vSwitch_Menu; |
|
4 |
SetMenuFolded(vSwitch_Menu); |
|
5 |
$.cookie('html-menu-folded', vSwitch_Menu); |
|
6 |
} |
|
7 |
function SetMenuFolded(on) { |
|
8 |
if (on) { |
|
9 |
$('#html-menu').removeClass('folded'); |
|
10 |
$('#content').removeClass('folded'); |
|
11 |
} else { |
|
12 |
$('#html-menu').addClass('folded'); |
|
13 |
$('#content').addClass('folded'); |
|
9 | 14 |
} |
10 | 15 |
} |
11 |
|
|
12 | 16 |
$(function(){ |
13 |
Frame = $(parent.document.getElementById('menuframe'));
|
|
14 |
FrameSize = Frame.attr('cols');
|
|
17 |
vSwitch_Menu = $.cookie('html-menu-folded');
|
|
18 |
SetMenuFolded(vSwitch_Menu);
|
|
15 | 19 |
}) |
Auch abrufbar als: Unified diff
switch_menu script und transition