|
@@ -239,4 +239,25 @@
|
|
"left-of-fold" : function(a) { return !$.rightoffold(a, {threshold : 0}); }
|
|
"left-of-fold" : function(a) { return !$.rightoffold(a, {threshold : 0}); }
|
|
});
|
|
});
|
|
|
|
|
|
-})(jQuery, window, document);
|
|
|
|
|
|
+})(jQuery, window, document);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+$(function() {
|
|
|
|
+ $("img.lazy").lazyload();
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+$('.imageHoverLoad').mouseenter(function() {
|
|
|
|
+ var elem = $(this);
|
|
|
|
+ elem.fadeOut(400).promise().done(function() {
|
|
|
|
+ elem.attr('src', elem.attr('data-hover')).fadeIn(400);
|
|
|
|
+ });
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+$('.imageHoverLoad').mouseleave(function() {
|
|
|
|
+ var elem = $(this);
|
|
|
|
+ elem.fadeOut(400).promise().done(function() {
|
|
|
|
+ elem.attr('src', elem.attr('data-original')).fadeIn(400);
|
|
|
|
+ });
|
|
|
|
+});
|