homepage, categories pages; javascript and stylesheets renamed to js and css resp.
[living-lab-site.git] / js / video.js
diff --git a/js/video.js b/js/video.js
new file mode 100644 (file)
index 0000000..2e0f574
--- /dev/null
@@ -0,0 +1,33 @@
+/**
+ * Video page client scripting (AJAX, events etc.)
+ */
+
+// Usually replaced in PHP
+siteUrl = '/';
+
+function retrieveNsVlcPlugin(videoUrl)
+{
+       $.post(
+               siteUrl + 'video/plugin/ns-vlc',
+               {url: videoUrl},
+               function(data) {
+                       $('#video_plugin').html(data);
+               }
+       );
+}
+
+function retrieveNsHtml5Plugin(videoUrl)
+{
+       $.post(
+               siteUrl + 'video/plugin/ns-html5',
+               {url: videoUrl},
+               function(data) {
+                       $('#video_plugin').html(data);
+               }
+       );
+}
+
+/*$(document).ready(function()
+{
+       $       
+}*/
\ No newline at end of file