Widget:YieldCalc: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
Usage: <nowiki>{{#Widget:YieldCalc}}</nowiki> | Usage: <nowiki>{{#Widget:YieldCalc}}</nowiki> | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
Line 13: | Line 11: | ||
<form id="foodYieldForm"> | <form id="foodYieldForm"> | ||
<input type="number" id="cityProd" placeholder="62"><br /> | <input type="number" id="cityProd" placeholder="62"><br /> | ||
< | <input type="submit" value="Calculate" onClick="calculate()"/> | ||
</form> | </form> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
/* Yield Calculator */ | /* Yield Calculator */ | ||
function create_account(){ | |||
let a = document.getElementById("cityProd"); /* City Production */ | let a = document.getElementById("cityProd"); /* City Production */ | ||
let b = 4; /* Yield(Apples) of the region */ | let b = 4; /* Yield(Apples) of the region */ |
Revision as of 22:24, 24 October 2024
This widget is used to display and calculate the yield with the values submitted by the user.
Usage: {{#Widget:YieldCalc}}