From: Anthony Talarico Date: Tue, 28 Jun 2016 17:08:05 +0000 (-0400) Subject: re-adding jquery code X-Git-Tag: v1.0.0^2~116 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=29aa6f8ed68dede6b99c8f4ac4787aaac825e526;p=WP-Themes%2Ffrancejourneys.git re-adding jquery code --- diff --git a/js/app.js b/js/app.js index 8180b88..d6d54a3 100644 --- a/js/app.js +++ b/js/app.js @@ -84,14 +84,14 @@ $(document).ready(function () { $("#carousel_ul").css("left", "-210px"); } - // changing the img tag for category view from a source to having a background to make the sizes uniform -// $(".attachment-shop_catalog").each( function () { -// var img_src = $(this).attr("src"); -// console.debug(img_src); -// $(this).css("height", 175).css("width", 'auto'); -// $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); -// $(this).removeAttr("src"); -//// $(this).attr("src", "").attr("srcset", "" ); -// }); + changing the img tag for category view from a source to having a background to make the sizes uniform + $(".attachment-shop_catalog").each( function () { + var img_src = $(this).attr("src"); + console.debug(img_src); + $(this).css("height", 175).css("width", 'auto'); + $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); + $(this).removeAttr("src"); +// $(this).attr("src", "").attr("srcset", "" ); + }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index f22ac59..65d9114 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -75,14 +75,14 @@ $(document).ready(function () { $("#carousel_ul").css("left", "-210px"); } - // changing the img tag for category view from a source to having a background to make the sizes uniform -// $(".attachment-shop_catalog").each( function () { -// var img_src = $(this).attr("src"); -// console.debug(img_src); -// $(this).css("height", 175).css("width", 'auto'); -// $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); -// $(this).removeAttr("src"); -//// $(this).attr("src", "").attr("srcset", "" ); -// }); + changing the img tag for category view from a source to having a background to make the sizes uniform + $(".attachment-shop_catalog").each( function () { + var img_src = $(this).attr("src"); + console.debug(img_src); + $(this).css("height", 175).css("width", 'auto'); + $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); + $(this).removeAttr("src"); +// $(this).attr("src", "").attr("srcset", "" ); + }); });