Advertisement
monstrasitix

Timeout thingy

May 9th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const timeout = (link) => {
  2.     link.classList.remove('hide');
  3.     link.classList.add('show');
  4. };
  5.  
  6. const main = () => {
  7.     const link = document.getElementById('myLink');
  8.     setTimeout(timeout, 5000, link );
  9. };
  10.  
  11. document.addEventListener('DOMContentLoaded', main, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement