summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js4
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);