Shopping Cart
Free Shipping On USA Orders Over $40
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
Samsung Galaxy S5 Glass Lens Screen Replacement
$1.56
ITEM#: 1-BK-1508 Stock Icon in stock
back

Select The Color Question Icon

Include Recommended Tools? Question Icon This repair requires specialized tools

16 Piece Precision Repair Tool Kit

Include Battery? Question Icon

This Product is currently unavailable.

Samsung Galaxy S5 Battery Replacement

Select Cable Question Icon

back
Ready, Set, Repair! Right Icon
Samsung Galaxy S5 Glass Lens Screen Replacement

Samsung Galaxy S5 Glass Lens Screen Replacement

  • Guide Icon Free repair guide
  • Tool Icon Free pry tool

description

ThisSamsung Galaxy S5 Glass Lens Screen Replacementin black is now available at RepairsUniverse. This part is commonly used to repair a broken or scratched glass lens. Please note that this is only the outer glass and does not have any touch digitizer functionality. Professional installation is highly recommended. If you are not a professional, we recommend you purchase the fullSamsung Galaxy S5 LCD & Touch Screen Replacement - Black.

Important:The glass lens-only replacement part for the Galaxy S5 is ONLY intended to be purchased by experienced repair technicians who have access to the proper machinery required to safely separate the glass lens from the LCD. Unless you, or someone you know, is a repair tech experienced in separating fused screens,do not attemptto separate the touch screen from the LCD screen on your device. You will likely cause more damage to your phone, increasing your repair costs.

Compatible With the Following Models:

  • Samsung Galaxy S5 SM-G900A (AT&T)
  • Samsung Galaxy S5 SM-G900T (T-Mobile)
  • Samsung Galaxy S5 SM-G900P (Sprint)
  • Samsung Galaxy S5 SM-G900V (Verizon)
  • Samsung Galaxy S5 SM-G900R4 (US Cellular)
  • Samsung Galaxy S5 SM-G900F (Europe)

Features:

  • High quality Black Glass Lens Screen for a Galaxy S5
  • Fingerprint-resistant oleophobic coating on front
  • High strength optically clear glass
  • Fast Shipping (same day on order placed by 5pm PST)
  • RECOMMENDED FOR REPAIRS SHOPS AND EXPERIENCED TECHNICIANS ONLY!

Compatibility:

Features:

Watch Our Repair Video

'; descMeta['8706896658495'] = '

This Samsung Galaxy S5 Glass Lens Screen Replacement - White is now available at RepairsUniverse. This part is commonly used to repair a broken or scratched glass lens. Please note that this is only the outer glass and does not have any touch digitizer functionality. Professional installation is highly recommended. If you are not a professional, we recommend you purchase the full Samsung Galaxy S5 LCD & Touch Screen Replacement - White.

Important: The glass lens-only replacement part for the Galaxy S5 is ONLY intended to be purchased by experienced repair technicians who have access to the proper machinery required to safely separate the glass lens from the LCD. Unless you, or someone you know, is a repair tech experienced in separating fused screens, do not attempt to separate the touch screen from the LCD screen on your device. You will likely cause more damage to your phone, increasing your repair costs.

Compatible with:

Features:

