Widget:PriceCalculator: Difference between revisions
Jump to navigation
Jump to search
(logging for deubg) |
(bring me the REAL value) |
||
Line 52: | Line 52: | ||
function do_calculation() { | function do_calculation() { | ||
let get_value = (selector) => document.querySelector(selector). | let get_value = (selector) => document.querySelector(selector).value; | ||
let item_value = sanitize(get_value('#item-value')); | let item_value = sanitize(get_value('#item-value')); | ||
let persuasion_mod = sanitize(get_value('#persuasion-mod')) * 0.05; | let persuasion_mod = sanitize(get_value('#persuasion-mod')) * 0.05; |