Board Thread:Support Requests - Getting Technical/@comment-27023597-20151114042741/@comment-1757994-20151117053749

One way to do it would be to put  function myFunction { var x, y, z, a, text, text2, text3;

x = document.getElementById("numb").value; y = 250+(550+150*(x-2))*(x-1); z = 5+0.5*(x-1); a = 5+0.2*(x-1); text = y; text2 = z; text3 = a; document.getElementById("demo").innerHTML = text; document.getElementById("demo2").innerHTML = text2; document.getElementById("demo3").innerHTML = text3; }

$(function {  if ($('#ll55-wrapper').length) {    document.getElementById('ll55-wrapper').innerHTML =      ' Please input the current level: ' +      '' +      'Submit ' +      '  250 ' +      ' 5% ' +      ' 5% ';  } }); in MediaWiki:Common.js (or perhaps your personal common.js to start).

Then put  somewhere in an article.

There are more elegant ways to implement the functionality (e.g., addEventListener), but that'll work.

$(function) is a jQuery document.ready function. It runs when the DOM document is loaded and parsed. jQuery is a JavaScript library that's loaded in every (recent) MediaWiki wiki.

Feel free to pick better names for things, too.

EDIT: BTW, you're definitely going to have to pick a better url for the image.