-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (108 loc) · 2.84 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<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 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #1e90ff, #ff7f50);
color: white;
}
.container {
text-align: center;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 30px;
width: 300px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.container h1 {
font-size: 2rem;
margin-bottom: 20px;
}
.container p {
font-size: 1rem;
margin-bottom: 20px;
opacity: 0.8;
}
.input-group {
margin-bottom: 20px;
}
.input-group input {
width: 100%;
padding: 10px;
border: none;
border-radius: 5px;
font-size: 1rem;
}
.button {
display: block;
width: 100%;
padding: 10px;
font-size: 1rem;
font-weight: bold;
border: none;
border-radius: 5px;
background: #ff7f50;
color: white;
cursor: pointer;
transition: background 0.3s;
}
.button:hover {
background: #e5673d;
}
.error {
color: #ff4d4d;
margin-top: 10px;
font-size: 0.9rem;
}
</style>
</head>
<body>
<div class="container">
<h1>CODE</h1>
<p>________</p>
<div class="input-group">
<input type="text" id="codeInput" placeholder="Enter code" />
</div>
<button class="button" onclick="redirect()">Redirect</button>
<div id="errorMessage" class="error"></div>
</div>
<script>
function redirect() {
const code = document.getElementById("codeInput").value.trim();
const errorMessage = document.getElementById("errorMessage");
// Define redirection rules
const redirectionMap = {
"PicGallery": "https://ab80x08.github.io/a/p.html",
"Logo": "https://ab80x08.github.io/a/Logo.png",
"Android15": "https://ab80x08.github.io/a/android15.html",
"Female": "https://ab80x08.github.io/f",
"ukgacc": "tmpgag.html",
"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 = "Code not found. Please try again.";
}
}
</script>
</body>
</html>