diff options
author | Andrew Dolgov <[email protected]> | 2021-03-10 12:10:11 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-10 12:10:11 +0300 |
commit | f58879c1dc284a60bce4199ccf05448198498ff4 (patch) | |
tree | f62cb276b7bb26416f7736e83d855effe5b79008 /js | |
parent | bdc72e5b6332bb395db4419ea6e9f1550ec331ab (diff) |
small stuck header fixes in grid mode
Diffstat (limited to 'js')
-rwxr-xr-x | js/Headlines.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); |