plumwd

Twitch Embed Suite Show/Hide Button

Aug 9th, 2013
306
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //the button code
  2. <button id="toggleChat">Show/Hide Chat</button>
  3.  
  4. //the toggle code
  5. <script type="text/javascript">
  6.   $(document).ready(function() {
  7.     $("#toggleChat").click(function() {
  8.       $("#chat").toggle("slow");
  9.      });
  10.   });
  11. </script>
RAW Paste Data