MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

$(function {    //Step 1: Zest of EXP increments    var standardinc = 4;    var genreinc = 1;    var BTSbeatinc = 13;    var NPCinc = 5;

//Step 2: Juice of dates var today = new Date; var months = ((today.getFullYear - 2016) * 12) + 7 + (today.getMonth + 1); //Logic of var months: All the whole years starting from 2016, plus the 7 months of 2015 that were in-chron, plus all the months this year

//Step 3: Mix with ice in cocktail shaker var standardtotal = standardinc * months; var genretotal = genreinc * months; var BTSwholetotal = Math.floor((BTSbeatinc * months)/5); var BTSbeatremainder = (BTSbeatinc * months) % 5; var NPCtotal = 100 + (NPCinc * months);

//Step 4: Serve in martini glasses $('#EXP-block-standard').html(""+standardtotal+" EXP"); $('#EXP-block-BTS').html("("+BTSwholetotal+" EXP, "+BTSbeatremainder+" Beats in BtS)"); $('#EXP-block-BTS').css("color","green"); $('#EXP-block-genre').html(""+genretotal+" EXP"); $('#EXP-block-NPC').html(""+NPCtotal+" EXP"); });