neowolves/index.html
2024-01-16 12:09:51 +03:00

75 lines
No EOL
2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hacker Token Verifier</title>
<script src="script.js"></script>
<style> body {
background-color: #000;
color: #0f0;
font-family: 'Courier New', monospace;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
text-align: center;
}
button, input {
background-color: #000;
color: #0f0;
border: 2px solid #0f0;
padding: 5px 10px;
font-size: 16px;
cursor: pointer;
}
input[type="text"] {
margin-top: 10px;
width: 300px;
}
.message {
margin-top: 10px;
} </style>
</head>
<body>
<div class="container">
<button id="login">Login via oauth</button>
<div class="message"></div>
<input type="text" id="input-token" placeholder="Enter token">
<button id="verify-token">Verify Token</button>
</div>
</body>
<script>
const generateTokenButton = document.getElementById('login');
const inputToken = document.getElementById('input-token');
const verifyTokenButton = document.getElementById('verify-token');
const message = document.querySelector('.message');
generateTokenButton.addEventListener('click', () => {
// ALARM ТУТ ЗАХАРДКОЖЕНОООООО
const token = '12345';
navigator.clipboard.writeText(token);
message.textContent = 'Token copied to clipboard: ' + token;
});
verifyTokenButton.addEventListener('click', () => {
const token = inputToken.value;
// ALARM ТУТ ЗАХАРДКОЖЕНОООООО
const correctToken = '12345';
if (token === correctToken) {
message.textContent = 'Token is correct';
} else {
message.textContent = 'Token is incorrect';
}
});
</script>