Body-Solid Pro Clubline Series II Pec Fly Rear Delt (2022)

' + dataItem.price + '

'); } } } if(dropdownAdditionalPrice){ addOnCosts += dropdownAdditionalPrice; } if (checkboxAddtionalPrice) { addOnCosts += checkboxAddtionalPrice; } var base = parseFloat(baseCost); var msrp = parseFloat(msrpCost); var add = parseFloat(addOnCosts); var total = base + add; var msrpTotal = msrp + add; var formattedPrice = "$" + total.formatMoney(2, ',', '.'); console.log("Setting price: " + total); $('#mainPriceSpan').html(formattedPrice); $('#currentPrice').val(total); $('#metaItemPropPrice').attr('content', total); if($('#lfc_total_cost').length){ $('#lfc_total_cost').html(formattedPrice); } if($('#financingAmount').length && $('#financingMonths').length){ var months = parseInt($('#financingMonths').val()); var costPerMonth = total / months; $('#financingAmount').html("$" + costPerMonth.formatMoney(2, ',', '.')); } var formattedMSRP = "$" + msrpTotal.formatMoney(2, ',', '.'); if($('#msrpPriceHidden').length){ $('#msrpPriceSpan').html(formattedMSRP); } // also update 'you save' if($('#savePriceSpan').length){ var diff = msrpTotal - total; if(diff <= 0){ diff = 0; } var formattedDiff = "$" + diff.formatMoney(2, ',', '.'); $('#savePriceSpan').html(formattedDiff); } // check on any side boxes... var sideBuyBoxPriceSpans = getelementsByPrefix('sideByPrice_', document.documentElement); if (sideBuyBoxPriceSpans.length) { for (var i = 0; i < sideBuyBoxPriceSpans.length; i++) { $("#" + sideBuyBoxPriceSpans[i].id).html(formattedPrice); } } } var splits = []; var anims = []; function showCorrectProductTexts() { if (!(typeof kitProductOptionsInOrder === 'undefined')) { var newImageToShow = 'S2PEC'; for (var i = 0; i < kitProductOptionsInOrder.length; i++) { var listView = $("#" + kitProductOptionsInOrder[i]).data("kendoListView"); var dbConnObj = $("#lstdbconn").data("kendoListView"); var index = listView.select().index(), dataItem = listView.dataSource.view()[index]; newImageToShow += "_" + dataItem.sku; } if (kitProductOptionsInOrder.length == 1 && !(typeof gsap === 'undefined')) { GSAP_IN_LF_CREATE = true; var listView = $("#" + kitProductOptionsInOrder[0]).data("kendoListView"); var dbConnObj = $("#lstdbconn").data("kendoListView"); var index = listView.select().index(), dataItem = listView.dataSource.view()[index]; var originalSKU = $('#hiddenSku').val(); console.log("In product texts: %o", dataItem); $('#sku').html(originalSKU + "_" + dataItem.sku); if (dataItem.compare == "False") { return; } var title = 'Body-Solid Pro Clubline Series II Pec Fly Rear Delt with ' + dataItem.name;var titleSpecial = 'Body-Solid Pro Clubline Series II Pec Fly Rear Delt
' + dataItem.name + ''; var baseUrl = window.location.href.split(/[?#]/)[0]; window.history.replaceState("", title, baseUrl + "?lfc=" + dataItem.sku); $(document).prop('title', title); $('#productNameH1').html(titleSpecial); for (var i = 0; i < splits.length; i++) { splits[i].revert(); } splits = []; for (var i = 0; i < anims.length; i++) { anims[i].kill(); } anims = []; if ($('#kitProductIntro_' + dataItem.pid).length > 0) { $('.kit-description').html($('#kitProductIntro_' + dataItem.pid).html()); } if ($('#kitProductDescription_' + dataItem.pid).length > 0) { $('#kittedProductDescription').removeClass('must-hide'); $('#kittedProductDescription').html($('#kitProductDescription_' + dataItem.pid).html()); } // prevent flicker var height = $('#main_gallery > .owl-loaded').height(); if (height) { $('#main_gallery').css("height", height + "px"); } // re-render the image carousel $.ajax({ url: "/Home/RenderProductImageCarousel", data: { sku: newImageToShow }, success: function (result) {gsap.to("#main_gallery .image-gallery.owl-loaded img", {autoAlpha: 0, duration: 0.6}); $('#main_gallery').html(result); if ($("#renderedCarousel").children().length > 1) { $("#renderedCarousel").owlCarousel({ nav: true, navText: ['keyboard_arrow_left', 'keyboard_arrow_right'], dots: true, margin: 32, lazyLoad: true, slideSpeed: 300, paginationSpeed: 400, items: 1, autoplay: false, loop: ($('#renderedCarousel').children().length) == 1 ? false : true,responsive:{ 0:{ items:1, margin: 16 }, 769:{ items:1, margin: 32 }, 1200:{ items:1, margin: 32 } } }); } else { $(".image-gallery").addClass('owl-loaded'); }gsap.to("#main_gallery .image-gallery.owl-loaded img", {autoAlpha: 1, duration: 0.6, stagger:0.3}); } })$('#productNameH1 span.f2').delay('300').fadeIn(); $('.video-btn').click(function () { var videoID = $(this).attr('data-id'); $('#demo1').attr('src', '//www.youtube.com/embed/' + videoID + '?enablejsapi=1&rel=0&showinfo=0&controls=2&autoplay=1'); $('#video-wrap').fadeIn(); });/* Start SplitText */const headlineAmin = document.querySelectorAll(".split-text");headlineAmin.forEach(quote => {quote.split = new SplitText(quote, { type: "lines,words,chars", linesClass: "split-line" }); splits.push(quote.split);// Set up the animquote.anim = gsap.from(quote.split.chars, { scrollTrigger: {trigger: quote,// toggleActions: "restart pause resume reverse",// start: "top 50%", }, duration: 0.6, ease: "circ.out", y: 80, stagger: 0.02, }); anims.push(quote.anim); });/* End SplitText */ /* Start Parallax */ if (!(typeof gsap === 'undefined')) { gsap.set('.parallax', { y: 60 })const parallaxText = gsap.utils.toArray('.parallax');parallaxText.forEach(parallaxText => {gsap.to(parallaxText, {y: 0, ease: "circ.out",scrollTrigger: {trigger: parallaxText,scrub: true}})});gsap.utils.toArray(".pd-2022 img.object-cover.object-top").forEach((section, i) => { const heightDiff = section.offsetHeight - section.parentElement.offsetHeight; gsap.fromTo(section,{ y: -160 }, {scrollTrigger: { trigger: section.parentElement, scrub: true},y: 0,ease: "none" });}); /* End Parallax */ gsap.set('.fadein-text', { autoAlpha: 0, y: 25 }) const fadeinWrap = gsap.utils.toArray('.fadein-text'); fadeinWrap.forEach(fadein => { gsap.to(fadein, { delay: 0.4, autoAlpha: 1, y: 0, ease: "circ.out", scrollTrigger: { trigger: fadein } }) }); }$(document).ready( function(){let currentScroll = 0;let isScrollingDown = true;let tween = gsap.to(".promo-options ul.kit li", {xPercent: -100, repeat: -1, duration: 10, ease: "linear"}).totalProgress(0.5);gsap.set(".promo-options ul.kit li", {xPercent: -50});window.addEventListener("scroll", function(){ if ( window.pageYOffset > currentScroll ) {isScrollingDown = true; } else {isScrollingDown = false; } gsap.to(tween, {timeScale: isScrollingDown ? 1 : -1 }); currentScroll = window.pageYOffset});});/* Start play video in view port */ let video = document.querySelectorAll('video') video.forEach(vid => { ScrollTrigger.create({ trigger: vid, start: 'top 85%', end: 'bottom 15%', onEnter: () => vid.play(), onLeave: () => vid.pause(), onEnterBack: () => vid.play(), onLeaveBack: () => vid.pause() }); });/* End play video in view port */ if (!(typeof gsap === 'undefined')) { gsap.set(".card-slideup", { autoAlpha: 0, y: 50 }); gsap.set(".card-slideup .promo-text, .card-slideup .mega-outlined", { autoAlpha: 0, y: 25 }); gsap.set(".card-slideup img.object-cover", { scale: 1.3 }); ScrollTrigger.batch(".card-slideup", { start: "50px 80%", onEnter: (batch) => { batch.forEach((section) => { gsap.to(batch, { y: 0, duration: 0.9, ease: "circ.out", stagger: 0.3, delay: 0, autoAlpha: 1 }) gsap.to(section.querySelectorAll("img.object-cover"), { delay: 0, scale: 1.05, duration: 0.9, stagger: 0.3 }); gsap.to(section.querySelectorAll(".mega-outlined"), { y: 0, duration: 0.9, ease: "circ.out", stagger: 0.3, delay: 0.6, autoAlpha: 0.6 }) gsap.to(section.querySelectorAll(".promo-text"), { y: 0, duration: 0.9, ease: "circ.out", stagger: 0.3, delay: 0.6, autoAlpha: 1 }) }); } }); } } } } function showSelectedKitMainImage() { rehashPrice(); if (!(typeof kitProductOptionsInOrder === 'undefined')) { var newImageToShow = 'S2PEC'; for (var i = 0; i < kitProductOptionsInOrder.length; i++) { var listView = $("#" + kitProductOptionsInOrder[i]).data("kendoListView"); var dbConnObj = $("#lstdbconn").data("kendoListView"); var index = listView.select().index(), dataItem = listView.dataSource.view()[index]; newImageToShow += "_" + dataItem.sku; } newImageToShow += ".png"; console.log("New Image: " + newImageToShow); // now see if the image exists on the server $.ajax({ url: '/Home/ImageExistsOnServer?imageName=' + newImageToShow, type: 'GET', cache: false, error: function () { showDefaultImage(); }, success: function (data) { if (data.exists) { console.log("Image found!: " + newImageToShow); document.getElementById('customizedImage').value = newImageToShow; $('#primaryImagePagenation').attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + newImageToShow); $('#primaryImageMainLocation').attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + newImageToShow); $('#primaryImageMainLocation_LB').attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + newImageToShow); if (document.getElementById('primaryImage_ImagesVideos')) { $('#primaryImage_ImagesVideos').attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + newImageToShow); } if (document.getElementById('primaryImage_ImagesVideos_small')) { $('#primaryImage_ImagesVideos_small').attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + newImageToShow); } $('.primaryImage_ImagesVideos').attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + newImageToShow); if ($('#primaryImageMainLocationHref')) { $('#primaryImageMainLocationHref').attr('href', 'https://www.johnsonfitness.com/Content/product_images/' + newImageToShow); } if (typeof reRunPhotoSwipe == 'function') { reRunPhotoSwipe(); } var sideBuyBoxImages = getelementsByPrefix('sideBuyImage_', document.documentElement); if (sideBuyBoxImages.length) { for (var i = 0; i < sideBuyBoxImages.length; i++) { $("#" + sideBuyBoxImages[i].id).attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + newImageToShow); } } } else { console.log("Image is not on the server: " + newImageToShow); document.getElementById('customizedImage').value = ""; showDefaultImage(); } } }); } } function showDefaultImage() { $('#primaryImagePagenation').attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + 'S2PEC.png'); $('#primaryImageMainLocation').attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + 'S2PEC.png'); $('#primaryImageMainLocation_LB').attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + 'S2PEC.png'); if ($('#primaryImageMainLocationHref')) { $('#primaryImageMainLocationHref').attr('href', 'https://www.johnsonfitness.com/Content/product_images/' + 'S2PEC.png'); } if (typeof reRunPhotoSwipe == 'function') { reRunPhotoSwipe(); } var sideBuyBoxImages = getelementsByPrefix('sideBuyImage_', document.documentElement); if (sideBuyBoxImages.length) { for (var i = 0; i < sideBuyBoxImages.length; i++) { $("#" + sideBuyBoxImages[i].id).attr('src', 'https://www.johnsonfitness.com/Content/product_images/' + 'S2PEC.png'); } } } dropdownAdditionalPrice = null; function productDropDownChanged(id){ var price = $('#' + id + " option:selected").attr('data-price'); if(price){ dropdownAdditionalPrice = price; } else{ dropdownAdditionalPrice = null; } rehashPrice(); } checkboxAddtionalPrice = null; function productCheckboxChanged() { var isAnyChecked = false; checkboxAddtionalPrice = 0; $('[data-CbType="option"]').each(function (index) { if ($(this).is(":checked")) { var price = parseFloat($(this).attr('data-price')); isAnyChecked = true; checkboxAddtionalPrice += price; } }); if (!isAnyChecked) { checkboxAddtionalPrice = null; } rehashPrice(); } $(document).ready(function () { $('#CustomizeContainer').appendTo("body"); $('.customize_btn').click(function () { $('#CustomizeContainer').fadeIn(); }); $('.close_customize').click(function () { if ( typeof cancelCustomize == 'function' ) { cancelCustomize(); } else{ $('#CustomizeContainer').fadeOut(); } }); $('.continue').click(function () { if( typeof customizeComplete == 'function'){ customizeComplete("Body-Solid Pro Clubline Series II Pec Fly Rear Delt", 2250.00); } else{ $('#CustomizeContainer').fadeOut(); } });$('div.thumb_options').hide(); $('div.thumb_options:first').show(); $('.selectOptions h2:first').addClass('active'); $(".selectOptions h2").click(function () { $('.selectOptions h2').removeClass('active'); $('div.thumb_options').fadeOut(500); $(this).next('div.thumb_options').delay(700).fadeIn(); $(this).addClass('active'); }); $("#toggleCustomizeBg").click(function () { $("#CustomizeContainer").toggleClass("darkbg"); $("#CustomizeContainer").toggleClass("lightbg"); });$('#customize-kit-btn').prependTo(".kit-container");loaded = true;$('.dropDownKits').each(function(){ productDropDownChanged(this.id); }); showCorrectProductTexts(); showSelectedKitMainImage(); });

Additional Options

Additional Options

You might also like

Latest Posts

Article information

Author: Melvina Ondricka

Last Updated: 08/04/2022

Views: 6599

Rating: 4.8 / 5 (48 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.