Skip to content

Commit 76334e8

Browse files
committed
edit readme
1 parent 0050f0d commit 76334e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
<script>
2+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
3+
anchor.addEventListener('click', function (e) {
4+
e.preventDefault();
5+
document.querySelector(this.getAttribute('href')).scrollIntoView({
6+
behavior: 'smooth'
7+
});
8+
});
9+
});
10+
</script>
11+
112
# DATA STRUCTURES & ALGORITHMS
213

314
### `Resources and Solutions` `^_^`

0 commit comments

Comments
 (0)