Clean up lines from intersection observer testing.
This commit is contained in:
parent
c0aa93a3c1
commit
f842822915
5
public/assets/scaffolding-min.js
vendored
5
public/assets/scaffolding-min.js
vendored
@ -206,11 +206,6 @@ module.exports = {
|
|||||||
var observer = new IntersectionObserver(function (articles) {
|
var observer = new IntersectionObserver(function (articles) {
|
||||||
articles.forEach(function (article) {
|
articles.forEach(function (article) {
|
||||||
var a = article.target;
|
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) {
|
if (article.isIntersecting == true) {
|
||||||
var path = a.getAttribute("data-path");
|
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";
|
path = "patterns/" + (a.getAttribute("data-core") == "true" ? "core/" + path.substring(path.lastIndexOf("/") + 1) : a.getAttribute("data-path")) + "/index.html";
|
||||||
|
@ -210,10 +210,6 @@ module.exports = {
|
|||||||
articles.forEach(article => {
|
articles.forEach(article => {
|
||||||
let a = article.target;
|
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) {
|
if (article.isIntersecting == true) {
|
||||||
let path = a.getAttribute("data-path");
|
let path = a.getAttribute("data-path");
|
||||||
path = "patterns/" +
|
path = "patterns/" +
|
||||||
|
Loading…
Reference in New Issue
Block a user