1(function (window) { 2 "use strict"; 3 4 var EFFECT_NAME = "community-footer-reveal"; 5 var REVEALED_CLASS = "is-revealed"; 6 var STAGGER_STEP_MS = 80; 7 var CONTENT_STAGGER_START_MS = 200; 8 9 function assignContentDelays(block) { 10 var items = block.querySelectorAll("[data-ndt-stagger-item]"); 11 items.forEach(function (item, index) { 12 item.style.setProperty( 13 "--stagger-up-delay", 14 CONTENT_STAGGER_START_MS + index * STAGGER_STEP_MS + "ms" 15 ); 16 }); 17 } 18 19 function reveal(block) { 20 assignContentDelays(block); 21 block.classList.add(REVEALED_CLASS); 22 } 23 24 function initCommunityFooterReveal(motion) { 25 var blocks = document.querySelectorAll('[data-ndt-effect="' + EFFECT_NAME + '"]'); 26 if (!blocks.length) { 27 return; 28 } 29 30 if (motion.prefersReducedMotion()) { 31 blocks.forEach(reveal); 32 return; 33 } 34 35 blocks.forEach(function (block) { 36 motion.observeWhenVisible(block, reveal, { 37 threshold: 0.2, 38 rootMargin: "0px 0px -5% 0px", 39 }); 40 }); 41 } 42 43 window.NDTEffects = window.NDTEffects || {}; 44 window.NDTEffects[EFFECT_NAME] = initCommunityFooterReveal; 45})(window);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.