jQuery(document).bind("awspcBeforeCalculatePrice",function(ev){jQuery('.loaderr').show()});jQuery(document).bind("awspcAjaxCalculatePriceSuccess",function(ev,args){jQuery('.loaderr').show();jQuery(".testitesti").html(' ');testi=args.result.price;myString=testi.replace(/[^\d,]/g,'');valuuuee=myString.replace(",",".");newstring=parseFloat(valuuuee) *1.20;value=newstring.toFixed(2);jQuery(".testitesti").append('<p>'+value+' € TTC</p>');jQuery('.loaderr').hide();console.log("passe ici")});(function(){var next=null;document.addEventListener('focusout',function(e){if(e.target&&/^(hauteur|largeur)\d$/.test(e.target.id)){next=e.relatedTarget||null}},true);function wrap(J){if(!J||!J.fn||!J.fn.simulate){return false}if(J.fn.simulate.__pd){return true}var orig=J.fn.simulate;J.fn.simulate=function(){var y=window.pageYOffset,n=next;var r=orig.apply(this,arguments);setTimeout(function(){var a=document.activeElement;if(n&&n.focus){try{n.focus({preventScroll:true})}catch(err){n.focus()}}else if(a&&/^aws_price_calc_/.test(a.name||'')){a.blur()}window.scrollTo(0,y)},0);return r};J.fn.simulate.__pd=true;return true}function patch(){var a=wrap(window.jQuery),b=wrap(window.$);return a||b}if(!patch()){var t=setInterval(function(){if(patch()){clearInterval(t)}},300);setTimeout(function(){clearInterval(t)},15000)}})();