Toulouse

×
function scrollToSnippet(){ let hash = window.location.hash; if(!hash) return; function tryScroll(){ let el = document.querySelector(hash); if(el){ el.scrollIntoView({ behavior:"smooth", block:"start" }); return true; } return false; } if(tryScroll()) return; let attempts = 0; let interval = setInterval(function(){ attempts++; loadPosts(); if(tryScroll() || attempts > 10){ clearInterval(interval); } },800); } window.addEventListener("load",scrollToSnippet);