96 lines
3.4 KiB
HTML
96 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Curriculum Vitae Portal</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: Arial, sans-serif;
|
|
background: url('background.jpg') no-repeat center center fixed;
|
|
background-size: cover;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
.container {
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
}
|
|
input[type="text"] {
|
|
padding: 10px;
|
|
font-size: 20px;
|
|
border-radius: 5px;
|
|
border: none;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
button[type="submit"] {
|
|
padding: 8px 16px;
|
|
font-size: 16px; /* 80% of the input text font size */
|
|
background-color: #888888; /* Adjust this color to match the palette */
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
button[type="submit"]:hover {
|
|
background-color: #aaaaaa; /* Slightly darker shade for hover effect */
|
|
}
|
|
#countdown {
|
|
font-size: 24px;
|
|
margin-top: 20px;
|
|
}
|
|
#link {
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Please, Enter the Version: </h1>
|
|
<form id="versionForm">
|
|
<input type="text" id="versionInput" placeholder="Enter Version" required pattern="[a-zA-Z0-9_-]+" />
|
|
<button type="submit">Access</button>
|
|
</form>
|
|
<div id="message"></div>
|
|
<div id="countdown"></div>
|
|
<div id="link"></div>
|
|
</div>
|
|
|
|
<script>
|
|
document.getElementById('versionForm').addEventListener('submit', function(event) {
|
|
event.preventDefault();
|
|
const version = document.getElementById('versionInput').value;
|
|
const newUrl = `https://vitea.andrewmain.cloud/andrew/${version}`;
|
|
document.getElementById('message').textContent = "Welcome, sending you the requested document.";
|
|
document.getElementById('link').innerHTML = `Please, click the link to access directly: <a href="${newUrl}">${newUrl}</a>`;
|
|
|
|
let countdown = 5;
|
|
const countdownElement = document.getElementById('countdown');
|
|
countdownElement.textContent = `Redirecting in ${countdown} seconds...`;
|
|
|
|
const interval = setInterval(() => {
|
|
countdown--;
|
|
countdownElement.textContent = `Redirecting in ${countdown} seconds...`;
|
|
if (countdown === 0) {
|
|
clearInterval(interval);
|
|
countdownElement.textContent = '';
|
|
document.querySelector('.container').style.transition = 'opacity 1s';
|
|
document.querySelector('.container').style.opacity = '0';
|
|
setTimeout(() => {
|
|
window.location.href = newUrl;
|
|
}, 1000);
|
|
}
|
|
}, 1000);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |