MediaWiki:Monobook.js: Unterschied zwischen den Versionen
Aus Wicri Base 1.28 de
imported>Jacques Ducloy |
imported>Jacques Ducloy K (1 Version importiert) |
(kein Unterschied)
|
Aktuelle Version vom 20. Mai 2017, 22:12 Uhr
/* <source lang=javascript> */
/* Any JavaScript here will be loaded for users using the MonoBook skin */
/** Topbar content fix with sitenotice / CentralNotice **************************
*
* Description: This fixes the location of topbar content (e.g., featured
* content star) when the sitenotice or CentralNotice is active.
* Maintainers: [[User:TheDJ]], [[User:MZMcBride]]
*/
if((navigator.userAgent.indexOf("MSIE 6")==-1) && (wgAction == 'submit' || wgAction == 'view')) addOnloadHook(function() {
var cnote = document.getElementById('centralNotice');
if( !document.getElementById('mw-dismissible-notice') && !(cnote && hasClass(cnote, 'expanded'))) return;
appendCSS('#bodyContent { position:relative; } \n.topicon { position:absolute; top:-2em !important;}\n#coordinates{ position:absolute; top:1px !important; }');
})
/* </source> */