MediaWiki:PlatformSelect.js

$(document).ready(function {

var nav = $(".wikia-menu-button").first.after(' ');

nav.append('Platform');

nav.append('  ');

var list = nav.append('');

list.append('').append('PC').click(pcClicked);

list.append('').append('Console').click(consoleClicked);

function pcClicked { setCookie("WikiPlatform", "PC", 365); }

function consoleClicked { setCookie("WikiPlatform", "CONSOLE", 365); }

function setCookie(c_name,value,exdays) {        var exdate=new Date; exdate.setDate(exdate.getDate + exdays); var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString); document.cookie=c_name + "=" + c_value; }

});