From f58879c1dc284a60bce4199ccf05448198498ff4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 10 Mar 2021 12:10:11 +0300 Subject: small stuck header fixes in grid mode --- js/Headlines.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/Headlines.js b/js/Headlines.js index fce371904..028f277ff 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -20,10 +20,10 @@ const Headlines = { const header = entry.target.nextElementSibling; if (entry.intersectionRatio == 0) { - header.setAttribute("stuck", "1"); + header.setAttribute("data-is-stuck", "true"); } else if (entry.intersectionRatio == 1) { - header.removeAttribute("stuck"); + header.removeAttribute("data-is-stuck"); } //console.log(entry.target, header, entry.intersectionRatio); -- cgit v1.2.3