User:Sylphoid/common.js

var pagename = mw.config.get("wgPageName") // Calculators $(function { var x  var y // Hyperbolic  if ((pagename == "User:Sylphoid/sandbox")) {    $("#calc-table tr:nth-child(2) td:eq(1)").append('    ')    $("#calc-table tr:nth-child(2) td:eq(3)").append('     ')    if (pagename == "User:Sylphoid/sandbox") {      x = 0.05    }    $("#mx-calc").on("input", function { y = Math.min(((1 - 1 / (1 + x * Number($("#mx-calc").val))) * 100).toFixed(1), 99.9) $("#mx-out").text(y + "%") }) } })