window.clearInterval(intervalId);
window.scroll(0, to);
}
- }
+ };
intervalId = window.setInterval(jump, 10);
}
}
else {
// Otherwise, the animation is complete
- e.style.cssText = originalStyle // Restore the original style
+ e.style.cssText = originalStyle; // Restore the original style
}
}
}