Widget:DamageCalc

Information
This is a damage calculator, which calculates how much % of bonus damage the player gains, based on their strength. Can be found on the Strength page. Made by. #dmgCalcContainer, #dmgCalcContainer *{box-sizing:border-box}#dmgCalcContainer {background:#242424;border:1px solid #000;border-radius:4px;margin: 0 auto;padding:1rem;width:300px}#dmgCalcContainer *:focus{outline:none}#dmgCalcContainer p{margin:0}#dmgCalcContainer input, #dmgCalcContainer button{background:#353535;border:1px solid #000;border-radius:3px;color:#fff;padding:3px 6px}#dmgCalcContainer input{height: 30px;margin:.35rem 0;width:100%}#dmgCalcContainer button{cursor:pointer;margin-bottom:1rem}#dmgCalcContainer button:hover{background:#454545}#dmgCalcContainer button:active{background:#242424} Enter your strength  Get Damage Bonus Damage +0% document.getElementById('calc').addEventListener('click', function{let output = document.getElementById('output');let str = +document.getElementById('str').value;if(isNaN(str)) output.innerHTML = "Strength must be a number.";else if(str<10||str>99) output.innerHTML = "Strength must be between 10 and 99.";else output.innerHTML = '+'+(+str*100/140).toFixed(2)+'%';});