Created
May 4, 2017 10:18
-
-
Save vgrish/39369deff66d94576da47d9b792fe65d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function ($) { | |
if (typeof $.fn.quickview.methodActions == 'object') { | |
$.fn.quickview.methodActions = $.extend(true, | |
$.fn.quickview.methodActions, | |
{show: {'custom.callbacks': function () { | |
$(".slides").responsiveSlides({ | |
auto: true, | |
pause:true, | |
pager: false, | |
nav: true, | |
speed: 500, | |
namespace: "callbacks", | |
before: function () { | |
$('.events').append("<li>before event fired.</li>"); | |
}, | |
after: function () { | |
$('.events').append("<li>after event fired.</li>"); | |
} | |
}); | |
$('a.zoom').loupe({ | |
width: 350, // width of magnifier | |
height: 350, // height of magnifier | |
loupe: 'loupe' // css class for magnifier | |
}); | |
$('.loupe').hover( | |
function(){ $(".slides").trigger('mouseenter');}, | |
function(){ $(".slides").trigger('mouseout');} | |
); | |
}}} | |
); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment