Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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