Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Hides the .slideshow-container when the .sidebar is open
- document.querySelector('.openbtn').addEventListener('click', function() {
- var slideshow = document.querySelector('.slideshow-container');
- if (slideshow.style.display !== 'none') {
- slideshow.style.display = 'none';
- } else {
- slideshow.style.display = 'block';
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement