Sha256: bc9dd0a1473708b33ea4816afd88b8b41c4b269d4a477dc9e24fe467a426d709
Contents?: true
Size: 729 Bytes
Versions: 65
Compression:
Stored size: 729 Bytes
Contents
$(() => { const checkProgressPosition = () => { let progressFix = document.querySelector("[data-progressbox-fixed]"), progressRef = document.querySelector("[data-progress-reference]"), progressVisibleClass = "is-progressbox-visible"; if (!progressRef) { return; } let progressPosition = progressRef.getBoundingClientRect().bottom; if (progressPosition > 0) { progressFix.classList.remove(progressVisibleClass); } else { progressFix.classList.add(progressVisibleClass); } } window.addEventListener("scroll", checkProgressPosition); window.DecidimBudgets = window.DecidimBudgets || {}; window.DecidimBudgets.checkProgressPosition = checkProgressPosition; });
Version data entries
65 entries across 65 versions & 2 rubygems