MediaWiki:Common.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K |
K |
||
Zeile 3: | Zeile 3: | ||
var sysopRights = true; | var sysopRights = true; | ||
+ | /*********************************** | ||
+ | Stylesheet changes | ||
+ | ***********************************/ | ||
+ | |||
+ | document.write ( | ||
+ | '<style>' + | ||
+ | ' #content {}' + //0 | ||
+ | ' #column-one {}' + //1 | ||
+ | ' #toc{}' + //2 | ||
+ | ' #content #bodyContent{}' + //3 | ||
+ | ' #siteNotice {}' + //4 | ||
+ | ' #p-personal {}' + //5 | ||
+ | ' #p-cactions {}' + //6 | ||
+ | ' #dropdown {}' + //7 | ||
+ | ' .glossar2:hover small small {}' + //8 | ||
+ | ' </style>' | ||
+ | ); | ||
+ | var newCSS = document.styleSheets[document.styleSheets.length-1], | ||
+ | newRules = newCSS.cssRules || newCSS.rules; // für alle Browser ansprechbar | ||
+ | |||
+ | /*********************************** | ||
+ | IMPORT | ||
+ | ***********************************/ | ||
+ | |||
+ | /*** LAYOUT ***/ | ||
/*** GLOSSAR ***/ | /*** GLOSSAR ***/ |
Version vom 4. Januar 2012, 16:45 Uhr
for (i in wgUserGroups)
if (wgUserGroups[i] == 'sysop')
var sysopRights = true;
/***********************************
Stylesheet changes
***********************************/
document.write (
'<style>' +
' #content {}' + //0
' #column-one {}' + //1
' #toc{}' + //2
' #content #bodyContent{}' + //3
' #siteNotice {}' + //4
' #p-personal {}' + //5
' #p-cactions {}' + //6
' #dropdown {}' + //7
' .glossar2:hover small small {}' + //8
' </style>'
);
var newCSS = document.styleSheets[document.styleSheets.length-1],
newRules = newCSS.cssRules || newCSS.rules; // für alle Browser ansprechbar
/***********************************
IMPORT
***********************************/
/*** LAYOUT ***/
/*** GLOSSAR ***/
importScript('mediawiki:glossar.js');
/*** NAVIGATION ***/
importScript('mediawiki:navigation.js');
/*** POPUPS ***/
importScript('mediawiki:popup.js');