From 29aa6f8ed68dede6b99c8f4ac4787aaac825e526 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 28 Jun 2016 13:08:05 -0400 Subject: [PATCH] re-adding jquery code --- js/app.js | 18 +++++++++--------- js/custom/pageSetup.js | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) 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", "" ); + }); }); -- 2.17.1