🚧 WIP Section projets

This commit is contained in:
Florian Sylvain
2022-01-30 03:55:03 +01:00
parent 90578a154e
commit e8bf20b741
18 changed files with 202 additions and 16 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ function updateUrl() {
contentElems.forEach(function (elem) {
const pos = elem.getBoundingClientRect().top;
if (pos <= 0) {
if (pos <= 50) {
if (max === null || pos > max) {
max = pos;
index = Array.from(contentElems).indexOf(elem);