Widget:YieldCalc: Difference between revisions
No edit summary |
No edit summary Tag: Reverted |
||
Line 21: | Line 21: | ||
// Yield Calculator | // Yield Calculator | ||
function yieldScript(){ | function yieldScript(){ | ||
let A = document.getElementById("cityProd"). | let A = document.getElementById("cityProd").number; /* 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 23:57, 24 October 2024
This widget is used to display and calculate the yield with the values submitted by the user.
Usage: {{#Widget:YieldCalc}}