Changes

Jump to navigation Jump to search

MediaWiki:Common.js

312 bytes added, 17:20, 2 May 2010
no edit summary
if(navigator.userAgent.indexOf("MSIE") != -1 && document.createStyleSheet) {
document.createStyleSheet().addRule('.IPA', 'font-family: "Doulos SIL", "Charis SIL", Gentium, "DejaVu Sans", Code2000, "TITUS Cyberbit Basic", "Arial Unicode MS", "Lucida Sans Unicode", "Chrysanthi Unicode";');
}
 
 
/*
Replaces {{USERNAME}} with the name of the user browsing the page.
Requires copying Template:USERNAME.
*/
function substUsername()
{
var spans = getElementsByClass('insertusername', null, 'span');
 
for(var i = 0; i < spans.length; i++)
{
spans[i].innerHTML = wgUserName;
}
}

Navigation menu