'; var wholeTab = $('#horizontalTab').html(); // for left sidebire for images $(".product-section .product-section-slider").slick({ dots: false, arrows: true, autoplay: true, slidesToShow: 4, slidesToScroll: 1, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll: 1, infinite: true } }, { breakpoint: 600, settings: { slidesToShow: 2, slidesToScroll:1 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } } ] }) // main selectcallback var mainVarinat = '', mainPrice = '', mainImage = '',mainVariantTitle = ''; var selectCallback = function(variant, selector) { timber.productPage({ money_format: "${{amount}}", variant: variant, selector: selector }); if (variant) { $('span.meta-sku').text(variant.sku); mainVarinat = variant.id; mainVariantTitle = variant.title; $('.wholeDesc').html(descMeta[mainVarinat]); mainPrice = Shopify.formatMoney(variant.price); if(variant.featured_image){ mainImage = variant.featured_image.src; if(mainImage != ''){ $('.metaimageVariant').attr('src',mainImage); $('.order-summery .image-wrap img').attr('src',mainImage); } } if(variant.title != 'Default Title'){ $('.metaVariant').text(variant.title); } var form = jQuery('#' + selector.domIdPrefix).closest('form'); for (var i=0,length=variant.options.length; iColor'); // Hide selectors if we only have 1 variant and its title contains 'Default'. }); var $tabs = $('#horizontalTab'); var total = $('#horizontalTab .tabs').length; // if more than one options available @ that time tabination will be show if(total > 1){ if($('#horizontalTab').length >= 1){ $tabs.responsiveTabs({ active:1, rotate: false, startCollapsed: 'accordion', collapsible: 'accordion', setHash: false, disabled: [1,2,3,4,5,6,7,8,9], click: function(e, tab) { }, activate: function(e, tab) { if($('li.r-tabs-state-active').text() == "Insurance"){ if($('.btn.SkipSummary span').text() == "Skip to Insurance"){ $('.btn.SkipSummary span').text("Skip to Summary"); } $('.button-wrap .SkipSummary').click(function(e){ $('#no-insurance[data-value="No Insurance"]').prop('checked',true); $('#no-insurance[data-value="No Insurance"]').trigger('click'); $('#no-insurance[data-value="No Insurance"]').trigger('change'); }); }else{ } }, activateState: function(e, state) { } }); } } //inbuilt call 1st time $('#horizontalTab ul li a:first').trigger('click'); //scroll to left hand side function scrollToActive(){ if($(window).width() > 767){ var obj = $('#horizontalTab .r-tabs-state-active'); var childPos = obj.offset(); var parentPos = obj.parents('.resp-tabs-list').offset(); var childOffset = { top: childPos.top - parentPos.top, left: childPos.left - parentPos.left } var currentScroll = $(".resp-tabs-list").scrollLeft(); if($("#horizontalTab li.r-tabs-state-active").index() > 2){ $(".resp-tabs-list").animate({ scrollLeft: currentScroll + childOffset.left }); $('.back-link').show(); } } } var mainTabLength = $('.tab-desc').length; $('.button-wrap .SkipSummary').click(function(e){ if($('span',this).text() == 'Skip to Insurance'){ $('span',this).text('Skip to Summary'); if (!$('.r-tabs-tab[data-type="insurance"]').length && !$('.r-tabs-tab[data-title="insurance"]').length){ var summary = ""; var $priceTotal = 0; $('input[type=radio]:checked').each(function(indexs, element) { var dataSummary = $(this).data('summary'); var dataValue = $(this).data('value'); if(dataValue.indexOf('Default Title') < 0){ summary += '

'+dataSummary+': '+dataValue+'

'; } }); $priceTotal = parseFloat($('#ProductPrice').text().replace('$','')); $('input[type=radio]:checked').not('.swatch input[type=radio]:checked').each(function(index, element) { if($(this).data('price')){ var dataPrice = parseFloat($(this).data('price').replace('$','')); $priceTotal += dataPrice; } }); summary += '

Your Total Price : $'+$priceTotal.toFixed(2)+'

'; $('.withTab').addClass('hide'); $('.withoutTab').removeClass('hide'); $('.withoutTab .summary').html(summary); $('#Quantity').show(); $('.button-wrap .SkipSummary').hide(); $('.button-wrap .addToCart').show(); $('.button-wrap .addToCart').removeClass('disabled-btn'); } else { var summary = ""; // $('.button-wrap .addToCart').show(); // $('.button-wrap .addToCart').removeClass('disabled-btn'); // $('.button-wrap .SkipSummary').hide(); $('input[type=radio]:checked').each(function(index, element) { var dataSummary = $(this).data('summary'); var dataValue = $(this).data('value'); var dataPrice = $(this).data('price'); if($.trim(dataValue) != "Default Title"){ summary += '

'+dataSummary+': '+dataValue+'

'; } }); $('.button-wrap .addToCart').show(); $('.button-wrap .addToCart').removeClass('disabled-btn'); $('.button-wrap .SkipSummary').hide(); $('.withTab').addClass('hide'); $('.withoutTab').removeClass('hide'); $('.withoutTab .summary').html(summary); // $tabs.responsiveTabs('enable', mainTabLength-1); // $('.resp-tabs-list .insurance').find('a').click(); // if($(window).width() < 767){ tooltipMobile(); // } } } else { var summary = ""; var $priceTotal = 0; $('input[type=radio]:checked').each(function(indexs, element) { var dataSummary = $(this).data('summary'); var dataValue = $(this).data('value'); if(dataValue.indexOf('Default Title') < 0){ summary += '

