Guest User

Untitled

a guest
May 21st, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.04 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template Name: Theatre
  4.  * Description: A Page Template for the Bronystate Mane 6 theatre rooms
  5.  *
  6.  * Includes all the related streams and chat embed, configuration for the chat embed is done by inserting JS into the actual post.
  7.  *
  8.  * @package Bronystate
  9.  * @subpackage Theatre_Template
  10.  * @since Bronystate Alpha
  11.  */
  12. get_header('theatre'); ?>
  13.  
  14. <div id="th-embed-cont">
  15. <div id="th-embed-top">
  16. <p style="text-align: center;" class="noIbar">DRAG</p>
  17. <div id="return" class="thbutton">starting position</div>
  18. <div id="thpopout" class="thbutton">popout</div>
  19. </div>
  20. <div id="th-embed-main">
  21. <script>
  22. streamembed();
  23. </script>
  24. </div>
  25. </div>
  26.  
  27. <script>
  28.   $(document).ready(function() {
  29. $("#th-embed-cont").draggable({ handle: "#th-embed-top" });
  30. });
  31. $("#return").click(function(){
  32. $("#th-embed-cont").css("position", "absolute");
  33.   $( "#th-embed-cont" ).animate( { left: "100px" }, { queue: false, duration: 250 })
  34.      .animate({ top: "100px" }, 250 );
  35. });
  36. $("#thpopout").click(function(){
  37. streampopout();
  38. });
  39. </script>
Add Comment
Please, Sign In to add comment