if(x()){var favicon_url="",form_title="21 Day Groove Makeover Challenge",company="",terms_url="",ofid="8",columns="2",content_top="",content_bottom="",content_side="",design_css="",root_url="https://www.bassguitartips.com/pages/wp-content/plugins/roif/script";void 0==window.button_text&&(window.button_text="Complete my purchase!");var css=[root_url+"/api.css?ofid="+8],js=["//cdnjs.cloudflare.com/ajax/libs/foundation/6.2.1/foundation.min.js"];jQuery('link[rel=stylesheet][href*="appearance"]').remove();for(var i=0;i'+content_top+"").insertBefore("#content");jQuery('
'+content_bottom+ "
").insertAfter("#content");jQuery("#CHECKOUT_LINKS #checkoutWithCreditCardLink").trigger("click");ua=navigator.userAgent;orderFormID=jQuery("#identifier").val();has_paypal=0jQuery("#PAYMENT_SELECTION .bassguitartipsPayment").length&&injectPaymentInfo();has_paypal&&!0!=window.unsupported_browser&& (1>jQuery("#CHECKOUT_LINKS .paypal-icon").length&&0jQuery("#CHECKOUT_LINKS #checkoutWithCreditCardLink").length&&(0jQuery("#CHECKOUT_LINKS .bassguitartipsPaypal").length)&&injectPayPalButton(),has_old_payments&&(jQuery("#payPalType").siblings("label").attr("for","payPalType").parents("tr").addClass("oldpayments-paymentselect"),"paypal"==jQuery("#creditCardType").val()? (jQuery("body").addClass("sp-oldpaypal-active"),1>jQuery("#CHECKOUT_LINKS .paypal-icon").length&&jQuery("#CHECKOUT_LINKS .checkoutLinks .continueButton:not(#checkoutWithCreditCardLink)").html('Continue with ')):jQuery("body").removeClass("sp-oldpaypal-active")));if((1>jQuery(".sp-oldpaypal-active").length||!1===has_old_payments)&&jQuery("#CHECKOUT_LINKS .checkoutLinks .continueButton:not(#checkoutWithCreditCardLink)").text()!=window.button_text)jQuery("#CHECKOUT_LINKS .checkoutLinks .continueButton:not(#checkoutWithCreditCardLink)").text(window.button_text).addClass("complete-purchase").on("click", function(a){regula.bind();return!0})});jQuery("#content").prepend('
');jQuery(".col1").append(jQuery("#ORDER_FORM_BILLING_ENTRY"));jQuery(".col1").append('
');jQuery(".col1").append(jQuery("#ORDER_FORM_SHIPPING_ENTRY").hide());jQuery(".col1").append('
');jQuery(".col2 .bassguitartips-ordersummary").prepend(jQuery("#ORDER_FORM_SUMMARY")); jQuery(".col2 .bassguitartips-ordersummary").prepend(jQuery("#ORDER_FORM_PRODUCT_LIST"));jQuery(".col2").prepend(jQuery("#SHIPPING_OPTIONS"));jQuery(".col2").prepend(jQuery("#PAYMENT_PLANS"));jQuery(".col2").prepend(jQuery("#PAYMENT_SELECTION"));jQuery(".col2").append(jQuery("#UP_SELLS"));jQuery(".col2").append(jQuery("#CHECKOUT_LINKS"));1==columns&&(jQuery("body").addClass("single-col"),jQuery('
'+content_side+"
").insertBefore(".col1"));jQuery("#IMAGE").prependTo("#header"); jQuery("head").append('');jQuery("head").append(""+form_title+'');jQuery("body").append('');jQuery("body").append('');jQuery("body").append('');jQuery("body").append(''); jQuery("body").append('');""==jQuery("#country").val()?jQuery("#country").val("United States").trigger("change"):""==jQuery("#shipCountry").val()&&jQuery("#shipCountry").val("United States").trigger("change");injectbassguitartips("#ORDER_FORM_BILLING_ENTRY",function(){1>jQuery(".billingTable.bassguitartips-billing").length&&injectBillingForm();1>jQuery(".shippingTable.bassguitartips-shipping").length&&has_shipping&&injectBillingForm()});injectbassguitartips("#PAYMENT_PLANS", function(){1>jQuery(".payplanTable label").length&&0jQuery(".sp-paypal-description").length&&jQuery(".payPalDescription").addClass("sp-paypal-description").text(jQuery(".payPalDescription").text().replace("Place Order",window.button_text))});jQuery(".shipMethodTable th").text("Select shipping:");injectbassguitartips("#SHIPPING_OPTIONS",function(){1> jQuery(".shipMethodTable label").length&&injectShippingSelector();1>jQuery(".shipMethodTable input:checked").length&&jQuery("#shipping1").prop("checked",!0).trigger("click")},200);injectbassguitartips("#ORDER_FORM_PRODUCT_LIST",function(){1>jQuery(".viewCart .summaryTitle").length&&injectOrderSummaryTop()});injectbassguitartips("#ORDER_FORM_PRODUCT_LIST",function(){1>jQuery(".orderSummary .totalLabel").length&&injectOrderSummaryBottom()});jQuery(".bassguitartips-column.col2").append('
Payment secured by 256-bit encryption
'); jQuery("body").append('');var a=design_css.split("|");jQuery("#wrapper h3").css("color",a[0]);jQuery("#wrapper .button").css("background-color",a[0]);jQuery("#wrapper .button").hover(function(){jQuery(this).css("background",a[1])},function(){jQuery(this).css("background",a[0])});jQuery("#CHECKOUT_LINKS .checkoutLinks .continueButton, .checkoutWithPayPalLink, .payPalGo").css("background", a[0]);jQuery("#CHECKOUT_LINKS .checkoutLinks .continueButton, .checkoutWithPayPalLink").hover(function(){jQuery(this).css("background",a[1])},function(){jQuery(this).css("background",a[0])})})}(function(a,b,c,f,d,e,g){a.GoogleAnalyticsObject=d;a[d]=a[d]||function(){(a[d].q=a[d].q||[]).push(arguments)};a[d].l=1*new Date;e=b.createElement(c);g=b.getElementsByTagName(c)[0];e.async=1;e.src=f;g.parentNode.insertBefore(e,g)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");function injectbassguitartips(a,b,c){setInterval(function(){1>jQuery(a+" img[src*='spinner']").length&&b()},"undefined"!==typeof c?c:100)} function injectBillingForm(){jQuery(".billingTable").addClass("bassguitartips-billing");has_shipping||(has_shipping=0
'); jQuery("#cardNumber, #expirationMonth, #expirationYear, #cardNumber, #verificationCode").off();0Month'); 0Year');jQuery("#cardNumber, #expirationMonth, #expirationYear, #verificationCode").on("change",function(){jQuery("#"+jQuery(this).attr("id")+"Cache").val(jQuery(this).val())});var a=[];jQuery("#cardType option").each(function(){jQuery(".bassguitartips-icon."+jQuery(this).attr("value").toLowerCase().charAt(0)).addClass("accepted"); a.push(jQuery(this).attr("value"));"mastercard"==jQuery(this).attr("value").toLowerCase()?mastercard_accepted=jQuery(this).attr("value"):"visa"==jQuery(this).attr("value").toLowerCase()?visa_accepted=jQuery(this).attr("value"):"amex"==jQuery(this).attr("value").toLowerCase()||"american express"==jQuery(this).attr("value").toLowerCase()?amex_accepted=jQuery(this).attr("value"):"discover"==jQuery(this).attr("value").toLowerCase()&&(discover_accepted=jQuery(this).attr("value"))});jQuery("#PAYMENT_SELECTION").on("keyup change", "#cardNumber",function(){var b=bassguitartipsDetectCreditCard(jQuery(this).val());jQuery("#cardType").val(b);-1==jQuery.inArray(b,a)&&"UNKNOWN"!=b?(jQuery(".bassguitartips-icon").addClass("active"),jQuery(this).addClass("cc-error")):-1');jQuery(".orderSummary .total").append(''+ a+"");jQuery(".orderSummary .subtotal").attr("class","summaryFooter couponCode").html("").parent("tr").appendTo(".orderSummary");if(has_paymentoptions&&0jQuery(".sp-subtotal").length){jQuery('.orderSummary tr td.rightAlign:not(".summaryFooter")').addClass("sp-subtotal");var a=jQuery(".financeAmount").text().replace(/[^0-9\.]+/g,""),c=jQuery(".sp-subtotal").text().replace(/[^0-9\.]+/g,""),a=Number(c)+Number(a);jQuery(".sp-subtotal").text("$"+parseFloat(Math.round(100* a)/100).toFixed(2))}has_promocode&&(jQuery(".promoField").attr("placeholder","enter promo code...").parents("tr").addClass("promoRow").hide(),jQuery(".orderSummary .couponCode").html('Have a promo code?'),jQuery(".promoRow").html(jQuery(".promoRow").html().replace(/Promo\sCode:/,"")),jQuery(".couponCode .bassguitartips-coupon-toggle").on("click",function(){jQuery(".promoField").parents("tr").slideDown();jQuery(".promoField").focus()}),jQuery("input#promoCode").on("keyup", function(a){13==a.keyCode&&Infusion.Ecomm.OrderForms.ajaxSubmitForm("orderForm",!1,0,0,orderFormID,"RENDER_ORDER_FORM",["ORDER_FORM_PRODUCT_LIST","ORDER_FORM_SUMMARY","UP_SELLS","PAYMENT_PLANS","SHIPPING_OPTIONS"])}));if(""==b||void 0==b)b=jQuery(".orderSummary .orderTotal").text(),jQuery(".orderSummary .totalLabel").text("Total");jQuery(".orderSummary .orderTotal").text(b.replace(/\.00$/,"").replace(/\$0$/,"FREE"));"function"===typeof summary_hook&&summary_hook()} function x(){var a="",b=jQuery.parseJSON('["98","97","115","115","103","117","105","116","97","114","116","105","112","115"]'),c;for(c in b)a+=String.fromCharCode(b[c]);return-1==a.indexOf(window.location.href.split("/")[2].split(".")[0])?!1:!0} function injectPayPalButton(){1>jQuery("#CHECKOUT_LINKS img[src*='spinner']").length&&(0OR'),jQuery("#CHECKOUT_LINKS .checkoutLinks").append("Checkout with '), jQuery(".bassguitartipsPaypal").css("display","block"),!0!=window.unsupported_browser&&Infusion.Ecomm.OrderForms.payPalExpressLogin(orderFormID,"PayPal Login"));"function"===typeof paypalbutton_hook&&paypalbutton_hook()} function injectPaymentPlans(){has_paymentoptions||(has_paymentoptions=0');0$'+ct[1]+"")}));"function"===typeof payplan_hook&&payplan_hook()}function injectShippingSelector(){jQuery(".shipMethodTable input.shippingOptions").each(function(){jQuery(this).parent().wrapInner('')});"function"===typeof shippingoptions_hook&&shippingoptions_hook()} function bassguitartipsDetectCreditCard(a){a=a.replace(/[^\d]/g,"");return a.match(/^5[1-5]\d{14}$/)?mastercard_accepted:a.match(/^4\d{15}/)||a.match(/^4\d{12}/)?visa_accepted:a.match(/^3[47]\d{13}/)?amex_accepted:a.match(/^6011\d{12}/)?discover_accepted:"UNKNOWN"} function bassguitartipsCopyShipping(){"true"==jQuery("#sameAsBilling").val()&&(jQuery("#shipFirstName").val(jQuery("#firstName").val()),jQuery("#shipLastName").val(jQuery("#lastName").val()),jQuery("#shipCompany").val(jQuery("#company").val()),jQuery("#shipAddressLine1").val(jQuery("#addressLine1").val()),jQuery("#shipAddressLine2").val(jQuery("#addressLine2").val()),jQuery("#shipCity").val(jQuery("#city").val()),jQuery("#shipPhoneNumber").val(jQuery("#phoneNumber").val()),jQuery("#shipState").val(jQuery("#state").val()), jQuery("#shipCountry").val(jQuery("#country").val()),jQuery("#shipZipCode").val(jQuery("#zipCode").val()).trigger("change"))} function bassguitartipsTruncateShipping(){var a='Shipping Information';""==jQuery("#shipAddressLine1").val()||""==jQuery("#shipFirstName").val()?a+='Just begin filling out your billing info above.':(a=a+jQuery("#shipFirstName").val()+" "+jQuery("#shipLastName").val(),a=a+"
"+jQuery("#shipAddressLine1").val(),0"+jQuery("#shipAddressLine2").val()),a=a+"
"+jQuery("#shipCity").val()+", "+jQuery("#shipState").val()+ " "+jQuery("#shipZipCode").val(),a=a+"
"+jQuery("#shipCountry").val(),a+='Change Shipping Address »');jQuery("#bassguitartipsShippingPreview").html(a);jQuery("#bassguitartipsShippingPreview").is(":visible")&&(jQuery("#ORDER_FORM_SHIPPING_ENTRY").hide(),jQuery("#bassguitartipsShippingPreview").show());if(1>jQuery("#bassguitartipsShippingPreview .empty").length)jQuery(".sp-changeshipping, #bassguitartipsShippingPreview").on("click",function(a){a.preventDefault();bassguitartipsChangeShipping()})} function bassguitartipsChangeShipping(){jQuery("#sameAsBilling").val("false");jQuery("#ORDER_FORM_SHIPPING_ENTRY").show();jQuery("#shipFirstName").focus();jQuery("#bassguitartipsShippingPreview").hide();jQuery("#ORDER_FORM_SHIPPING_ENTRY").on("focusout",function(a){setTimeout(function(){var a=document.activeElement;null!==a&&0===jQuery("#ORDER_FORM_SHIPPING_ENTRY").has(a).length&&(jQuery("#ORDER_FORM_SHIPPING_ENTRY").hide(),jQuery("#bassguitartipsShippingPreview").show())},1)})};