Create home.js
Browse files- static/js/home.js +12 -0
static/js/home.js
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// static/js/home.js
|
2 |
+
document.addEventListener('DOMContentLoaded', function () {
|
3 |
+
console.log('Homepage loaded');
|
4 |
+
const countdown = document.querySelector('.countdown');
|
5 |
+
if (countdown) {
|
6 |
+
countdown.style.transition = 'opacity 1s';
|
7 |
+
countdown.style.opacity = '0';
|
8 |
+
setTimeout(() => {
|
9 |
+
countdown.style.opacity = '1';
|
10 |
+
}, 100);
|
11 |
+
}
|
12 |
+
});
|