script.js for smooth scrolling directional nav thing…

$(function() {

//download link to stellar
$(window).stellar();

$(‘nav a’).click(function(){

link_target = $(this).attr(‘link’);

$(window).scrollTo(link_target, 1000);

});

$(‘.fadeIn’).hide();

$(‘.page’).waypoint(function(direction) {

curr_page_no = $(this).attr(‘page’);
if(direction == ‘up’) curr_page_no = curr_page_no – 1;

$(‘nav a’).removeClass(‘selected’);

$(‘.page’+curr_page_no+’_link’).addClass(‘selected’);

});

});

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s