re-adding jquery code
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 28 Jun 2016 17:08:05 +0000 (13:08 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 28 Jun 2016 17:08:05 +0000 (13:08 -0400)
js/app.js
js/custom/pageSetup.js

index 8180b88..d6d54a3 100644 (file)
--- 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", "" );
+    });
     
 });
index f22ac59..65d9114 100644 (file)
@@ -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", "" );
+    });
     
 });