Sunglasses +1.5 (41)

An overview of our sunglasses with +1.5 strength

{ if (document.readyState === 'complete') { clearInterval(stateCheck); if(equal_height != 'false'){ matchEqualHeightLiquid(); } if(swatches_event_change != 'none'){ eventColorSwatchesLiquid(); } var alreadyLazyloaded = document.querySelectorAll('.lazyloaded'); alreadyLazyloaded.forEach(function(image) { boostRemoveImageLoadingAnimation(image); }); } }, 100); // Match Equal Height function matchEqualHeightLiquid() { var cropImagePosition = "bottom"; var equal_i = -1; var equal_els = []; var equal_element = null; var widthImageAll = jQ('.boost-pfs-filter-product-item').width(); var indexData = 0; // Equal Height Title jQ('.boost-pfs-filter-product-item').each(function(i, element) { var offsetTop = jQ(element).offset().top; if(!equal_element || equal_element.offset().top !== offsetTop) { equal_element = jQ(element); equal_i++; } if(!equal_els[equal_i]) { equal_els[equal_i] = []; } equal_els[equal_i].push(element); }); // // For Auto // if(equal_height == 'auto'){ // for(var i = 0; i < equal_els.length; i++) { // var max = 0; // var maxRatio = 0; // var iLength = equal_els[i].length; // for(var j = 0; j < equal_els[i].length; j++) { // var item = equal_els[i][j]; // var height = jQ(item).find('.boost-pfs-filter-product-item-title').height(); // max = Math.max(max, height); // var heightImage = jQ(item).data('image-height'); // var widthImage = jQ(item).data('image-width'); // if (heightImage != '' && widthImage != '') { // var ratioImage = heightImage / widthImage; // maxRatio = Math.max(maxRatio, ratioImage); // } // } // jQ(equal_els[i]).find('.boost-pfs-filter-product-item-title').css({'min-height': max}); // var maxHeightImage = widthImageAll * maxRatio; // jQ(equal_els[i]).find('.boost-pfs-filter-product-item-image-link').css({'padding-top': maxHeightImage + 'px'}).addClass('boost-pfs-filter-crop-image-position-' + cropImagePosition); // } // } // For Ratio if(equal_height != 'false' && equal_height != 'auto'){ var heightImage = 0; var widthImage = jQ('.boost-pfs-filter-product-item').width(); if(equal_height != 'false' && equal_height != 'auto'){ var ratioWidthHeight = "1:1"; } else { var ratioWidthHeight = ''; } var ratioWidthHeightOther = ""; if (ratioWidthHeightOther == '' && ratioWidthHeight == ''){ return null; } else { if (ratioWidthHeightOther == '') { ratioWidthHeight = ratioWidthHeight.split(':'); ratioWidthHeight = parseInt(ratioWidthHeight[1]) / parseInt(ratioWidthHeight[0]); heightImage = widthImage * ratioWidthHeight; } else if (ratioWidthHeightOther != '') { ratioWidthHeightOther = ratioWidthHeightOther.split(':'); ratioWidthHeightOther = parseInt(ratioWidthHeightOther[1]) / parseInt(ratioWidthHeightOther[0]); heightImage = widthImage * ratioWidthHeightOther; } } jQ('.boost-pfs-filter-product-item-image-link').css({'padding-top': heightImage + 'px'}).addClass('boost-pfs-filter-crop-image-position-' + cropImagePosition);; } } // Swatch color event if(swatches_event_change != 'none'){ function eventColorSwatchesLiquid() { jQ('.boost-pfs-filter-item-swatch li label').each(function(){ var img = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-main-image'); if(swatches_event_change == 'hover'){ jQ(this).hover(function(){ var newImage = jQ(this).data('img'); img.attr('srcset', newImage); }); } if(swatches_event_change == 'click'){ jQ(this).click(function(){ var newImage = jQ(this).data('img'); img.attr('srcset', newImage); }); } }); jQ('.boost-pfs-filter-product-item').each(function(i){ var product_item = jQ(this); if(swatches_event_change == 'hover'){ jQ(this).find('.color_swatch').each(function(j){ var img = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-main-image'); var flip_img = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-flip-image'); var product_title = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-title'); var product_url = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-image-link'); var product_price = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-price > span'); var product_max_price = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-price > s'); var product_variants = jQ(this).parents('.boost-pfs-filter-product-item').find('.collection-listing-product-variants'); var product_tag_labels = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.product-label-container'); var product_wide_labels = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.filter-label-container'); var product_filter_labels = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.filter-labels-container'); j != 0 && jQ(this).parent().removeClass('selected'); jQ(this).hover(function(){ if(!jQ(this).parent().hasClass('selected')) { jQ(product_item).find('.color_swatch').parent().removeClass('selected'); jQ(this).parent().addClass('selected'); var newImage = jQ(this).data('img'); img.attr('srcset', newImage); var newFlipImage = jQ(this).data('flip-img'); flip_img.attr('srcset', newFlipImage); var newTitle = jQ(this).data('title'); product_title.html(newTitle); var newUrl = jQ(this).data('url'); product_url.attr('href', newUrl); product_title.attr('href', newUrl); var newPrice = jQ(this).data('price'); product_price.html(newPrice); var newMaxPrice = jQ(this).data('max-price'); product_max_price.html(newMaxPrice); var newVariants = jQ(this).data('variants'); product_variants.html(newVariants); var newTagLabels = jQ(this).data('tag-label'); product_tag_labels.html(newTagLabels); var newWideLabels = jQ(this).data('wide-label'); product_wide_labels.html(newWideLabels); var newFilterLabels = jQ(this).data('filter-label'); product_filter_labels.html(newFilterLabels); } }); }) } if(swatches_event_change == 'click'){ jQ(this).find('.color_swatch').each(function(j){ var img = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-main-image'); var flip_img = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-flip-image'); var product_title = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-title'); var product_url = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-image-link'); var product_price = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-price > span'); var product_max_price = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.boost-pfs-filter-product-item-price > s'); var product_variants = jQ(this).parents('.boost-pfs-filter-product-item').find('.collection-listing-product-variants'); var product_tag_labels = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.product-label-container'); var product_wide_labels = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.filter-label-container'); var product_filter_labels = jQ(this).parents('.boost-pfs-filter-product-item-inner').find('.filter-labels-container'); j != 0 && jQ(this).parent().removeClass('selected'); jQ(this).click(function(){ if(!jQ(this).parent().hasClass('selected')) { jQ(product_item).find('.color_swatch').parent().removeClass('selected'); jQ(this).parent().addClass('selected'); var newImage = jQ(this).data('img'); img.attr('srcset', newImage); var newFlipImage = jQ(this).data('flip-img'); flip_img.attr('srcset', newFlipImage); var newTitle = jQ(this).data('title'); product_title.html(newTitle); var newUrl = jQ(this).data('url'); product_url.attr('href', newUrl); product_title.attr('href', newUrl); var newPrice = jQ(this).data('price'); product_price.html(newPrice); var newMaxPrice = jQ(this).data('max-price'); product_max_price.html(newMaxPrice); var newVariants = jQ(this).data('variants'); product_variants.html(newVariants); var newTagLabels = jQ(this).data('tag-label'); product_tag_labels.html(newTagLabels); var newWideLabels = jQ(this).data('wide-label'); product_wide_labels.html(newWideLabels); var newFilterLabels = jQ(this).data('filter-label'); product_filter_labels.html(newFilterLabels); } }); }) } }); } } // Build Placeholder for the first load function boostRemoveImageLoadingAnimation(image) { // Remove loading animation var imageWrapper = image.hasAttribute('data-boost-image-loading-animation') ? image : image.closest('[data-boost-image-loading-animation]'); if (imageWrapper) { imageWrapper.removeAttribute('data-boost-image-loading-animation'); } }