Advertisement
orksnork

Untitled

May 16th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //RSM - video edits  
  2.  
  3.   var video = new RegExp('http(?:s)?.+?(gifv$|webm$|ogg$|mp4$)');
  4.  
  5. // End of video var
  6.  
  7. // Attempt to replicate cham's code for video tag
  8.  
  9.      tmp = tmp.replace(video, function(){
  10.         return (
  11.           responsiveEmbed('<video autoplay="" muted="" style="max-height:100%;max-width:100%;" loop="" ><source type="video/webm" src="' + tmp + '" ></video>');
  12.       });
  13.  
  14.       if (tmp !== this.textContent && $('#toggle-html').data('active')) {
  15.         $(this).replaceWith(tmp);
  16.       }
  17.  
  18. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement