Widget:YieldCalc: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
Line 21: | Line 21: | ||
// Yield Calculator | // Yield Calculator | ||
function yieldScript(){ | function yieldScript(){ | ||
let A = document. | let A = document.querySelector('#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:03, 25 October 2024
This widget is used to display and calculate the yield with the values submitted by the user.
Usage: {{#Widget:YieldCalc}}