Widget:YieldCalc: Difference between revisions

From Ara: History Untold Wiki
No edit summary
No edit summary
Line 21: Line 21:
// Yield Calculator
// Yield Calculator
function yieldScript(){   
function yieldScript(){   
   let A = document.getElementById("cityProd").value;
   let A = document.getElementById('cityProd'); /* 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:08, 25 October 2024

This widget is used to display and calculate the yield with the values submitted by the user.

Usage: ‎{{#Widget:YieldCalc}}