MediaWiki:RobuxUSDConverter.js

// Current Conversion Rate: 0.0035 USD per Robuck // USD to Robux: n / 0.0035 // Robux to USD: n * 0.0035

function setGeneratedMessage(t) { var robuxBox = document.getElementById("robuxBox"); var USDBox = document.getElementById('USDBox'); if (t == "r") { USDBox.value = parseInt(robuxBox) * 0.0035 }   else if (t == "u") { robuxBox.value = parseInt(USDBox) / 0.0035 } }

var elem = document.getElementById("RobuxUSDConverter"); if(elem !== null) { elem.innerHTML = ' =  '; }