Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function notify(message) {
- let $notif = document.getElementById('notification');
- $notif.textContent = message;
- let $button = document.getElementsByTagName('button');
- $notif.style.display = 'none'
- $button.addEventListener('click', function(){
- $notif.setTimeout(() => {
- $notif.style.display = 'block'
- }, 2000);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement