ayush2917 commited on
Commit
8386b92
·
verified ·
1 Parent(s): b2e5af0

Create home.js

Browse files
Files changed (1) hide show
  1. 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
+ });