-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (29 loc) · 986 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href= "intro/intro.css">
</head>
<body>
<div class="logo-container">
<h1 id="page-logo">Real Madrid Blog ...</h1>
</div>
<script>
// Function to redirect to main page
function redirectToMain() {
window.location.href = 'main.html'; // Redirect to the main page
}
// Add event listener for keydown event
document.addEventListener('keydown', function(event) {
// Check if the pressed key is "Enter"
if (event.key === 'Enter') {
redirectToMain(); // Call the redirect function
}
});
// Optional: Automatically redirect after 5 seconds
setTimeout(redirectToMain, 5000); // Uncomment if you want auto-redirect
</script>
</body>
</html>