MediaWiki:Common.js

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

$(function {    var standardEXPinc = 4;    var genreEXPinc = 1;    var BTSbeatinc = 13;

var today = new Date; var months = ((today.getFullYear - 2016) * 12) + 7 + (today.getMonth + 1); //months: all the whole years starting from 2016, plus the 7 months of 2015, plus all the months this year

var standardtotal = EXPinc * months; var genretotal = genreEXPinc * months; var BTSwholetotal = Math.floor((BTSbeatinc * months)/5); var BTSbeatremainder = (BTSbeatinc * months) % 5;

$('#EXP-block-standard').html(""+standardtotal+" EXP"); $('#EXP-block-genre').html(""+genretotal+" EXP"); });