Difference between revisions of "Team:CCA SanDiego"

Line 12: Line 12:
 
$(".firstHeading").remove();
 
$(".firstHeading").remove();
 
// navigation click actions
 
// navigation click actions
jQuery('.scroll-link').on('click', function(event){
+
$('.scroll-link').on('click', function(event){
 
event.preventDefault();
 
event.preventDefault();
var sectionID = jQuery(this).attr("data-id");
+
var sectionID = $(this).attr("data-id");
 
scrollToID('#' + sectionID, 750);
 
scrollToID('#' + sectionID, 750);
 
});
 
});
 
// scroll to top action
 
// scroll to top action
jQuery('.scroll-top').on('click', function(event) {
+
$('.scroll-top').on('click', function(event) {
 
event.preventDefault();
 
event.preventDefault();
jQuery('html, body').animate({scrollTop:0}, 'slow');
+
$('html, body').animate({scrollTop:0}, 'slow');
 
});
 
});
  

Revision as of 00:38, 4 September 2015