Aus Wiktionary, dem freien Wörterbuch
Hinweis: Nach deiner Änderung muss noch dein Browser-
Cache geleert werden!
Per Klick: JavaScript
Per Knopfdruck: Strg-R (bei den meisten Browsern; unter Apple Mac: Cmd-R bzw. ⌘-R ); manchmal genügt sogar ein Klick auf das Neu-Laden-Symbol (→F5 )
Browserspezifische Alternativen zu Strg-R :
Firefox /Mozilla /Netscape , Konqueror , Safari : Strg-Umschalttaste-R (oder Umschalttaste gedrückt halten und auf das Neu-Laden-Symbol klicken ); Safari unter Apple Mac: Cmd-Umschalttaste-R
Internet Explorer : Strg-F5 (oder Strg-Taste gedrückt halten und auf das Neu-Laden-Symbol klicken )
Opera : Strg-Umschalttaste-R (es kann aber auch eine komplette Leerung nötig sein: Extras→Internetspuren löschen... )
// Die Seitenleiste (Menü) ein- und ausblenden (um mehr Platz zu haben)
function prepareSidebar () {
if ( navigator . cookieEnabled == true ) {
var li = document . createElement ( "li" );
li . id = "t-toggle" ;
li . innerHTML = '<a href="javascript:toggleSidebar()">Seitenleiste entfernen<\/a>' ;
var ul = $ ( "#p-tb ul" )[ 0 ];
ul . appendChild ( li );
}
}
$ ( prepareSidebar );
mw . loader . using ( [ 'mediawiki.util' ] ). done ( function () {
mw . util . addCSS ( '.pShow {display: block !important;} .onlyContent {border-right: 1px solid #aaa !important; margin: 2.8em 18px 0 33px !important; padding-left: 2.5em !important;} .movedCactions {left: 14px !important;} #hSbTop, #hSbLeft {position: absolute; left: 4px; top: 0; color: #99AABB; font-size: 9px; z-index: 9;} #hSbLeft {top: 11px !important;} #hSbTop a, #hSbLeft a {color: #778899;} #mbSpiral {background: url(//upload.wikimedia.org/wiktionary/de/f/fe/Monobook-spiral.png) repeat-y; position: absolute; left: -22px; top: 0; height: 100%; z-index: 3;}' );
if ( document . cookie . indexOf ( "sidebar=hidden" ) > - 1 ) {
mw . util . addCSS ( '#p-logo, #p-navigation, #p-contribution, #p-support, #p-search, #p-tb, #p-feedback, #p-lang {display: none;} #content {border-right: 1px solid #aaa !important; margin: 2.8em 18px 0 33px !important; padding-left: 2.5em !important;} #p-cactions {left: 14px !important;}' );
$ ( monobookSpiral );
}
if ( $ . client . profile (). name == 'msie' && $ . client . profile (). versionNumber == 7 ) {
mw . util . addCSS ( '.IEfooter {margin-left: -1px !important;}' );
mw . util . addCSS ( '#footer {margin-left: -1px !important;}' );
}
});
function toggleSidebar () {
var pArray = new Array ( "logo" , "navigation" , "contribution" , "support" , "search" , "tb" , "feedback" , "lang" );
var confirmSidebarToggling ;
if ( document . cookie . indexOf ( "sidebar=hidden" ) < 0 ) {
if ( document . cookie . indexOf ( "confirmSidebarToggling" ) > - 1 ) { confirmSidebarToggling = true ;}
if ( confirmSidebarToggling != true ) {
confirmSidebarToggling = confirm ( "Die Seitenmenüleiste wirklich ausblenden?\n\nDas Menü kann natürlich auch wieder eingeblendet werden ;-)" );
document . cookie = "confirmSidebarToggling=0; path=/" ;
}
if ( confirmSidebarToggling == true ) {
pClass = "hiddenStructure" ;
$ ( "#content" ). addClass ( "onlyContent" );
$ ( "#p-cactions" ). addClass ( "portlet movedCactions" );
$ ( "#footer" ). addClass ( "IEfooter" );
monobookSpiral ();
document . cookie = "sidebar=hidden; path=/" ;
}
} else {
if ( $ ( "#hideSidebar" ). length ) {
$ ( "#head" )[ 0 ]. remove ( $ ( "#hideSidebar" )[ 0 ]);
}
if ( $ ( "#expandFooter" ). length ) {
$ ( "#head" )[ 0 ]. remove ( $ ( "#expandFooter" )[ 0 ]);
}
$ ( "#globalWrapper" ). remove ( $ ( "#hSbLeft" )[ 0 ]);
$ ( "#globalWrapper" ). remove ( $ ( "#hSbTop" )[ 0 ]);
$ ( "#content" ). remove ( $ ( "#mbSpiral" )[ 0 ]);
$ ( "#content" ). addClass ( "#sidebar-content" );
$ ( "#footer" ). addClass ( "#sidebar-footer" );
$ ( "#p-cactions" ). addClass ( "#portlet" );
pClass = "portlet pShow" ;
document . cookie = "sidebar=shown; path=/" ;
}
for ( var p = 0 ; p < pArray . length ; p ++ ) {
if ( $ ( "#p-" + pArray [ p ]). length ) {
$ ( "#p-" + pArray [ p ]). addClass ( pClass );
}
}
}
function monobookSpiral () {
var div = document . createElement ( "div" );
div . id = "mbSpiral" ;
div . innerHTML = '<a href="javascript:toggleSidebar()" style="display: block; height: ' + $ ( "content" ). offsetHeight + 'px !important; width: 37px;"><\/a>' ;
$ ( "content" ). appendChild ( div );
var tSpan = document . createElement ( "span" );
tSpan . id = "hSbTop" ;
tSpan . innerHTML = '<a href="/wiki/Wiktionary:Hauptseite">Hauptseite<\/a> | <a href="javascript:toggleSidebar()">Seitenleiste wieder anzeigen<\/a>' ;
$ ( "#globalWrapper" ). append ( tSpan );
var lSpan = document . createElement ( "span" );
lSpan . id = "hSbLeft" ;
lSpan . innerHTML = '<a href="/wiki/Spezial:Suche">Suche<\/a><br \/><a href="/wiki/Spezial:Letzte_Änderungen">LÄ<\/a>' ;
$ ( "#globalWrapper" ). append ( lSpan );
}