SHARE
TWEET

js

a guest Dec 3rd, 2019 80 in 8 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.     function toggleMenu() {
  3.         let sidebar_menu = document.getElementById("sidebar-phone");
  4.         if (sidebar_menu.style.display === "block") {
  5.             sidebar_menu.style.display = "none";
  6.         } else {
  7.             sidebar_menu.style.display = "block";
  8.         }
  9.     }
  10.  
  11.     function toggleMyAccountOptions() {
  12.         let my_account = document.getElementById("my-account-container");
  13.         if (my_account.style.display === "flex") {
  14.             my_account.style.display = "none";
  15.         } else {
  16.             my_account.style.display = "flex";
  17.         }
  18.     }
  19.  
  20.     function openModalAddPunches() {
  21.         let add_punches_modal = document.getElementById("add-punches-modal");
  22.         if (add_punches_modal.style.display === "none") {
  23.             add_punches_modal.style.display = "block";
  24.         }
  25.     }
  26.  
  27.     function openModalGiftCardPoints() {
  28.         let gift_card_point_modal = document.getElementById("gift-card-point-modal");
  29.         if (gift_card_point_modal.style.display === "none") {
  30.             gift_card_point_modal.style.display = "block";
  31.         }
  32.     }
  33. </script>
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