Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanlao committed Apr 30, 2024
1 parent f03bb52 commit 529b829
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
29 changes: 29 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>React Router</title>
<!-- Deployment for SPA -->
<!-- https://github.com/ErickKS/vite-react-router/tree/main -->
<script type="text/javascript">
var pathSegmentsToKeep = 1;
var l = window.location;
l.replace(
l.protocol +
"//" +
l.hostname +
(l.port ? ":" + l.port : "") +
l.pathname
.split("/")
.slice(0, 1 + pathSegmentsToKeep)
.join("/") +
"/?/" +
l.pathname.slice(1).split("/").slice(pathSegmentsToKeep).join("/").replace(/&/g, "~and~") +
(l.search ? "&" + l.search.slice(1).replace(/&/g, "~and~") : "") +
l.hash
);
</script>
</head>
<body>
</body>
</html>
22 changes: 19 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,27 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="./assets/question-BlW64q62.svg" />
<link rel="icon" href="/but-how-do-I/assets/question-BlW64q62.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BUT HOW DO I</title>
<script type="module" crossorigin src="./assets/index-Bvkze2UX.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-B5Ky_8AV.css">
<!-- Deployment for SPA -->
<!-- https://github.com/ErickKS/vite-react-router/tree/main -->
<script type="text/javascript">
(function (l) {
if (l.search[1] === "/") {
var decoded = l.search
.slice(1)
.split("&")
.map(function (s) {
return s.replace(/~and~/g, "&");
})
.join("?");
window.history.replaceState(null, null, l.pathname.slice(0, -1) + decoded + l.hash);
}
})(window.location);
</script>
<script type="module" crossorigin src="/but-how-do-I/assets/index-Bvkze2UX.js"></script>
<link rel="stylesheet" crossorigin href="/but-how-do-I/assets/index-B5Ky_8AV.css">
</head>
<body>
<div id="root"></div>
Expand Down

0 comments on commit 529b829

Please sign in to comment.