app/assets/javascripts/smooth-scroll.js
Function smoothScroll
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var smoothScroll = function (anchor, duration) {
// Calculate how far and how fast to scroll
var startLocation = window.pageYOffset;
var endLocation = anchor.offsetTop;