From a29fcffc2e1d640dd02e29f063ab885dfc747d13 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Sat, 8 Apr 2023 00:54:39 +0100 Subject: [PATCH] refresh broken link fixed --- public/assets/js/custom.js | 2 +- src/index.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/assets/js/custom.js b/public/assets/js/custom.js index d0e7beb..1bb0607 100644 --- a/public/assets/js/custom.js +++ b/public/assets/js/custom.js @@ -58,7 +58,7 @@ $target = jQuery(target); $('html, body').stop().animate({ - 'scrollTop': $target.offset().top - 60 // - 200px (nav-height) + 'scrollTop': $target.offset()?.top - 60 // - 200px (nav-height) }, 'slow', 'easeInSine', function () { window.location.hash = '1' + target; }); diff --git a/src/index.css b/src/index.css index ec2585e..fe00fcc 100644 --- a/src/index.css +++ b/src/index.css @@ -1,3 +1,6 @@ +html{ + scroll-behavior: smooth; +} body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',