PageSourceSearch

https://navajo-france.com/wp-content/cache/autoptimize/autoptimize…4833984cb1d7b3048162eb31b7d5.php?ver=2.0.95

js navajo-france.com collected 2026-10-02 18:54:48 UTC 6,619 bytes, 31 lines download raw bytes

1var stripeHandlerNG=function(data){jQuery('input#stripeAmount_'+data.uniq_id).keydown(function(e){if(e.keyCode===13){e.preventDefault();jQuery('#asp_ng_button_'+data.uniq_id).click();return false;}});this.isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);this.checkPPVisible=function(){if(parent.iframe.find('#Aligner-item').is(':hidden')){parent.form.submit();return true;}
2setTimeout(this.checkPPVisible,100);}
3this.validateAmount=function(){var amount=jQuery('input#stripeAmount_'+data.uniq_id).val();data.amountOpts={applySepOpts:0};data.minAmounts=[];if(data.amountOpts.applySepOpts!=0){amount=amount.replace(data.amountOpts.thousandSep,'');amount=amount.replace(data.amountOpts.decimalSep,'.');}else{amount=amount.replace(/\$/g,'');amount=amount.replace(/\,/g,'');amount=amount.replace(/\ /g,'');}
4amount=parseFloat(amount);if(isNaN(amount)){jQuery('#error_explanation_'+data.uniq_id).hide().html('Enter valid amount').fadeIn('slow');return false;}
5var displayAmount=amount.toFixed(2).toString();if(data.amountOpts.applySepOpts!=0){displayAmount=displayAmount.replace('.',data.amountOpts.decimalSep);}
6if(data.zeroCents.indexOf(data.currency)<=-1){}
7jQuery('#error_explanation_'+data.uniq_id).html('');jQuery('input#stripeAmount_'+data.uniq_id).val(displayAmount);return amount;}
8this.handleModal=function(show){if(parent.data.show_custom_amount_input){var pass_amount=parent.validateAmount();if(!pass_amount){return false;}}
9if(!parent.modal){parent.modal=jQuery('div[data-asp-iframe-prod-id="'+parent.data.product_id+'"][id="asp-payment-popup-'+parent.data.uniq_id+'"]');if(parent.modal.length===0){jQuery('body').append('<div id="asp-payment-popup-'+parent.data.uniq_id+'" style="display: none;" data-asp-iframe-prod-id="'+parent.data.product_id+'" class="asp-popup-iframe-cont"><iframe frameborder="0" allowtransparency="true" class="asp-popup-iframe" allow="payment" allowpaymentrequest="true" src="'+parent.data.iframe_url+'"></iframe></div>');parent.modal=jQuery('#asp-payment-popup-'+parent.data.uniq_id);}
10if(show){window.aspVisibleModalObj=parent.modal;parent.modal.css('display','flex').hide().fadeIn();}
11var iframe=parent.modal.find('iframe');parent.iframe=iframe;iframe.on('load',function(){if(parent.redirectToResult){window.location.href=iframe[0].contentWindow.location.href;return false;}
12if(pass_amount){iframe.contents().find('#amount').val(pass_amount);iframe[0].contentWindow.triggerEvent(iframe.contents().find('#amount')[0],'change');}
13if(parent.data.thankyou_page_url){iframe.contents().find('#thankyou_page_url').val(parent.data.thankyou_page_url);}
14iframe[0].contentWindow['doSelfSubmit']=data.doSelfSubmit;parent.iForm=iframe.contents().find('form#payment-form');parent.iForm.on('submit',function(e){e.preventDefault();if(parent.form_submitted||parent.redirectToResult){return false;}
15var token=parent.iForm.find('input#payment-intent').val();if(token!==''){if(parent.form.length===0){console.log('Waiting for iframe to complete loading');parent.redirectToResult=true;return true;}
16var hiddenInputsDiv=parent.form.find('div.asp-child-hidden-fields');parent.iForm.find('[name!=""]').each(function(){if(jQuery(this).attr('name')){jQuery(this).attr('name','asp_'+jQuery(this).attr('name'));var clonedItem=jQuery(this).clone();if(jQuery(this).is('select')){clonedItem.prop('selectedIndex',jQuery(this).prop('selectedIndex'));}
17hiddenInputsDiv.append(clonedItem);}});console.log('Parent form submit');parent.form_submitted=true;if(parent.isSafari){parent.checkPPVisible();}else{parent.form.submit();}}
18return false;});});}else{if(pass_amount){parent.iframe.contents().find('#amount').val(pass_amount);parent.iframe[0].contentWindow.triggerEvent(parent.iframe.contents().find('#amount')[0],'change');}
19window.aspVisibleModalObj=parent.modal;parent.modal.css('display','flex').hide().fadeIn();parent.iframe[0].contentWindow.popupDisplayed();}};var parent=this;parent.data=data;parent.form=jQuery('form#asp_ng_form_'+parent.data.uniq_id);window.WPASPDocumentElementOrigOverflow=jQuery('html').css('overflow');jQuery('#asp_ng_button_'+parent.data.uniq_id).prop('disabled',false);
19if(parent.data.preload){parent.handleModal(false);}else if(parent.data.prefetch){parent.data.iframe_url=parent.data.iframe_url+'&ckey='+wpASPNG.ckey;jQuery('body').append('<link rel="prefetch" as="document" href="'+parent.data.iframe_url+'">');}
20var el='#asp_ng_button_'+parent.data.uniq_id;if(data.attachToElement){el=data.attachToElement;}
21jQuery(el).click(function(e){jQuery('html').css('overflow','hidden');e.preventDefault();parent.handleModal(true);});};function WPASPClosePaymentPopup(){window.aspVisibleModalObj.fadeOut();jQuery('html').css('overflow',window.WPASPDocumentElementOrigOverflow);}
22function WPASPAttachToAElement(el){var hrefStr=jQuery(el).attr('href');if(!hrefStr){return false;}
23var regExp=new RegExp('asp_action=show_pp&product_id=[0-9]*(.*)|'+wpASPNG.ppSlug+'(.*)product_id=[0-9]*(.*)');var meinHref=hrefStr.match(regExp);if(meinHref[0]){var productId=meinHref[0].match(/product_id=([0-9]+)/);if(productId[1]){var params='';if(meinHref[1]){params=meinHref[1];}
24WPASPAttach(el,productId[1],params);}}
25return true;}
26function WPASPAttach(el,prodId,params){var uniqId=Math.random().toString(36).substr(2,9);var item_price=jQuery(el).data('asp-price');if(item_price){params+='&price='+item_price;}
27var params_sep='&';if(wpASPNG.iframeUrl.indexOf('?')===-1){params_sep='?';}
28new stripeHandlerNG({'attachToElement':el,'uniq_id':uniqId,'product_id':prodId,'doSelfSubmit':true,'iframe_url':wpASPNG.iframeUrl+params_sep+'product_id='+prodId+params,'prefetch':wpASPNG.prefetch==='1'?true:false});}
29function WPASPDocReady(callbackFunc){if(document.readyState!=='loading'){callbackFunc();}else if(document.addEventListener){document.addEventListener('DOMContentLoaded',callbackFunc);}else{document.attachEvent('onreadystatechange',function(){if(document.readyState==='c
29omplete'){callbackFunc();}});}}
30WPASPDocReady(function(){if(typeof wpaspInitOnDocReady!=='undefined'){console.log('ASP: Creating buttons on page load');wpaspInitOnDocReady.forEach(function(data){new stripeHandlerNG(data);});}
31jQuery('[class*="asp-attach-product-"]').each(function(id,el){var classStr=jQuery(el).attr('class');var meinClass=classStr.match(/asp-attach-product-[0-9]*/);if(meinClass[0]){var productId=meinClass[0].match(/([0-9].*)/);if(productId[0]){WPASPAttach(el,productId[0],'');}}});jQuery('a[href*="asp_action=show_pp&product_id="],a[href*="'+wpASPNG.ppSlug+'"]').each(function(id,el){WPASPAttachToAElement(el);});jQuery("#asp-sort-by").change(function(){jQuery("#asp-sort-by-form").submit();});});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.