Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. const magic = $('<div>');
  2.  
  3. magic.css({
  4. position: 'absolute',
  5. top: 0,
  6. left: 0,
  7. width: '400px',
  8. height: '400px'
  9. });
  10.  
  11. magic.on('click', () => {
  12. if($('.sessionVideo video').css('position') === 'fixed') {
  13. $('.sessionVideo video').css({
  14. position: 'static',
  15. zIndex: 0
  16. });
  17. } else {
  18. $('.sessionVideo video').css({
  19. position: 'fixed',
  20. zIndex: 999
  21. });
  22. }
  23.  
  24. $('.fullscreenButton, .desktopNotificationReminderView .dismiss, .roomVisibilityPopup .closeButton').click();
  25. });
  26.  
  27. $('body').append(magic);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement