From f842822915af5a7b6ff5881bb2d238904c13c12c Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 18 Oct 2024 18:44:04 -0400 Subject: [PATCH] Clean up lines from intersection observer testing. --- public/assets/scaffolding-min.js | 5 ----- src/js/core/_core.js | 4 ---- 2 files changed, 9 deletions(-) diff --git a/public/assets/scaffolding-min.js b/public/assets/scaffolding-min.js index 7eda73a..7e64c61 100644 --- a/public/assets/scaffolding-min.js +++ b/public/assets/scaffolding-min.js @@ -206,11 +206,6 @@ module.exports = { var observer = new IntersectionObserver(function (articles) { articles.forEach(function (article) { var a = article.target; - - // console.log("observing: ", { id: a.getAttribute("id"), intersecting: a.isIntersecting } ) - // if (article.intersectionRatio > 0) { - // console.log("Is interesecting: ", { id: article.target.getAttribute("id"), intersecting: article.isIntersecting, ratio: article.intersectionRatio } ) - if (article.isIntersecting == true) { var path = a.getAttribute("data-path"); path = "patterns/" + (a.getAttribute("data-core") == "true" ? "core/" + path.substring(path.lastIndexOf("/") + 1) : a.getAttribute("data-path")) + "/index.html"; diff --git a/src/js/core/_core.js b/src/js/core/_core.js index bc62a3c..dec8761 100644 --- a/src/js/core/_core.js +++ b/src/js/core/_core.js @@ -210,10 +210,6 @@ module.exports = { articles.forEach(article => { let a = article.target; - // console.log("observing: ", { id: a.getAttribute("id"), intersecting: a.isIntersecting } ) - // if (article.intersectionRatio > 0) { - // console.log("Is interesecting: ", { id: article.target.getAttribute("id"), intersecting: article.isIntersecting, ratio: article.intersectionRatio } ) - if (article.isIntersecting == true) { let path = a.getAttribute("data-path"); path = "patterns/" +