daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var COACHBOX = document.querySelectorAll (".enlarge");
  2. var BUTTON = document.querySelectorAll (".coach-button");
  3.  
  4. var OVERLAY = document.querySelector (".coach-container");
  5. var LIGHTWINDOW = document.querySelector (".lightwindow");
  6. var BOX = document.querySelector (".coach-box")
  7.  
  8. function coachBubble () {
  9.   OVERLAY.classList.toggle ("-enable");
  10.   LIGHTWINDOW.classList.toggle ("-enable");
  11.   BOX.classList.toggle ("-enable");
  12. }
  13.  
  14. for (var i=0; i<BUTTON.length; i++) {
  15.   BUTTON[i].addEventListener('click',coachBubble,false);
  16. }
  17. for (var i=0; i<COACHBOX.length; i++) {
  18.   COACHBOX[i].addEventListener('click',coachBubble,false);
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top