Widget:PriceCalculator: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Add calculation)
(Remove vestiges of jquery)
Line 23: Line 23:
<div id="bg3wiki-price-calculator-result"></div>
<div id="bg3wiki-price-calculator-result"></div>
<script>
<script>
     $("bg3wiki-price-calculator-form #submit").on(click, do_calculation);
     document.querySelector("#bg3wiki-price-calculator-form #submit").addEventListener("click", do_calculation);


     function sanitize(input) {
     function sanitize(input) {

Revision as of 17:44, 4 October 2023