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