Widget:JumpToSegment

From Bodhicitta

<script> if ('scrollRestoration' in history) { history.scrollRestoration = 'manual'; } window.addEventListener('load', function() { var hash = decodeURIComponent(window.location.hash.slice(1)); if (!hash) return; function tryScroll(attemptsLeft) { var el = document.getElementById(hash); if (el) { el.scrollIntoView({behavior: 'instant', block: 'start'}); return; } if (attemptsLeft > 0) { setTimeout(function() { tryScroll(attemptsLeft - 1); }, 200); } } tryScroll(10); }); </script>