diff options
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/videojs_loader.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/videojs_loader.js b/app/assets/javascripts/videojs_loader.js new file mode 100644 index 0000000..48d727f --- /dev/null +++ b/app/assets/javascripts/videojs_loader.js @@ -0,0 +1,7 @@ +window.onload = function () +{ + if ($('video').is('*')) { + $('body').append('<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">') + $('body').append('<script src="http://vjs.zencdn.net/c/video.js"></script>') + } +};
\ No newline at end of file |