MediaWiki:Common.js: Difference between revisions

Lemming (talk | contribs)
No edit summary
Lemming (talk | contribs)
m Made it so it would not show wikipedia begging for donations to people not logged in.
 
Line 661: Line 661:
     var whichMessage = Math.floor(Math.random()*(message.length));
     var whichMessage = Math.floor(Math.random()*(message.length));


    document.writeln('<div style="position:absolute; z-index:40; left:155px; top:0px; clear:both; float:left;" id="donate"> <div style="font-size:90%"><i>' + message[whichMessage] + '</i></div></div>');


     var messageEdu=new Array();
     var messageEdu=new Array();
Line 673: Line 672:
     var whichMessageEdu = Math.floor(Math.random()*(messageEdu.length));
     var whichMessageEdu = Math.floor(Math.random()*(messageEdu.length));


    document.getElementById("contentSub").innerHTML +='<div style="position:absolute; z-index:100; right:100px; top:0px;" class="metadata" id="anontip"><div style="text-align:right; font-size:87%">•&nbsp;<i>' + messageEdu[whichMessageEdu] + '</i>&nbsp;•</div></div>';
}));  
}));