Widget:YieldCalc: Difference between revisions
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
// Yield Calculator | // Yield Calculator | ||
function yieldScript(){ | function yieldScript(){ | ||
let A = document.getElementById('cityProd').value; /* City Production */ | let A = Number(document.getElementById('cityProd').value); /* City Production */ | ||
let B = 4; /* Yield(Apples) of the region */ | let B = 4; /* Yield(Apples) of the region */ | ||
let C = 4; /* Amount of Farms in the region */ | let C = 4; /* Amount of Farms in the region */ |
Revision as of 00:49, 25 October 2024
This widget is used to display and calculate the yield with the values submitted by the user.
Usage: {{#Widget:YieldCalc}}