Tickets Digital Workspace 2019

function init(){jQuery(".onbeperktleren input").change(function(){updateSubtotal()}),n=jQuery(".numtickets input"),jQuery(n).after('+'),jQuery(n).before(''),window.inputNumber=function(e){var t=1,u=e.attr("max")||!1,a={};a.dec=e.prev(),a.inc=e.next(),e.each(function(){var e;e=jQuery(this),a.dec.on("click",function(){var u=e[0].value;u-=1,(!t||u>=t)&&(e[0].value=u),jQuery(n).change(),updateSubtotal()}),a.inc.on("click",function(){var t=e[0].value;t++,(!u||t<=u)&&(e[0].value=t++),jQuery(n).change(),updateSubtotal()})})},inputNumber(jQuery(n))}function updateSubtotal(){var e=Number(jQuery(".quantity .ginput_amount").val().replace(/[^0-9\.-]+/g,""))/100,t=parseFloat(e*jQuery(n).val()).toFixed(2);t=t.replace(".",","),jQuery("#subtotal").text(t)}jQuery(document).bind("gform_page_loaded",function(n,e,t){init()}),jQuery(document).ready(function(){init(),updateSubtotal()});