Widget:YieldCalc: Difference between revisions

From Ara: History Untold Wiki
No edit summary
No edit summary
Line 21: Line 21:


<script type="text/javascript">
<script type="text/javascript">
let foodYieldForm = document.getElementById("foodYieldForm");
foodYieldForm.addEventListener("submit", (e) => {
  e.preventDefault();
});
/* Yield Calculator */
/* Yield Calculator */
let a = 65; /* City Production */
let a = 65; /* City Production */
Line 34: Line 40:


document.getElementById("foodYield").innerHTML = z;
document.getElementById("foodYield").innerHTML = z;
let foodYieldForm = document.getElementById("foodYieldForm");
loginForm.addEventListener("submit", (e) => {
  e.preventDefault();
  // handle submit
});


</script>
</script>
</includeonly>
</includeonly>

Revision as of 21:49, 24 October 2024

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

Usage: ‎{{#Widget:YieldCalc}}