Difference between revisions of "Team:CCA SanDiego"

Line 14: Line 14:
 
mainNav.removeClass("open");
 
mainNav.removeClass("open");
 
}
 
}
}
 
if (typeof console === "undefined") {
 
    console = {
 
        log: function() { }
 
    };
 
 
}
 
}
 +
  
 
$.ready(function(){
 
$.ready(function(){
 
$(".firstHeading").remove()
 
$(".firstHeading").remove()
// navigation click actions
+
// navigation click actions
jQuery('.scroll-link').on('click', function(event){
+
jQuery('.scroll-link').on('click', function(event){
event.preventDefault();
+
event.preventDefault();
var sectionID = jQuery(this).attr("data-id");
+
var sectionID = jQuery(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) {
+
jQuery('.scroll-top').on('click', function(event) {
event.preventDefault();
+
event.preventDefault();
jQuery('html, body').animate({scrollTop:0}, 'slow');
+
jQuery('html, body').animate({scrollTop:0}, 'slow');
});
+
});
 
}
 
}
 
);
 
);

Revision as of 00:35, 4 September 2015