'+dataSummary+': '+dataValue+'

'; } }); $priceTotal = parseFloat($('#ProductPrice').text().replace('$','')); $('input[type=radio]:checked').not('.swatch input[type=radio]:checked').each(function(index, element) { if($(this).data('price')){ var dataPrice = parseFloat($(this).data('price').replace('$','')); $priceTotal += dataPrice; } }); summary += '

Your Total Price : $'+$priceTotal.toFixed(2)+'

'; $('.withTab').addClass('hide'); $('.withoutTab').removeClass('hide'); $('.withoutTab .summary').html(summary); $('#Quantity').show(); $('.button-wrap .SkipSummary').hide(); $('.button-wrap .addToCart').show(); $('.button-wrap .addToCart').removeClass('disabled-btn'); } }); // for click on tab options var summary = ""; var totalOptions = 1; if(totalOptions > 1){ $('.button-wrap .addToCart').hide(); $('.button-wrap .SkipSummary').hide(); } var arr = []; $('.tab-desc').each(function(index, element) { var $tabIndex = index; var $tabthis = $(this); $('input[type=radio]',this).each(function(index, element) { $(this).click(function(e) { var $this = $(this); var val = $this.val(); var valModel = $(this).attr('data-model'); if(($tabIndex+1) == mainTabLength){ var summary = ""; var $priceTotal = 0; $('input[type=radio]:checked').each(function(indexs, element) { var dataSummary = $(this).data('summary'); var dataValue = $(this).data('value'); if(dataValue.indexOf('Default Title') < 0){ summary += '

'+dataSummary+': '+dataValue+'

'; } }); $priceTotal = parseFloat($('#ProductPrice').text().replace('$','')); $('input[type=radio]:checked').not('.swatch input[type=radio]:checked').each(function(index, element) { if($(this).data('price')){ var dataPrice = parseFloat($(this).data('price').replace('$','')); $priceTotal += dataPrice; } }); summary += '

Your Total Price : $'+$priceTotal.toFixed(2)+'

