Skip to content

Commit

Permalink
Implemented key navigation for Main Stage via custom.js
Browse files Browse the repository at this point in the history
	$(document.documentElement).keyup(function(event) {
		if (event.keyCode == 37) {
			owl.data('owlCarousel').prev();
		} else if (event.keyCode == 39) {
			owl.data('owlCarousel').next();
		}
	});
  • Loading branch information
Andre Bulatov committed Feb 9, 2016
1 parent 2cc8429 commit 88a8a4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wp-content/themes/mag-wp/js/custom.js
Expand Up @@ -81,6 +81,13 @@ jQuery( document ).ready( function( $ ) {
owl.hide();
setTimeout( function(){owl.css({'left' : "0px"}).fadeIn(1000);}, 500);
}
$(document.documentElement).keyup(function(event) {
if (event.keyCode == 37) {
owl.data('owlCarousel').prev();
} else if (event.keyCode == 39) {
owl.data('owlCarousel').next();
}
});



Expand Down

0 comments on commit 88a8a4d

Please sign in to comment.