-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 52f7ec2
Showing
6 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Redirecting...</title> | ||
<script> | ||
// Get the path from the URL | ||
const path = window.location.pathname.split('/').filter(Boolean); | ||
const repo = path[0]; | ||
|
||
// Check if we're already in an infinite loop | ||
if (path.filter(p => p === 'index.html').length > 1) { | ||
document.body.innerHTML = '<p>Error: Path not found</p>'; | ||
} else if (path.length === 1) { | ||
// At repo root, redirect to main | ||
window.location.href = `/${repo}/main/`; | ||
} else { | ||
// Try the branch preview once | ||
const branchPath = path[1]; | ||
window.location.href = `/${repo}/${branchPath}/index.html`; | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<p>Redirecting to preview...</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Redirecting...</title> | ||
<script> | ||
// Get the path from the URL | ||
const path = window.location.pathname.split('/').filter(Boolean); | ||
const repo = path[0]; | ||
|
||
// Check if we're already in an infinite loop | ||
if (path.filter(p => p === 'index.html').length > 1) { | ||
document.body.innerHTML = '<p>Error: Path not found</p>'; | ||
} else if (path.length === 1) { | ||
// At repo root, redirect to main | ||
window.location.href = `/${repo}/main/`; | ||
} else { | ||
// Try the branch preview once | ||
const branchPath = path[1]; | ||
window.location.href = `/${repo}/${branchPath}/index.html`; | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<p>Redirecting to preview...</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title>Eggstractor Demo</title> | ||
<!-- Link to our final compiled CSS --> | ||
<link rel="stylesheet" href="./prod.css" /> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="custom-input"> | ||
<label for="demo-input">Label Text</label> | ||
<input | ||
type="text" | ||
id="demo-input" | ||
class="input-field" | ||
placeholder="Enter text..." | ||
> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.