Clean up lines from intersection observer testing.

This commit is contained in:
A McIlwraith 2024-10-18 18:44:04 -04:00
parent c0aa93a3c1
commit f842822915
2 changed files with 0 additions and 9 deletions

View File

@ -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";

View File

@ -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/" +