]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#t461] final fix for changes I made while testing
authorScottDowne <sdowne@learn.senecac.on.ca>
Tue, 19 Jul 2011 19:12:43 +0000 (15:12 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Tue, 19 Jul 2011 19:12:43 +0000 (15:12 -0400)
plugins/wikipedia/popcorn.wikipedia.html

index 3e24d669f4c87f4a1159435755086246d4d2d930..2ee3583e4fcac37b8df8cae75bc25810650547d4 100755 (executable)
@@ -7,11 +7,16 @@
   <script src="popcorn.wikipedia.js"></script>
   <script>
     document.addEventListener('DOMContentLoaded', function () {
-Popcorn.plugin.debug = true;
       var p = Popcorn('#video')
       .volume(0)
       .play() 
-      .wikipedia({} )
+      .wikipedia({
+        start: 0, // seconds
+        end: 10, // seconds
+        src: 'http://en.wikipedia.org/wiki/Cape_Town',
+        title: "this is an article",
+        target: 'wikidiv'
+      })
       .wikipedia({
         start: 7, // seconds
         end: 20, // seconds