Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
Signed-off-by: 4lex8lue <[email protected]>
  • Loading branch information
ab80x08 authored Dec 31, 2024
1 parent e112485 commit 7f7373d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="manifest" href="https://ab80x08.github.io/a/manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RedirectorPage</title>
<link rel="icon" type="image/x-icon" href="https://ab80x08.github.io/a/ab80x08.png">
<style>
/* Basic Reset */
* {
Expand Down Expand Up @@ -99,18 +100,20 @@ <h1>CODE</h1>

// Define redirection rules
const redirectionMap = {
"pgal": "https://ab80x08.github.io/a/p.html",
"logo": "https://ab80x08.github.io/a/Logo.png",
"an15": "https://ab80x08.github.io/a/android15.html",
"reld": "https://ab80x08.github.io/a/ist.html"
"PicGallery": "https://ab80x08.github.io/a/p.html",
"Logo": "https://ab80x08.github.io/a/Logo.png",
"Android15": "https://ab80x08.github.io/a/android15.html",
"RawCam": "https://ab80x08.github.io/RawCam",

"Reload": "https://ab80x08.github.io/a/ist.html"
};

if (code in redirectionMap) {
// Redirect to the corresponding URL
window.location.href = redirectionMap[code];
} else {
// Show error message if the code is invalid
errorMessage.textContent = "Invalid code. Please try again.";
errorMessage.textContent = "Code not found. Please try again.";
}
}
</script>
Expand Down

0 comments on commit 7f7373d

Please sign in to comment.