-<a href=https://github.com/gurusabarish/hugo-profile target=_blank title="Designed and developed by gurusabarish">Hugo Profile</a></div></div></div></div></footer><script src=/bootstrap-5/js/bootstrap.bundle.min.js></script><script>localStorage.getItem("pref-theme")==="dark"?(document.documentElement.classList.add("dark"),document.body.classList.add("dark")):localStorage.getItem("pref-theme")==="light"?(document.body.classList.remove("dark"),document.documentElement.classList.remove("dark")):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(document.documentElement.classList.add("dark"),document.body.classList.add("dark"))</script><script>document.getElementById("theme-toggle").addEventListener("click",()=>{document.body.className.includes("dark")?(document.body.classList.remove("dark"),document.documentElement.classList.remove("dark"),localStorage.setItem("pref-theme","light")):(document.body.classList.add("dark"),document.documentElement.classList.add("dark"),localStorage.setItem("pref-theme","dark"))});var tooltipTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')),tooltipList=tooltipTriggerList.map(function(e){return new bootstrap.Tooltip(e)})</script><script>document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll("#projects .card").forEach(e=>{const t=e.querySelector(".btn-sm");if(t){t.textContent.trim()==="Know more"&&(t.textContent="More");const n=e.querySelector(".card-img-top");if(n&&n.parentElement.tagName!=="A"){const e=document.createElement("a");e.href=t.href,t.target&&(e.target=t.target),e.style.display="flex",e.style.width="100%",e.style.height="100%",e.style.alignItems="center",e.style.justifyContent="center",n.parentNode.insertBefore(e,n),e.appendChild(n)}const s=e.querySelector(".card-title");if(s&&s.parentElement.tagName!=="A"){const e=document.createElement("a");e.href=t.href,t.target&&(e.target=t.target),e.classList.add("text-decoration-none"),e.style.color="inherit",s.parentNode.insertBefore(e,s),e.appendChild(s)}}}),document.querySelectorAll("#projects .card-footer a:not(.btn)").forEach(e=>{e.setAttribute("target","_blank"),e.setAttribute("rel","noopener")});const n=document.querySelectorAll("section[id]"),e=document.querySelectorAll(".navbar-nav .nav-link");(window.location.pathname==="/"||window.location.pathname==="/index.html")&&e.forEach(e=>{try{const t=new URL(e.href);t.hash&&t.pathname===window.location.pathname&&e.setAttribute("data-target-id",t.hash.substring(1))}catch{}});const s={root:null,rootMargin:"-20% 0px -70% 0px",threshold:0},o=t=>{t.forEach(t=>{if(t.isIntersecting){const n=t.target.getAttribute("id"),s=[...e].find(e=>e.getAttribute("data-target-id")===n||e.getAttribute("href").endsWith("#"+n));s&&(e.forEach(e=>e.classList.remove("active")),s.classList.add("active"))}})},i=new IntersectionObserver(o,s);n.forEach(e=>i.observe(e));const t=window.location.pathname.includes("/projects/");t&&e.forEach(e=>{e.getAttribute("aria-label")==="projects"&&e.classList.add("active")}),window.addEventListener("scroll",()=>{window.scrollY<150&&!t&&e.forEach(e=>e.classList.remove("active"))})})</script><section id=search-content class=py-2><div class=container id=search-results></div></section></body></html>
0 commit comments