PATH:
home
/
lab2454c
/
transferwit.elementalrock.com
/
wp-content
/
themes
/
oceanwp
/
assets
/
js
/
third
/
woo
var $j=jQuery.noConflict();function oceanwpWooMultiStepCheckout(){"use strict";var e=$j("body"),t=$j("#checkout_login"),o=$j("#customer_billing_details"),a=$j("#customer_shipping_details"),i=$j("#order_review"),n=$j("#order_checkout_payment"),v=$j("#form_actions"),w=$j("#checkout_coupon"),b=new Array(t,o,a,i,n);e.on("updated_checkout",function(e){b[4]=$j("#order_checkout_payment"),"updated_checkout"==e.type&&(b[4]=$j("#order_checkout_payment")),$j("#order_checkout_payment").find("input[name=payment_method]").on("click",function(){var e;1<$j(".payment_methods input.input-radio").length?(e=$j("div.payment_box."+$j(this).attr("ID")),$j(this).is(":checked")&&!e.is(":visible")&&($j("div.payment_box").filter(":visible").slideUp(250),$j(this).is(":checked")&&$j("div.payment_box."+$j(this).attr("ID")).slideDown(250))):$j("div.payment_box").show(),$j(this).data("order_button_text")?$j("#place_order").val($j(this).data("order_button_text")):$j("#place_order").val($j("#place_order").data("value"))})}),v.find(".button.prev").add(".button.next").on("click",function(e){var t,o=$j(this),a=$j("#owp-checkout-timeline"),i=o.data("action"),n=v.data("step"),c=n+1,d=n-1,r=v.find(".button.prev"),l=v.find(".button.next"),s=$j("form.woocommerce-checkout"),p=oceanwpLocalize.is_logged_in,u=b[n].selector,h={},j="",m=30,$=$j("#wpadminbar"),f=$j("#top-bar-wrap"),_=$j("#site-header");$.length&&600<$j(window).width()&&(m+=$.outerHeight()),1==oceanwpLocalize.hasStickyTopBar&&(m+=f.outerHeight()),$j("#site-header").hasClass("fixed-scroll")&&!$j("#site-header").hasClass("vertical-header")&&(m+=_.outerHeight()),$j("form.woocommerce-checkout .woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout").remove(),j=0<=u.indexOf("billing")?"billing":j,"billing"==(j=0<=u.indexOf("shipping")?"shipping":j)||"shipping"==j?($j(u).find(".validate-required input").each(function(){h[$j(this).attr("name")]=$j(this).val()}),$j(u).find(".validate-required select").each(function(){h[$j(this).attr("name")]=$j(this).val()}),$j(u).find(".input-checkbox").each(function(){$j(this).is(":checked")&&(h[$j(this).attr("name")]=$j(this).val())}),t={action:"oceanwp_validate_checkout",type:j,posted_data:h},$j.ajax({type:"POST",url:oceanwpLocalize.ajax_url,data:t,success:function(e){e.valid,e.valid?after_validation(a,v,s,s,b,i,c,n,d,r,l,m,p,w):($j("form.woocommerce-checkout").prepend(e.html),$j("html, body").animate({scrollTop:$j("form.woocommerce-checkout").offset().top-m},"slow"))},complete:function(){}})):after_validation(a,v,s,s,b,i,c,n,d,r,l,m,p,w)})}function after_validation(e,t,o,o,a,i,n,c,d,r,l,s,p,u){e.find(".active").removeClass("active"),"next"==i?(t.data("step",n),a[c].fadeOut(120,function(){a[n].fadeIn(120)}),$j("#timeline-"+n).toggleClass("active"),$j("html, body").animate({scrollTop:$j("#owp-checkout-timeline").offset().top-s},"slow")):"prev"==i&&(t.data("step",d),a[c].fadeOut(120,function(){a[d].fadeIn(120)}),$j("#timeline-"+d).toggleClass("active"),$j("html, body").animate({scrollTop:$j("#owp-checkout-timeline").offset().top-s},"slow")),1==(c=t.data("step"))&&1==p||0==p&&(0==c&&1==oceanwpLocalize.login_reminder_enabled||1==c&&0==oceanwpLocalize.login_reminder_enabled)?r.fadeOut(120):r.fadeIn(120),0==p&&(0==c&&1==oceanwpLocalize.login_reminder_enabled||1==c&&0==oceanwpLocalize.login_reminder_enabled)?l.val(oceanwpLocalize.no_account_btn):l.val(oceanwpLocalize.next),3==c?(o.removeClass("processing"),u.fadeIn(80),l.fadeOut(120)):(o.addClass("processing"),u.fadeOut(80),l.fadeIn(120))}$j(document).ready(function(){"use strict";oceanwpWooMultiStepCheckout()});
[+]
devs
[-] woo-thumbnails.js
[edit]
[-] woo-display-cart.js
[edit]
[-] woo-multistep-checkout.js
[edit]
[+]
..
[-] woo-cat-widget.js
[edit]
[-] woo-floating-bar.js
[edit]
[-] woo-scripts.min.js
[edit]
[-] woo-off-canvas.min.js
[edit]
[-] woo-display-cart.min.js
[edit]
[-] woo-mini-cart.js
[edit]
[-] woo-thumbnails.min.js
[edit]
[-] woo-cat-widget.min.js
[edit]
[-] woo-quick-view.js
[edit]
[-] woo-off-canvas.js
[edit]
[-] woo-ajax-add-to-cart.min.js
[edit]
[-] woo-hover-style.min.js
[edit]
[-] woo-multistep-checkout.min.js
[edit]
[-] woo-ajax-add-to-cart.js
[edit]
[-] woo-quick-view.min.js
[edit]
[-] woo-hover-style.js
[edit]
[-] woo-floating-bar.min.js
[edit]
[-] woo-mini-cart.min.js
[edit]