Skip to content
Snippets Groups Projects

Home page

Merged Vishwaa Kannan requested to merge Home-Page into main
4 files
+ 167
8
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 10
2
// overview.js
// Smooth scrolling for overview links
document.addEventListener("DOMContentLoaded", function() {
document.querySelectorAll('#overview a').forEach(function(anchor) {
@@ -11,3 +9,13 @@ document.addEventListener("DOMContentLoaded", function() {
});
});
});
// Add smooth scrolling
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
Loading