$( function()
{
//
// Workaround für Bug in centralnotice.js ...
//
var wgNoticeToggleState = (document.cookie.indexOf('hidesnmessage=1')==-1);
var big = getElementsByClassName(document,'div','siteNoticeBig');
var small = getElementsByClassName(document,'div','siteNoticeSmall');
if (wgNoticeToggleState && (typeof(big) != 'undefined') )
{
toggleNoticeStyle(big,'block');
}
else if(!wgNoticeToggleState && (typeof(small) != 'undefined') )
{
toggleNoticeStyle(small,'block');
}
//
// Toggle anzeigen ...
//
var toggle = getElementsByClassName(document, 'div', 'toggle-box');
if (toggle)
{
toggleNoticeStyle(toggle,'block');
}
//
// Und zum Schluss, die in MediaWiki:monobook.js eingefügten Elemente wieder entfernen ...
//
var content = document.getElementById("content");
if (content)
{
var coordinates = getElementsByClassName(document,'span','coordinates');
for( var i=0; i<coordinates.length; i++ )
{
if (coordinates.parentNode == content)
{
content.removeChild(coordinates);
break;
}
}
}
}
);
/*
Das Layout wird im monobook.css verbessert:
#siteNotice {
padding: 0 !important ;
}
div.notice-wrapper, div.notice-collapsed-wrapper {
height: inherit !important ;
margin-bottom: 1em !important ;
font-size:0.9em !important ;
background-position: -4em 0 !important ;
}
div.notice-text {
font-size:0.9em !important ;
padding-top: 0 !important ;
margin-bottom:3px !important ;
}
.toggle-box {
float:left !important ;
font-size:0.8em !important ;
margin-right:1em !important ;
}
*/