Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload=function(){
- var videoList = [
- 'a',
- 'c',
- 'd',
- 'e',
- 'f',
- 'g',
- 'h',
- 'i',
- 'j',
- 'k',
- 'l'
- ];
- $("#splash-vid").html("<video id='bgvid' autoplay muted id='bgvid' loop><source src='s/" + videoList[Math.floor(Math.random() * videoList.length + 1)] + ".mp4' type='video/mp4'>");
- }
- if (window.chrome)
- $("[type=video\/mp4]").each(function()
- {
- $(this).attr("src", $(this).attr("src").replace(".mp4", ".webm"));
- $(this).attr("src", $(this).attr("src").replace("/mp4", "/webm"));
- });}
Add Comment
Please, Sign In to add comment