MediaWiki:Wikia.js

$(document).ready(function {   var newSection = ' ' +      'Wiki News' + ' ' + ' ';    $('#WikiaRail').append(newSection);    $.getJSON('/api.php?action=parse&text=&format=json', function(data) { var code = data.parse.text['*']; $('section#activities').append(code); }); });

function changeCSS(cssFile, cssLinkIndex) { var oldlink = document.getElementsByTagName("link").item(cssLinkIndex); var newlink = document.createElement("link"); newlink.setAttribute("rel", "stylesheet"); newlink.setAttribute("type", "text/css"); newlink.setAttribute("href", cssFile); document.getElementsByTagName("head").item(0).replaceChild(newlink, oldlink); }