'); $('#productDetail-size span').addClass('size-label-details'); $('#productDetail-size span').css('font-weight', 'normal'); $(".size-box-container button").on("click", function(e) { var selectedSizeText = e.currentTarget.getAttribute("data-text"); //selectedSizeText=selectedSizeText.replace(" - Sold Out",""); var selectedSizeValue = e.currentTarget.getAttribute("data-value"); shopHq.product.viewModel.selectedSizeText(selectedSizeText); shopHq.product.viewModel.selectedSizeValue(selectedSizeValue); $(".ClientSidepriceWrapper").remove(); //LoadPriceSection(); $('.size-box-container button').each(function(currentIndex) { $(this).removeClass("size-button-details-active"); }); $(this).addClass("size-button-details-active"); $(this).addClass("size-text-details-active"); $(this).removeClass("size-text-details"); //Loadwarranty(); var isSoldOut_Notifyme = selectedSizeText.indexOf("Sold Out") >= 0; if (isSoldOut_Notifyme) { $('#notify-me').css("display", "block") } else { $('#notify-me').css("display", "none") } ProductWishListToggle(); }); } ImageButtonsClickEvent = function(obj, isVideoPlaying) { if (isVideoPlaying) { shopHq.product.viewModel.pauseVideo(); $("#video").hide(); $("#html5_video").hide(); $("#display-image-outer-container").show(); $("#OldbtnZoomIn").css({ 'color': '#ADADAD', 'border-color': '#ADADAD' }); } var useOverlay = false; if (obj.getAttribute("data-colorcode") !== null) { shopHq.product.viewModel.selectedColorText(obj.getAttribute("alt")); useOverlay = true; } shopHq.product.viewModel.selectedMaxImageSize(obj.getAttribute("data-maxing")); shopHq.images.zoomReset(); shopHq.product.viewModel.setSelectedImage(obj.src, 472, useOverlay); } $('#autoPlayCheckbox').change(function() { if (this.checked) { $.cookie("PDPAutoPlay", "1", { expires: 365, path: '/' }); shopHq.product.viewModel.autoPlayVideo(1); } else { $.cookie("PDPAutoPlay", "0", { expires: 365, path: '/' }); shopHq.product.viewModel.autoPlayVideo(0); } });