'; $('.withTab').addClass('hide'); $('.withoutTab').removeClass('hide'); $('.withoutTab .summary').html(summary); $('#Quantity').show(); $('.button-wrap .SkipSummary').hide(); $('.button-wrap .addToCart').show(); $('.button-wrap .addToCart').removeClass('disabled-btn'); } else{ var tabInd = 0; var $newId = $tabthis.attr('id'); //to get next inedx $('.resp-tabs-list li').each(function(index,element){ if($(this).attr('data-id') == $newId){ tabInd = index; } }); //for checking next is smallpart or not if($newId.indexOf('small-part') > -1){ console.log('hi1'); if(val.indexOf('Without') > -1){ console.log('hi2'); $tabs.responsiveTabs('enable', tabInd+1); $('.resp-tabs-list .'+$newId).next('li').find('a').click(); $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').removeClass('withsmall'); }else{ console.log('hi3'); var chckQual = $('.resp-tabs-list .'+$newId).next('li').attr('data-id'); if(chckQual.indexOf('quality') > -1){ console.log('hi4'); //to default check aftermarket var value = 'Aftermarket'; $("input[name=option-1][value=" + value + "]").click(); // for go to next to next $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').addClass('withsmall'); $tabs.responsiveTabs('enable', tabInd+2); $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').click(); $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').trigger('click'); console.log($('.resp-tabs-list .'+$newId).next('li').next('li').find('a').text()+'-------------'+dataIDActive); }else{ console.log('hi5'); $tabs.responsiveTabs('enable', tabInd+1); $('.resp-tabs-list .'+$newId).next('li').find('a').click(); console.log($('.resp-tabs-list .'+$newId).next('li').find('a').text()); } } }else{ console.log('hi6'+'-------'+$newId); //if no small parts will goto next $tabs.responsiveTabs('enable', tabInd+1); //$('.resp-tabs-list .'+$newId).next('li').find('a').click(); $('.resp-tabs-list .'+$newId).next('li').find('a').trigger('click'); } if($newId.indexOf('repair-type') > -1){ if(valModel == 'iPhone X'){ if(val.indexOf('Glass') > -1){ $tabs.responsiveTabs('enable', tabInd+1); $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').click(); $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').trigger('click'); } else if(val.indexOf('LCD') > -1){ $tabs.responsiveTabs('enable', tabInd+1); $('.resp-tabs-list .'+$newId).next('li').find('a').click(); } }else { if(val.indexOf('Glass') > -1){ $tabs.responsiveTabs('enable', tabInd+2); $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').click(); $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').trigger('click'); $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').addClass('withsmall'); } else if(val.indexOf('LCD') > -1){ // if(val == 'LCD'){ // $tabs.responsiveTabs('enable', tabInd+2); // $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').click(); // $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').trigger('click'); // $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').addClass('withsmall'); // }else{ $tabs.responsiveTabs('enable', tabInd+1); $('.resp-tabs-list .'+$newId).next('li').find('a').click(); $('.resp-tabs-list .'+$newId).next('li').next('li').find('a').removeClass('withsmall'); // } } } } $('.button-wrap .addToCart').hide(); $('.button-wrap .SkipSummary').show(); $('#Quantity').show(); scrollToActive(); } $this.closest('.tab-desc').prev('.r-tabs-accordion-title').addClass('done'); $('.qua-name').responsiveEqualHeightGrid(); $('.quality-inner img').responsiveEqualHeightGrid(); $('.quality-inner p').responsiveEqualHeightGrid(); $('.thumb-desc-wrp').responsiveEqualHeightGrid(); $('.desc h5').responsiveEqualHeightGrid(); $('.desc p').responsiveEqualHeightGrid(); if(totalOptions > 1){ arr.push($tabIndex); if($tabIndex < totalOptions){ $('.button-wrap .SkipSummary').hide(); } if(totalOptions == $tabIndex){ $('.button-wrap .addToCart').hide(); $('.button-wrap .SkipSummary').show(); arr=[]; } if(arr.length == totalOptions){ $('.button-wrap .SkipSummary').show(); arr=[]; } } if(($tabIndex+1) == mainTabLength){ $('.button-wrap .addToCart').show(); $('.button-wrap .SkipSummary').hide(); arr=[]; } // if($(window).width() < 767){ tooltipMobile(); // } }); }); }); // when click on back link $('.back-link').click(function(e) { var a = $('#horizontalTab ul.resp-tabs-list li.r-tabs-state-active').index(); var chksmall = false; if($('#horizontalTab ul.resp-tabs-list li.r-tabs-state-active a').hasClass('withsmall')){ chksmall = true; } if(a > 0){ if(chksmall == true){ $tabs.responsiveTabs('enable', a-2); $tabs.responsiveTabs('activate', a-2); var obj = $('#horizontalTab .r-tabs-state-active'); var childPos = obj.offset(); var parentPos = obj.parents('.resp-tabs-list').offset(); var childOffset = { top: childPos.top - parentPos.top, left: childPos.left - parentPos.left } var currentScroll = $("#horizontalTab .resp-tabs-list").scrollLeft(); $("#horizontalTab .resp-tabs-list").animate({ scrollLeft: currentScroll + childOffset.left }); } else{ $tabs.responsiveTabs('enable', a-1); $tabs.responsiveTabs('activate', a-1); var obj = $('#horizontalTab .r-tabs-state-active'); var childPos = obj.offset(); var parentPos = obj.parents('.resp-tabs-list').offset(); var childOffset = { top: childPos.top - parentPos.top, left: childPos.left - parentPos.left } var currentScroll = $("#horizontalTab .resp-tabs-list").scrollLeft(); $("#horizontalTab .resp-tabs-list").animate({ scrollLeft: currentScroll + childOffset.left }); } $('.back-link').show(); } else{ $('.back-link').hide(); } if(a == 1){ $('.back-link').hide(); } $('.qua-name').responsiveEqualHeightGrid(); $('.quality-inner img').responsiveEqualHeightGrid(); $('.quality-inner p').responsiveEqualHeightGrid(); $('.thumb-desc-wrp').responsiveEqualHeightGrid(); $('.desc h5').responsiveEqualHeightGrid(); $('.desc p').responsiveEqualHeightGrid(); }); $('.back-link-without').click(function(e){ $('.withTab').removeClass('hide'); $('.withoutTab').addClass('hide'); }); $('#AddToCart').on('click',function(e){ $('.r-tabs-accordion-title').removeClass('done'); var $thisAddCart = $(this); $thisAddCart.text('Adding..'); $thisAddCart.attr('disabled','disabled'); $thisAddCart.addClass('disabled-btn'); $('body').addClass('productPopupActive'); if($('.tab-desc').length <= 0){ var qtyC = parseInt($('#Quantity').val()); if(qtyC == 1){ $('.maincount').html(qtyC +' item'); }else{ $('.maincount').html(qtyC +' items'); } } var qtyC = parseInt($('#Quantity').val()); if(qtyC == 1){ $('.maincount').html(qtyC +' item'); }else{ $('.maincount').html(qtyC +' items'); } var count =1; $('.popup.product-popup').show(); $('.popup.product-popup#resultPopup').addClass('resultPopup'); var Qty = $('#Quantity').val(); $('.mainQty').text('Qty: '+Qty); $('.product-cart h4.price').text(mainPrice); var varintId = mainVarinat; var data_ajax = { "quantity": Qty, "id": varintId } var params = { type: 'POST', url: '/cart/add.js', data: data_ajax, dataType: 'json', async:false, success: function(line_item) { quickviewUpdateCart(); }, error: function(er) { var err = $.parseJSON(er.responseText); return false; } } $.ajax(params); $('.popup .sub-product').html(''); productQty = $('#Quantity').val(); count = parseInt(productQty); $('input[type=radio]:checked').not('.swatch input[type=radio]:checked, .swatch-no input[type=radio]:checked').each(function(index, element) { if($(this).data('handle')){ var product_handle = $(this).data('handle'); var product_id = $(this).val(); Shopify.getProduct(product_handle, function(product) { var addProduct = ''; count += 1; var productTitle = product.title; var productType = product.type; var v = ''; for(var i in product.variants){ if(product.variants[i].id == product_id){ if(product.variants[i].title != 'Default Title'){ v = product.variants[i].title; } } } // var img = Shopify.resizeImage(product.featured_image, '500x500'); var price = Shopify.formatMoney(product.price, window.money_format); addProduct += '
'; addProduct += '
'; addProduct += '
'+productType+': '+productTitle+' '+v+' ('+price+')
'; addProduct += '
'; $('.popup .sub-product').append(addProduct); if(count == 1){ $('.maincount').html(count +' item'); }else{ $('.maincount').html(count +' items'); } }); var Qty = 1; var varintId = $(this).val(); var data_ajax = { "quantity": Qty, "id": varintId } var params = { type: 'POST', url: '/cart/add.js', data: data_ajax, dataType: 'json', async:false, success: function(line_item) { quickviewUpdateCart(); }, error: function(er) { var err = $.parseJSON(er.responseText); return false; } } $.ajax(params); quickviewUpdateCart(); } }); if($(window).width() > 767){ $('.pop-up-prod-wrap .product-name').responsiveEqualHeightGrid(); } if($(window).width() < 767){ if(!$(".popup-box .pop-up-prod-wraps").hasClass('slick-initialized')){ $(".popup-box .pop-up-prod-wraps").slick({ dots: false, arrows: true, autoplay: true, slidesToShow: 4, slidesToScroll: 1, responsive: [ { breakpoint: 767, settings: { slidesToShow:1, slidesToScroll:1 } } ] }); } } setTimeout(function(e){ $thisAddCart.text('Added!!'); $thisAddCart.removeAttr('disabled'); $thisAddCart.removeClass('disabled-btn'); quickviewUpdateCart(); },500); setTimeout(function(e){ $thisAddCart.text('Add To Cart'); $thisAddCart.removeAttr('disabled'); $thisAddCart.removeClass('disabled-btn'); quickviewUpdateCart(); $('.productCollectionPopupFirst .close').click(function(e){ $('.productCollectionPopupFirst').fadeOut(); $('body').removeClass('productPopupActive'); }); repairsUniverse.viewMoredetail(); },4000); e.preventDefault(); jQuery.getJSON('/cart.js', function (cart, textStatus) { var freeship = parseInt('40'); var free2dayship = parseInt('1000'); var mprice = parseFloat(Shopify.formatMoney(cart.total_price,window.money_format).replace('$','').replace(',','')); if(mprice < freeship){ var remaining = parseFloat(freeship) - parseFloat(mprice); $('.side-shipping .continue-shopping .freeShippingText').text('FREE SHIPPING? Add $'+remaining.toFixed(2)+' more.'); }else if(mprice < free2dayship){ $('.side-shipping .continue-shopping .freeShippingText').text('Product ships free!'); } /* var freeship = parseInt('40'); var mprice = parseFloat(Shopify.formatMoney(cart.total_price,window.money_format).replace('$','').replace(',','')); if(mprice < freeship){ var remaining = parseFloat(freeship) - parseFloat(mprice); remaining = remaining.toFixed(2); $('.side-shipping .continue-shopping .freeShippingText').text('Add $'+remaining+' more for FREE SHIPPING!'); } else if(mprice > freeship){ $('.side-shipping .continue-shopping .freeShippingText').text('Free shipping'); } else{ $('.side-shipping .continue-shopping .freeShippingText').text('Free shipping'); } */ }); upsell(); /* after add to cart display again same like before */ //$('#horizontalTab').html(wholeTab); if($('#horizontalTab').length > 0){ var total = $('#horizontalTab .tabs').length; if(total > 1){ $('#horizontalTab').removeClass('hide'); $('.withoutTab').addClass('hide'); $('#horizontalTab').responsiveTabs({ active:1, rotate: false, startCollapsed: 'accordion', collapsible: 'accordion', setHash: false, disabled: [1,2,3,4,5,6,7,8,9] }); $('#horizontalTab').responsiveTabs('enable', 0); $('#horizontalTab').responsiveTabs('activate', 0); } } $('.resp-tabs-container .tab-desc').each(function(i,e){ $('input',this).each(function(index,element){ if($(this).prop('checked') == true){ $(this).prop('checked',false) } }); }); if($('#horizontalTab .r-tabs-state-active').length > 0){ var obj = $('#horizontalTab .r-tabs-state-active'); var childPos = obj.offset(); var parentPos = obj.parents('.resp-tabs-list').offset(); var childOffset = { top: childPos.top - parentPos.top, left: childPos.left - parentPos.left } var currentScroll = $("#horizontalTab .resp-tabs-list").scrollLeft(); $("#horizontalTab .resp-tabs-list").animate({ scrollLeft: currentScroll + childOffset.left }); $('.back-link').hide(); } }); function quickviewUpdateCart(){ jQuery.getJSON('/cart.js', function (cart, textStatus) { $('body').find('#CartCount').html(cart.item_count); if($(window).width() < 1024){ $('.mean-bar #CartCount').html(cart.item_count); }else{ $("#CartCount").html(cart.item_count); } }); } if($('.video-inner iframe').length){ var src = $('.video-inner iframe').attr('src'); var img = src.split('/embed/')[1]; img = img.split('?')[0]; $('img.mainVideoSmall').attr('src','http://img.youtube.com/vi/'+img+'/0.jpg'); $('.play-button, a.videoClick').click(function(e){ e.preventDefault(); var src = $('.video-inner iframe').attr('src'); $('.video-inner iframe').attr('src',src+'&autoplay=1'); goToByScroll('#video-inner'); }); } else{ $('.repair-video-section').hide(); $('#video-wrap').hide(); } function goToByScroll(id){ id = id.replace("link", ""); $('html,body').animate({ scrollTop: $(id).offset().top - 300},'slow'); } if($('.wholeDesc .specialInfo').length > 0){ var specialInfo = $('.wholeDesc .specialInfo').html(); $('#specialInfo').html(specialInfo); }else{ $('#specialInfo').hide(); } setTimeout(function(){ $('#horizontalTab .tab-desc').each(function(index,element){ var $this = $(this); if($(window).width() > 1024){ $('img.question',this).on('click, mouseenter',function(e){ e.stopPropagation(); if($this.find('.tool-hover').hasClass('active')){ $this.find('.tool-hover').fadeOut().removeClass("active"); }else{ $this.find('.tool-hover').fadeIn().addClass('active'); } }); $("body").on('click', function(e){ $this.find('.tool-hover').fadeOut().removeClass("active"); }); }else{ $('img.question',this).on('click, touchend',function(e){ e.stopPropagation(); if($this.find('.tool-hover').hasClass('active')){ $this.find('.tool-hover').fadeOut().removeClass("active"); }else{ $this.find('.tool-hover').fadeIn().addClass('active'); } }); // $("body").on('click, touchend', function(e){ // $this.find('.tool-hover').fadeOut().removeClass("active"); // }); } }); },3000); if($.trim($('#horizontalTab .resp-tabs-container').text()) == ''){ $('#horizontalTab').hide(); } function upsell(){ $('.upsellProduct .product-wrap').each(function(index,element){ var $this = $(this); $('#AddToCart',this).unbind( "click" ); $('#AddToCart',this).on('click',function(e){ var $btnthis = $(this); var varId = $(this).data('varid'); var qty = 1; var data_ajax = { "quantity": qty, "id": varId } var params = { type: 'POST', url: '/cart/add.js', data: data_ajax, dataType: 'json', async:false, success: function(line_item) { $this.find('.itemAdded').show(); $btnthis.hide(); quickviewUpdateCart(); }, error: function(er) { var err = $.parseJSON(er.responseText); return false; } } $.ajax(params); jQuery.getJSON('/cart.js', function (cart, textStatus) { var freeship = parseInt('40'); var free2dayship = parseInt('1000'); var mprice = parseFloat(Shopify.formatMoney(cart.total_price,window.money_format).replace('$','').replace(',','')); if(mprice < freeship){ var remaining = parseFloat(freeship) - parseFloat(mprice); $('.side-shipping .continue-shopping .freeShippingText').text('FREE SHIPPING? Add $'+remaining.toFixed(2)+' more.'); }else if(mprice < free2dayship){ $('.side-shipping .continue-shopping .freeShippingText').text('Product ships free!'); } /* var freeship = parseInt('40'); var mprice = parseFloat(Shopify.formatMoney(cart.total_price,window.money_format).replace('$','').replace(',','')); if(mprice < freeship){ var remaining = parseFloat(freeship) - parseFloat(mprice); remaining = remaining.toFixed(2); $('.side-shipping .continue-shopping .freeShippingText').text('Add $'+remaining+' more for FREE SHIPPING!'); } else if(mprice > freeship){ $('.side-shipping .continue-shopping .freeShippingText').text('Free shipping'); } else{ $('.side-shipping .continue-shopping .freeShippingText').text('Free shipping'); } */ }); }); }); } $('body').on('mouseover','.resp-tabs-container .input-label-wrap',function(e){ var tooltip = $('input[type=radio]',this).attr('data-tooltip'); var $class = $('input[type=radio]',this).attr('data-class'); $(this).closest('.tab-desc').find('.tool-hover').fadeOut().removeClass("active"); //$('img.question').find('.tool-hover').fadeOut().removeClass("active"); console.log($class); if($.trim(tooltip) != ''){ $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').html(tooltip); $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').addClass('open'); $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').addClass($class); }else{ $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').html(''); $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').removeClass('open'); $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').addClass($class); } }); $('body').on('mouseout','.resp-tabs-container .input-label-wrap',function(e){ $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').html(''); $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').removeClass('open'); $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').removeClass('odd'); $('input[type=radio]',this).parent('.input-label-wrap').find('.tooltip-container').removeClass('even'); }); function tooltipMobile(){ setTimeout(function(){ $('#horizontalTab .tab-desc.r-tabs-state-active[style="display: block;"] .questionToolkit').fadeIn(); },500); // setTimeout(function(){ // $('#horizontalTab .tab-desc.r-tabs-state-active[style="display: block;"] .questionToolkit').fadeOut(); // },4500); } if($(window).width() < 767){ var flag = false; $(window).scroll(function (event) { var scroll = $(window).scrollTop(); var scrollmin = scroll - 100; var scrollmax = scroll + 100; var offset = $('#AddToCartForm').offset(); var offsetTop = offset.top - 200; if(flag == false){ if(scrollmin < offsetTop && scrollmax > offsetTop){ tooltipMobile(); flag = true; } } }); $('body').on('click','#horizontalTab .r-tabs-accordion-title a',function(e){ tooltipMobile(); }); $('.scroll-down-logo').on('click',function(e){ id = $('#horizontalTab'); $('html,body').animate({ scrollTop: $(id).offset().top - 200},'slow'); //goToByScroll('#horizontalTab'); }); }else{ tooltipMobile(); }