Difference between revisions of "Team:CCA SanDiego"
Juliawisnia (Talk | contribs) |
Juliawisnia (Talk | contribs) |
||
Line 14: | Line 14: | ||
mainNav.removeClass("open"); | mainNav.removeClass("open"); | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
+ | |||
$.ready(function(){ | $.ready(function(){ | ||
$(".firstHeading").remove() | $(".firstHeading").remove() | ||
− | + | // navigation click actions | |
− | + | jQuery('.scroll-link').on('click', function(event){ | |
− | + | event.preventDefault(); | |
− | + | var sectionID = jQuery(this).attr("data-id"); | |
− | + | scrollToID('#' + sectionID, 750); | |
− | + | }); | |
− | + | // scroll to top action | |
− | + | jQuery('.scroll-top').on('click', function(event) { | |
− | + | event.preventDefault(); | |
− | + | jQuery('html, body').animate({scrollTop:0}, 'slow'); | |
− | + | }); | |
} | } | ||
); | ); |
Revision as of 00:35, 4 September 2015