-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
19 lines (16 loc) · 815 Bytes
/
script.js
File metadata and controls
19 lines (16 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
document.addEventListener('DOMContentLoaded', function () {
// Set the duration for the splash screen in milliseconds (e.g., 3000ms for 3 seconds)
const splashDuration = 3000;
// Wait for the specified duration and then redirect to home.html
setTimeout(function () {
window.location.href = 'https://protecgames.github.io/Antara-Web/home';
}, splashDuration);
// Add event listener for hover effect on the text
const splashScreen = document.querySelector('.splash-screen p');
splashScreen.addEventListener('mouseenter', function () {
splashScreen.style.color = '#ff4500'; // Change text color on hover
});
splashScreen.addEventListener('mouseleave', function () {
splashScreen.style.color = '#333'; // Reset text color when not hovering
});
});