Skip to content

Instantly share code, notes, and snippets.

@vgrish
Created May 4, 2017 10:18
Show Gist options
  • Save vgrish/39369deff66d94576da47d9b792fe65d to your computer and use it in GitHub Desktop.
Save vgrish/39369deff66d94576da47d9b792fe65d to your computer and use it in GitHub Desktop.
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