XT Knowledge Base
Hauptseite | Über | Hilfe | FAQ | Spezialseiten | Anmelden

Druckversion | Impressum | Datenschutz | Aktuelle Version

MediaWiki:Common.js

(Unterschied zwischen Versionen)

(Die Seite wurde neu angelegt: „document.onkeydown = function( e ) { if( e == null ) e = event if( testKey( e, 122 ) ) { //F11 appendCSS('#column-content {margin: 0 0 .6em 0;} #content {marg…“)
 
Zeile 1: Zeile 1:
document.onkeydown = function( e ) {
document.onkeydown = function( e ) {
if( e == null ) e = event
if( e == null ) e = event
-
if( testKey( e, 122 ) ) { //F11
+
if( testKey( e, 123 ) ) { //F12
appendCSS('#column-content {margin: 0 0 .6em 0;} #content {margin: 2.8em 0 0 0;} #p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search {display:none;} #p-cactions {left: .1em;} #footer {display:none;}');
appendCSS('#column-content {margin: 0 0 .6em 0;} #content {margin: 2.8em 0 0 0;} #p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search {display:none;} #p-cactions {left: .1em;} #footer {display:none;}');
return false;
return false;

Aktuelle Version vom 20:09, 12. Sep. 2009

document.onkeydown = function( e ) {
	if( e == null ) e = event
	if( testKey( e, 123 ) ) { //F12
		appendCSS('#column-content {margin: 0 0 .6em 0;} #content {margin: 2.8em 0 0 0;} #p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search {display:none;} #p-cactions {left: .1em;} #footer {display:none;}');
		return false;
	}
}
 
function testKey( e, intKeyCode ) {
	if( window.createPopup )
		return e.keyCode == intKeyCode
	else
		return e.which == intKeyCode
}