Created
March 22, 2022 14:32
-
-
Save zeshanshani/fcb77251d43f3969b1d5b9e30239b153 to your computer and use it in GitHub Desktop.
This file contains 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($) { | |
$(document).on('keyup', function(e) { | |
if ( $('.lightbox').is(':visible') ) { | |
if ( e.which === 37 ) { | |
$('.gallery_prev').trigger('click'); | |
} else if ( e.which === 39 ) { | |
$('.gallery_next').trigger('click'); | |
} | |
} | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment