Created
May 25, 2014 23:40
-
-
Save brycedorn/69d7f5d423338f743901 to your computer and use it in GitHub Desktop.
j/k scrolling on your blog
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
<script src="http://code.jquery.com/jquery-1.4.min.js"></script> | |
<script src="http://lilbtn.yjl.im/js/jquery/jquery.jknav.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$.jknav.init({ | |
up: 'k', | |
down: 'j', | |
reevaluate: true | |
}); | |
$('.post').jknav().addClass('jknav'); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment