Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //RSM - video edits
- var video = new RegExp('http(?:s)?.+?(gifv$|webm$|ogg$|mp4$)');
- // End of video var
- // Attempt to replicate cham's code for video tag
- tmp = tmp.replace(video, function(){
- return (
- responsiveEmbed('<video autoplay="" muted="" style="max-height:100%;max-width:100%;" loop="" ><source type="video/webm" src="' + tmp + '" ></video>');
- });
- if (tmp !== this.textContent && $('#toggle-html').data('active')) {
- $(this).replaceWith(tmp);
- }
- //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement