aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2013-06-11 21:50:49 +0200
committerHarald Eilertsen <haraldei@anduin.net>2013-06-11 21:50:49 +0200
commitadaed6db74ee721e6a987454addb6b2e4c13b1e5 (patch)
tree91be8477ed49b3c0309f2b3e2c32e7e841e7b083 /app/assets
parentb86ce4923c74970e30d5393696d1ff7113fe7b0b (diff)
downloadhmnoweb-adaed6db74ee721e6a987454addb6b2e4c13b1e5.tar.gz
hmnoweb-adaed6db74ee721e6a987454addb6b2e4c13b1e5.tar.bz2
hmnoweb-adaed6db74ee721e6a987454addb6b2e4c13b1e5.zip
Configure for Heavymetal.no
Enable all the standard engines: - blog - inquiries - search - page-images - videos
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/videojs_loader.js7
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