Monoxide

tumblr video cropper script

Apr 26th, 2018
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.38 KB | None | 0 0
  1. <!-- jquery -->
  2. <script src="//code.jquery.com/jquery-2.2.4.min.js"></script>
  3.  
  4. <!-- removes empty space under videos -->
  5. <script type="text/javascript" charset="utf-8">
  6.     $(document).ready(function() {
  7.         $('.tumblr_video_container').each(function() {
  8.             $(this).attr('style', 'max-height:540px');
  9.             $('.tumblr_video_iframe').attr('style', 'max-height:540px');
  10.         });
  11.     });
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment