Skip to content

Commit

Permalink
added javascirpt at top and change p from portoliio word to P
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharthmarko committed Nov 25, 2023
1 parent df7ccae commit 7919b77
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
</head>

<body>
<script>
const currentUrl = window.location.href;
const baseUrl = currentUrl.substring(0, currentUrl.lastIndexOf("/"));
const relativeUrl = "/Portfolio/index.html";
window.location.href = baseUrl + relativeUrl;
</script>
<div class="container">
<div class="floating-stack">
<ol>
Expand Down Expand Up @@ -131,13 +137,7 @@
</ol>
</div>
</div>
<script>
const currentUrl = window.location.href;
const baseUrl = currentUrl.substring(0, currentUrl.lastIndexOf("/"));
const relativeUrl = "/portfolio/index.html";
window.location.href = baseUrl + relativeUrl;

</script>

</body>

</html>

0 comments on commit 7919b77

Please sign in to comment.