Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function notify(message) {
- let notifyButtonRef = document.getElementById('content').querySelector('button');
- let notificationDivRev = document.getElementById('notification');
- notificationDivRev.textContent = message;
- notifyButtonRef.addEventListener('click', onclick);
- function onclick(event) {
- notificationDivRev.style.display === 'none' ? notificationDivRev.style.display = 'inline' : notificationDivRev.style.display = 'none';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement