Skip to content

Instantly share code, notes, and snippets.

@34tth3r1ch
Created August 26, 2012 22:07
Show Gist options
  • Save 34tth3r1ch/3483865 to your computer and use it in GitHub Desktop.
Save 34tth3r1ch/3483865 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function() {
$("#vertScrollable").scrollable({vertical:true,prev:".healthup",next:".healthdown"});
$("#scrollable").scrollable();
var myApi = $("#scrollable").data("scrollable");
$(".nutrition").bind('click', function() {
myApi.seekTo(0);
});
$(".fitnessExercise").bind('click', function() {
myApi.seekTo(1);
});
$(".beautySkincare").bind('click', function() {
myApi.seekTo(2);
});
$(".mindfulness").bind('click', function() {
myApi.seekTo(3);
});
$(".quicktips").bind('click', function() {
myApi.seekTo(4);
});
$(".recipes").bind('click', function() {
myApi.seekTo(5);
});
$(".glossary").bind('click', function() {
myApi.seekTo(6);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment