artydev commited on
Commit
23c44d0
·
verified ·
1 Parent(s): 6c97381

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +7 -5
index.html CHANGED
@@ -17,11 +17,13 @@
17
  </p>
18
  </div>
19
  <script>
20
- (function () {
21
- const header = document.querySelector("header");
22
- header.style.display = "none";
23
- alert("Hiding")
24
- })();
 
 
25
 
26
  </script>
27
  </body>
 
17
  </p>
18
  </div>
19
  <script>
20
+ function hideHeader () {
21
+ const header = document.querySelector("header");
22
+ header.style.display = "none";
23
+ alert("Hiding")
24
+ }
25
+
26
+ setTimeout(hideHeader, 2000)
27
 
28
  </script>
29
  </body>