//Coded by Chandralekha Venkatesh Perumal
document.write(`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
text-align: center;
color: white;
background-image: url('https://ancientbrain.com/uploads/chandralekha/Wallpaper.jpeg'); /* Replace with your background image URL */
background-size: cover;
background-position: center;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
h1 {
margin-bottom: 20px;
font-size: 2em;
}
input {
width: 80%;
padding: 10px;
font-size: 1em;
margin-bottom: 20px;
border: none;
border-radius: 5px;
outline: none;
}
button {
padding: 10px 20px;
font-size: 1em;
color: white;
background-color: #007BFF;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s, transform 0.2s;
}
button:hover {
background-color: #0056b3;
transform: scale(1.05);
}
</style>
</head>
<body>
<div class="container">
<h1>Enter Your API Key For Hand Gesture Detection </h1>
<input type="text" id="apiKeyInput" placeholder="Enter API Key" />
<br>
<button onclick="validateAPIKey()">Submit</button>
</div>
<script>
// Function to validate the API key and redirect
function validateAPIKey() {
const apiKey = document.getElementById('apiKeyInput').value;
// Replace this with your actual API key for validation
const validApiKey = "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";
if (apiKey === validApiKey) {
// Redirect to the target webpage
window.location.href = "https://run.ancientbrain.com/run.php?world=9176663466&userid=chandralekha&dataticket=24160603559806134524051154925777"; // Replace with your target URL
} else {
alert("Invalid API Key. Please try again.");
}
}
</script>
</body>
</html>`)