Skip to content

Commit

Permalink
Remove script de ajuste de caminhos de imagens no HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
r90ur7 committed Jan 30, 2025
1 parent 3aabb89 commit f627b2d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,4 @@ <h1 class="black">Portifólio</h1>
</div>
</div>
</body>
<!-- <script>
document.addEventListener("DOMContentLoaded", function () {
const basePath = window.location.pathname.includes('/PaginaPortifolioDigital-Exemplo/') ? '/PaginaPortifolioDigital-Exemplo/' : '/';
document.querySelectorAll("img").forEach(img => {
const src = img.getAttribute("src");
if (!src.startsWith("http") && !src.startsWith(basePath)) {
img.src = basePath + src;
}
});
});
</script> -->

</html>

0 comments on commit f627b2d

Please sign in to comment.