]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Early work on style fixes for plugin files
authorDavid Seifried <david.c.seifried@gmail.com>
Fri, 9 Sep 2011 13:42:50 +0000 (09:42 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Fri, 9 Sep 2011 13:42:50 +0000 (09:42 -0400)
25 files changed:
plugins/attribution/popcorn.attribution.html
plugins/attribution/popcorn.attribution.js
plugins/attribution/popcorn.attribution.unit.html
plugins/attribution/popcorn.attribution.unit.js
plugins/flickr/popcorn.flickr.html
plugins/flickr/popcorn.flickr.js
plugins/flickr/popcorn.flickr.unit.html
plugins/flickr/popcorn.flickr.unit.js
plugins/googlefeed/popcorn.googlefeed.html
plugins/googlefeed/popcorn.googlefeed.js
plugins/googlefeed/popcorn.googlefeed.unit.html
plugins/googlefeed/popcorn.googlefeed.unit.js
plugins/lowerthird/popcorn.lowerthird.html
plugins/lowerthird/popcorn.lowerthird.js
plugins/lowerthird/popcorn.lowerthird.unit.html
plugins/lowerthird/popcorn.lowerthird.unit.js
plugins/pause/popcorn.pause.html
plugins/pause/popcorn.pause.unit.html
plugins/pause/popcorn.pause.unit.js
plugins/tagthisperson/popcorn.tagthisperson.html
plugins/tagthisperson/popcorn.tagthisperson.js
plugins/tagthisperson/popcorn.tagthisperson.unit.html
plugins/tagthisperson/popcorn.tagthisperson.unit.js
plugins/webpage/popcorn.webpage.html
plugins/webpage/popcorn.webpage.js

index 1e7d3fa1cd9033ebe894f5c1240dafa6d0f8c65d..6b509e2474de249b3ffa11a328381e0f1d8a8920 100755 (executable)
@@ -2,13 +2,13 @@
 <html>
 <head>
   <title>Popcorn attribution Plug-in Demo</title>
-  
+
   <script src="../../popcorn.js"></script>
   <script src="popcorn.attribution.js"></script>
   <script>
-    document.addEventListener('DOMContentLoaded', function () {
-      var p = Popcorn('#video')
-      .play() 
+    document.addEventListener("DOMContentLoaded", function () {
+      var p = Popcorn("#video")
+      .play()
       .volume(0)
       .attribution({
         start: 0, // seconds
@@ -17,8 +17,8 @@
         copyrightholder:"Jesse Dylan",
         license: "CC-BY-N6",
         licenseurl: "http://creativecommons.org/licenses/by-nc/2.0/",
-        target: 'attribdiv'
-      } )
+        target: "attribdiv"
+      })
       .attribution({
         start: 5, // seconds
         end: 15, // seconds
         copyrightholder:"The Computer Chronicles",
         license:"CC-BY-NC-ND",
         licenseurl: "http://creativecommons.org/licenses/by-nc-nd/2.0/",
-        target: 'attribdiv'
-      } )
-
+        target: "attribdiv"
+      })
     }, false);
-      
   </script>
 </head>
 <body>
   <p> A attribution displaying 'A Shared Culture, Jesse Dylan, license: CC-BY-N6' will appear at 0 seconds and disappear at 10 seconds.</p>
   <p> A attribution displaying 'Internet, The Computer Chronicles' will appear at 5 seconds and disappear at 15 seconds.</p>
   <div>
-    <video id='video' 
-      controls preload='none' 
-      width= '250px'
-      poster="../../test/poster.png"> 
+    <video id="video"
+      controls preload="none"
+      width= "250px"
+      poster="../../test/poster.png">
 
-      <source id='mp4'
+      <source id="mp4"
         src="../../test/trailer.mp4"
-        type='video/mp4; codecs="avc1, mp4a"'> 
+        type="viden/mp4; codecs='avc1, mp4a'">
 
-      <source id='ogv'
+      <source id="ogv"
         src="../../test/trailer.ogv"
-        type='video/ogg; codecs="theora, vorbis"'> 
+        type="video/ogg; codecs='theora, vorbis'">
 
-      <p>Your user agent does not support the HTML5 Video element.</p> 
+      <p>Your user agent does not support the HTML5 Video element.</p>
 
-    </video> 
+    </video>
   </div>
   <div id="attribdiv" width="50%" height="50%">
   </div>
index db24c7185d6dc85ed076c96721cd411db58cd0f2..ab56fc5b7e4c13044051207e361afa2388a7b8f5 100755 (executable)
@@ -1,23 +1,23 @@
 // PLUGIN: Attribution
 
 (function( Popcorn ) {
-  
+
   /**
-   * Attribution popcorn plug-in 
+   * Attribution popcorn plug-in
    * Adds text to an element on the page.
    * Options parameter will need a mandatory start, end, target.
    * Optional parameters include nameofwork, NameOfWorkUrl, CopyrightHolder, CopyrightHolderUrl, license & licenseUrl.
    * Start is the time that you want this plug-in to execute
-   * End is the time that you want this plug-in to stop executing 
+   * End is the time that you want this plug-in to stop executing
    * Target is the id of the document element that the text needs to be attached to, this target element must exist on the DOM
-   * nameofwork is the title of the attribution 
+   * nameofwork is the title of the attribution
    * NameOfWorkUrl is a url that provides more details about the attribution
    * CopyrightHolder is the name of the person/institution that holds the rights to the attribution
    * CopyrightHolderUrl is the url that provides more details about the copyrightholder
    * license is the type of license that the work is copyrighted under
    * LicenseUrl is the url that provides more details about the ticense type
    * @param {Object} options
-   * 
+   *
    * Example:
      var p = Popcorn('#video')
         .attribution({
@@ -27,9 +27,9 @@
         } )
    *
    */
-  Popcorn.plugin( "attribution" , (function(){ 
-    
-    var 
+  Popcorn.plugin( "attribution" , (function() {
+
+    var
     common = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoO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Oi1ka5kBMeSQ1i1qg7nz52H60lV/wYCAaZnV2rhcJjFsX0H9uHetu9itjCL2UIBcqGAgjyP4AoJ+P/3hDsPgG3p2FtbYLFYAAA+n69i7KnVcrkck3gWi6WUiC/tYigKlFIsptKW07VqPAAopKBYVPfRntm/lxHkcDh0Od7lkNva2sradv+8u5RgL86RXLZlxCZZura2jNjkDoB6PD2UGImTdClFD//wYV1GLZVKLSuzVJ5JExwCSZdSlBiJ0979e9nvn6My90/XUy5KphIkrSDhns1myev16hLuGzdtpNH3JEpKCerx9HweySVuvijt9fSgwyHAaDTisP8wXvnjKyveMvI944UsyxgejuOJx56o5TuCOf1YyrQRlW2OVvh/MZzF2mj3qIaxFE6lflYNEeWl19OjevKlFL0c/j1ZLJaa35jFYqHgkSBJl1KUlBL04u9erLnt/OXx/PPy36rhVGtfC9YngbPAgzXresqFBx96kG31iNEBnDh+Yslt+/uF+2G3t7ANzePHT2Cfb99yvoRZ1DNq8dxKnlbpuJz+VMOphrkowQCw4eb16PXsQf1aS9luRHm6ETrdqn14MjU5iV8fCuDcwLnlfmp0RaGhWkhYDjGfFM6SBGt2e8vtaGtvw83fvBlfNplKn07NBRgiwnQ+jwvJCzh98vSyif20PPhqiME1EfyFrdw4Irqe47h/f0HFp7DAIOL+NwDFrtvhh4x87AAAAABJRU5ErkJggg=="
-    }, 
+    },
     target;
-    
+
     return {
-    
+
       _setup: function( options ) {
 
-        var attrib = "", 
+        var attrib = "",
         license = options.license && licenses[ options.license.toLowerCase() ],
-        tar = "target=_blank"; 
+        tar = "target=_blank";
 
         // make a div to put the information into
         options._container = document.createElement( "div" );
             }
           } else {
             attrib += ", license: ";
-            
+
             if ( options.licenseurl ) {
               attrib += "<a href='" + options.licenseurl + "' " + tar + ">" + options.license + "</a> ";
             } else {
               attrib += options.license;
             }
-          } 
+          }
         } else if ( options.licenseurl ) {
           attrib += ", <a href='" + options.licenseurl + "' " + tar + ">license</a> ";
         }
-        
+
         options._container.innerHTML  = attrib;
 
         if ( !target && Popcorn.plugin.debug ) {
         target && target.appendChild( options._container );
       },
       /**
-       * @member attribution 
-       * The start function will be executed when the currentTime 
-       * of the video  reaches the start time provided by the 
+       * @member attribution
+       * The start function will be executed when the currentTime
+       * of the video  reaches the start time provided by the
        * options variable
        */
       start: function( event, options ) {
         options._container.style.display = "inline";
       },
       /**
-       * @member attribution 
-       * The end function will be executed when the currentTime 
-       * of the video  reaches the end time provided by the 
+       * @member attribution
+       * The end function will be executed when the currentTime
+       * of the video  reaches the end time provided by the
        * options variable
        */
       end: function( event, options ) {
       website: "github.com/rwldrn"
     },
     options:{
-      start: { elem:"input", type:"text", label:"In" },
-      end: { elem:"input", type:"text", label:"Out" },
-      nameofwork: { elem:"input", type:"text", label:"Name of Work" },
-      nameofworkurl: { elem:"input", type:"text", label:"Url of Work" },
-      copyrightholder: { elem:"input", type:"text", label:"Copyright Holder" },
-      copyrightholderurl: { elem:"input", type:"text", label:"Copyright Holder Url" },
-      license: { elem:"input", type:"text", label:"License type" },
-      licenseurl: { elem:"input", type:"text", label:"License URL" },
+      start: {
+       elem: "input",
+       type: "text",
+       label: "In"
+      },
+      end: {
+        elem: "input",
+        type: "text",
+        label: "Out"
+      },
+      nameofwork: {
+        elem: "input",
+        type: "text",
+        label: "Name of Work"
+      },
+      nameofworkurl: {
+        elem: "input",
+        type: "text",
+        label: "Url of Work"
+      },
+      copyrightholder: {
+        elem: "input",
+        type: "text",
+        label: "Copyright Holder"
+      },
+      copyrightholderurl: {
+        elem: "input",
+        type: "text",
+        label: "Copyright Holder Url"
+      },
+      license: {
+        elem: "input",
+        type: "text",
+        label: "License type"
+       },
+      licenseurl: {
+        elem: "input",
+        type: "text",
+        label: "License URL"
+      },
       target: "attribution-container"
-    } 
+    }
   });
 })( Popcorn );
index 02b6f03205ee6822b51f0e61fc9b6ac3b54cb356..52592b3d9df71aa8c7eb3086c103dd8b14a57ef7 100755 (executable)
@@ -4,11 +4,11 @@
   <title>Popcorn Attribution Plugin</title>
   <link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
   <script src="../../test/qunit/qunit.js"></script>
-  <!-- 
-    do not move - this must be called immediately prior to 
+  <!--
+    do not move - this must be called immediately prior to
     popcorn-api-draft.js
   -->
-  
+
   <script src="../../popcorn.js"></script>
   <script src="popcorn.attribution.js"></script>
 
   <h2 id="qunit-userAgent"></h2>
   <ol id="qunit-tests"></ol>
   <div id="qunit-fixture">  </div>
-  
-  <video id='video' 
-    controls preload='none' 
-    width= '250px'
-    poster="../../test/poster.png"> 
 
-    <source id='mp4'
+  <video id="video"
+    controls preload="none"
+    width= "250px"
+    poster="../../test/poster.png">
+
+    <source id="mp4"
       src="../../test/trailer.mp4"
-      type='video/mp4; codecs="avc1, mp4a"'> 
+      type="video/mp4; codecs='avc1, mp4a'">
 
-    <source id='ogv'
+    <source id="ogv"
       src="../../test/trailer.ogv"
-      type='video/ogg; codecs="theora, vorbis"'> 
+      type="video/ogg; codecs='theora, vorbis'">
 
-    <p>Your user agent does not support the HTML5 Video element.</p> 
+    <p>Your user agent does not support the HTML5 Video element.</p>
 
-  </video> 
-  <div id="attribdiv"></div>  
+  </video>
+  <div id="attribdiv"></div>
 </body>
 </html>
index 7a40e22b015fb5f1fc1cbaf6314b7f147a09876e..81359cec3fbdce9153e49f4f398098077372cc3f 100755 (executable)
@@ -1,80 +1,79 @@
 test("Popcorn attribution Plugin", function () {
-  
+
   var popped = Popcorn("#video"),
-      expects = 10, 
+      expects = 10,
       count = 0,
       setupId,
-      attributiondiv = document.getElementById('attribdiv');
+      attributiondiv = document.getElementById( "attribdiv" );
+
+  expect( expects );
 
-  expect(expects);
-  
   function plus() {
-    if ( ++count===expects) {
+    if ( ++count===expects ) {
       start();
     }
   }
-  
+
   stop();
-   
-  ok ('attribution' in popped, "attribution is a method of the popped instance");
+
+  ok ( "attribution" in popped, "attribution is a method of the popped instance" );
   plus();
-  
+
   equals ( attributiondiv.childElementCount, 0, "initially, there is nothing inside the attributiondiv" );
   plus();
-  
-  
+
   popped.attribution({
-      start: 0, // seconds
-      end: 2, // seconds
+      start: 0,
+      end: 2,
       nameofwork: "A Shared Culture",
-      copyrightholder:"Jesse Dylan",
+      copyrightholder: "Jesse Dylan",
       licenseurl: "http://creativecommons.org/licenses/by-nc/2.0/",
-      target: 'attribdiv'
-    } )
+      target: "attribdiv"
+    })
     .attribution({
-      start: 2, // seconds
-      end: 4, // seconds
+      start: 2,
+      end: 4,
       nameofwork: "Internet",
-      nameofworkurl:"http://www.archive.org/details/CC1232_internet",
-      copyrightholder:"The Computer Chronicles",
-      license:"CC-BY-NC-ND",
+      nameofworkurl: "http://www.archive.org/details/CC1232_internet",
+      copyrightholder: "The Computer Chronicles",
+      license: "CC-BY-NC-ND",
       licenseurl: "http://creativecommons.org/licenses/by-nc-nd/2.0/",
-      target: 'attribdiv'
-    } )
-    .volume(0);
+      target: "attribdiv"
+    })
+    .volume( 0 );
 
   setupId = popped.getLastTrackEventId();
 
   popped.exec( 0, function() {
     equals ( attributiondiv.childElementCount, 2, "attributiondiv now has two inner elements" );
     plus();
-    equals (attributiondiv.children[0].style.display , "inline", "attribution is visible on the page" );
+    equals ( attributiondiv.children[ 0 ].style.display , "inline", "attribution is visible on the page" );
     plus();
   });
-  
+
   popped.exec( 2, function() {
 
     ok( /target="_blank"/.test( attributiondiv.innerHTML ), "attributions create anchors that target=_blank" );
     plus();
 
-    equals (attributiondiv.children[1].style.display , "inline", "second attribution is visible on the page" );
+    equals ( attributiondiv.children[ 1 ].style.display , "inline", "second attribution is visible on the page" );
     plus();
 
     equals ( typeof popped.data.trackEvents.byStart[ 1 ]._license, "undefined", "undefined license is properly being handled" );
     plus();
   });
-  
+
   popped.exec( 4, function() {
-    equals(attributiondiv.children[1].style.display , "none", "second attribution is no longer visible on the page" );
+    equals( attributiondiv.children[ 1 ].style.display , "none", "second attribution is no longer visible on the page" );
     plus();
-    equals(attributiondiv.children[0].style.display , "none", "first attribution is no longer visible on the page" );
+    equals( attributiondiv.children[ 0 ].style.display , "none", "first attribution is no longer visible on the page" );
     plus();
 
     popped.pause().removeTrackEvent( setupId );
-    ok( !attributiondiv.children[1], "removed attribution was properly destroyed"  );
+    ok( !attributiondiv.children[ 1 ], "removed attribution was properly destroyed" );
     plus();
   });
-  
+
   popped.play();
 
 });
index 31d220859429dcc521867f587b229971468bf924..c71e0387e76e4bce33391e0b7e27e01b62ca6315 100755 (executable)
@@ -4,7 +4,7 @@
   <title>Popcorn Flickr Plug-in Demo</title>
   <!--
     ATTENTION
-  
+
     This demo uses an API key obtained for testing the Flickr Popcorn.js
     plugin. Please do not use it for other purposes.
   -->
     <video id="video"
       controls
       width= "250px"
-      poster="../../test/poster.png"> 
+      poster="../../test/poster.png">
 
       <source id="mp4"
         src="../../test/trailer.mp4"
-        type='video/mp4; codecs="avc1, mp4a"'> 
+        type="video/mp4; codecs='avc1, mp4a'">
 
       <source id="ogv"
         src="../../test/trailer.ogv"
-        type='video/ogg; codecs="theora, vorbis"'> 
+        type="video/ogg; codecs='theora, vorbis'">
 
-      <p>Your user agent does not support the HTML5 Video element.</p> 
+      <p>Your user agent does not support the HTML5 Video element.</p>
 
-    </video> 
+    </video>
   </div>
   <div id="flickrdiv"></div>
 </body>
index a4d97381432181c2c599c4c2c5c56931a976a6d7..b231c602d4f2ed9de7cfeec0c5d9ce7fbab8f202 100755 (executable)
@@ -50,7 +50,7 @@
         _uri,
         _link,
         _image,
-        _count = options.numberofimages || 4 ,
+        _count = options.numberofimages || 4,
         _height = options.height || "50px",
         _width = options.width || "50px",
         _padding = options.padding || "5px",
     idx++;
 
     // ensure the target container the user chose exists
-
     if ( !target && Popcorn.plugin.debug ) {
       throw new Error( "flickr target container doesn't exist" );
     }
+
     target && target.appendChild( containerDiv );
 
     // get the userid from Flickr API by using the username and apikey
         }, 5 );
       }
     };
+
     // get the photos from Flickr API by using the user_id and/or tags
     var getFlickrData = function() {
+
       _uri  = "http://api.flickr.com/services/feeds/photos_public.gne?";
+
       if ( _userid ) {
         _uri += "id=" + _userid + "&";
       }
       if ( options.tags ) {
         _uri += "tags=" + options.tags + "&";
       }
+
       _uri += "lang=en-us&format=json&jsoncallback=flickr";
+
       Popcorn.xhr.getJSONP( _uri, function( data ) {
 
         var fragment = document.createElement( "p" );
index 356b11d2b0b8d4bbe10311894b063c2b18aa9194..f810b60009b3c6f5005b18c41cd576b37803e5d3 100755 (executable)
@@ -4,11 +4,11 @@
   <title>Popcorn Flickr</title>
   <link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
   <script src="../../test/qunit/qunit.js"></script>
-  <!-- 
-    do not move - this must be called immediately prior to 
+  <!--
+    do not move - this must be called immediately prior to
     popcorn-api-draft.js
   -->
-  
+
   <script src="../../popcorn.js"></script>
   <script src="../../test/jquery.js"></script>
   <script src="popcorn.flickr.js"></script>
   <h2 id="qunit-userAgent"></h2>
   <ol id="qunit-tests"></ol>
   <div id="qunit-fixture">  </div>
-  
-  <video id='video' 
-    controls 
-    width= '250px'
-    poster="../../test/poster.png"> 
 
-    <source id='mp4'
+  <video id="video"
+    controls
+    width= "250px"
+    poster="../../test/poster.png">
+
+    <source id="mp4"
       src="../../test/trailer.mp4"
-      type='video/mp4; codecs="avc1, mp4a"'> 
+      type="video/mp4; codecs='avc1, mp4a'">
 
-    <source id='ogv'
+    <source id="ogv"
       src="../../test/trailer.ogv"
-      type='video/ogg; codecs="theora, vorbis"'> 
+      type="video/ogg; codecs='theora, vorbis'">
 
-    <p>Your user agent does not support the HTML5 Video element.</p> 
+    <p>Your user agent does not support the HTML5 Video element.</p>
 
-  </video> 
-  <div id="flickrdiv"></div>  
+  </video>
+  <div id="flickrdiv"></div>
 </body>
 </html>
index e9688fc0b5a3716bfd2ecf51ad75c3453c6c06b2..2e2c7adbbc3d34f2b2a6a649f7039792c4b4e311 100755 (executable)
@@ -1,27 +1,27 @@
 test("Popcorn Flickr Plugin", function () {
-  
+
   var popped = Popcorn( "#video" ),
-      expects = 11, 
+      expects = 11,
       count = 0,
       setupId,
       flickrdiv = document.getElementById( "flickrdiv" );
-  
+
   expect( expects );
-  
+
   function plus() {
     if ( ++count === expects ) {
       start();
     }
   }
 
-  stop();   
- 
+  stop();
+
   ok( "flickr" in popped, "flickr is a method of the popped instance" );
   plus();
 
   equals ( flickrdiv.innerHTML, "", "initially, there is nothing inside the flickrdiv" );
   plus();
-  
+
   popped.flickr({
     start: 0,
     end: 3,
@@ -57,28 +57,28 @@ test("Popcorn Flickr Plugin", function () {
 
   popped.exec( 5, function() {
 
-    var numberOfImages = document.getElementById( "flickrdiv" ).childNodes[1].getElementsByTagName( "a" ).length;
+    var numberOfImages = document.getElementById( "flickrdiv" ).childNodes[ 1 ].getElementsByTagName( "a" ).length;
 
     ok( /display: inline;/.test( flickrdiv.innerHTML ), "Div contents are displayed" );
     plus();
-    
+
     ok( /img/.test( flickrdiv.innerHTML ), "An image exists" );
     plus();
-    
+
     ok( /display: inline;/.test( flickrdiv.innerHTML ), "Images tagged 'georgia' are displayed in div" );
     plus();
-    
+
     equal( numberOfImages, 8, "There are 8 images tagged 'georgia' being displayed" );
     plus();
   });
-  
+
   popped.exec( 11, function() {
 
     ok( /display: none;/.test( flickrdiv.innerHTML ), "Div contents are hidden again" );
     plus();
 
     popped.pause().removeTrackEvent( setupId );
-    ok( !flickrdiv.children[2], "Removed flickr was properly destroyed"  );
+    ok( !flickrdiv.children[ 2 ], "Removed flickr was properly destroyed"  );
     plus();
   });
 
@@ -90,10 +90,10 @@ test("Popcorn Flickr Plugin", function () {
   try {
     popped.flickr({});
   } catch( e ) {
-    ok(true, 'empty event was caught by debug');
+    ok( true, "empty event was caught by debug" );
     plus();
   }
 
-  popped.volume(0).play();
-  
+  popped.volume( 0 ).play();
+
 });
index 72bc9a195eab0f6fe0b64ab2207ddc7d8a775dc0..e426303f867a1c50a00710cf05dde37c183d40bc 100755 (executable)
@@ -2,30 +2,30 @@
 <html>
 <head>
   <title>Popcorn Google Feed Plug-in Demo</title>
-  
+
   <script src="../../popcorn.js"></script>
   <script src="popcorn.googlefeed.js"></script>
   <script>
-    document.addEventListener('DOMContentLoaded', function () {
-      var p = Popcorn('#video')
-      .volume(0)
+    document.addEventListener("DOMContentLoaded", function () {
+      var p = Popcorn("#video")
+      .volume( 0 )
       .play()
       .googlefeed({
-        start: 0, // seconds
-        end: 15, // seconds
+        start: 0,
+        end: 15,
         target: "feed",
         url: "http://zenit.senecac.on.ca/~chris.tyler/planet/rss20.xml",
         title: "Planet Feed",
         orientation: "Vertical"
-         } )
+         })
          .googlefeed({
-        start: 5, // seconds
-        end: 20, // seconds
+        start: 5,
+        end: 20,
         target: "feed1",
         url: "http://blog.pikimal.com/geek/feed/",
         title: "pikiGeek",
         orientation: "Horizontal"
-      } );
+      });
     }, false);
   </script>
 </head>
   <p>A Blog feed of Seneca's Planet Feed will be displayed from 0 seconds to 15 seconds</p>
   <p> A Blog feed of pikiGeek's feed will be displayed from 5 seconds to 20 seconds</p>
   <div>
-    <video id='video'
+    <video id="video"
       controls
-      width= '250px'
+      width= "250px"
       poster="../../test/poster.png">
 
-      <source id='mp4'
+      <source id="mp4"
         src="../../test/trailer.mp4"
-        type='video/mp4; codecs="avc1, mp4a"'>
+        type="video/mp4; codecs='avc1, mp4a'">
 
-      <source id='ogv'
+      <source id="ogv"
         src="../../test/trailer.ogv"
-        type='video/ogg; codecs="theora, vorbis"'>
+        type="video/ogg; codecs='theora, vorbis'">
 
       <p>Your user agent does not support the HTML5 Video element.</p>
 
     </video>
   </div>
   <div style="width:1000px">
-    <div id="feed" style="position:relative;float:left;width:400px;height:600px"><p>Vertical Feed:</p></div>
-    <div id="feed1" style="position:relative;float:left;width:600px;height:200px"><p>Horizontal Feed:</p></div>
+    <div id="feed" style="position:relative;float:left;width:400px;height:600px">
+      <p>Vertical Feed:</p>
+    </div>
+    <div id="feed1" style="position:relative;float:left;width:600px;height:200px">
+      <p>Horizontal Feed:</p>
+    </div>
   </div>
 </body>
 </html>
index 1a6d1cd4f21c04524485173826a41137c9b61de0..1d84f6be9149fb4bb1a1c32950c65102db40c550 100755 (executable)
@@ -46,7 +46,7 @@
 
         callback: function () {
 
-          dynamicFeedLoad();              
+          dynamicFeedLoad();
         }
       });
     });
@@ -80,6 +80,7 @@
   */
 
   Popcorn.plugin( "googlefeed" , function( options ) {
+
     // create a new div and append it to the parent div so nothing
     // that already exists in the parent div gets overwritten
     var newdiv = document.createElement( "div" ),
@@ -88,7 +89,7 @@
       //ensure that the script has been loaded
       if ( !scriptLoaded ) {
         setTimeout( function () {
-          initialize(); 
+          initialize();
         }, 5 );
       } else {
         // Create the feed control using the user entered url and title
     target && target.appendChild( newdiv );
 
     initialize();
-    
+
     return {
       /**
        * @member webpage
   },
   {
     about: {
-      name:    "Popcorn Google Feed Plugin",
+      name: "Popcorn Google Feed Plugin",
       version: "0.1",
-      author:  "David Seifried",
+      author: "David Seifried",
       website: "dseifried.wordpress.com"
     },
     options: {
       start: {
-        elem: "input", 
-        type: "text", 
-        label: "In" 
+        elem: "input",
+        type: "text",
+        label: "In"
       },
-      end: { 
-        elem: "input", 
-        type: "text", 
-        label: "Out" 
+      end: {
+        elem: "input",
+        type: "text",
+        label: "Out"
       },
       target: "feed-container",
-      url: { 
-        elem: "input", 
-        type: "text", 
-        label: "url" 
+      url: {
+        elem: "input",
+        type: "text",
+        label: "url"
       },
-      title: { 
-        elem: "input", 
-        type: "text", 
-        label: "title" 
+      title: {
+        elem: "input",
+        type: "text",
+        label: "title"
       },
       orientation: {
-        elem: "select", 
-        options: [ "Vertical","Horizontal" ], 
-        label: "orientation" 
+        elem: "select",
+        options: [ "Vertical","Horizontal" ],
+        label: "orientation"
       }
     }
   });
-  
 })( Popcorn );
index 9bfc36b2e82f648d5bc211d1dc73a277c7676f5b..59e2029c35894f135284431d861b68cb702d7489 100755 (executable)
@@ -4,8 +4,8 @@
   <title>Popcorn API</title>
   <link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
   <script src="../../test/qunit/qunit.js"></script>
-  <!-- 
-    do not move - this must be called immediately prior to 
+  <!--
+    do not move - this must be called immediately prior to
     popcorn-api-draft.js
   -->
   <script src="../../popcorn.js"></script>
   <h2 id="qunit-userAgent"></h2>
   <ol id="qunit-tests"></ol>
   <div id="qunit-fixture">  </div>
-  
-  <video id='video' 
-    controls preload='none' 
-    width= '250px'
-    poster="../../test/poster.png"> 
 
-    <source id='mp4'
+  <video id="video"
+    controls preload="none"
+    width= "250px"
+    poster="../../test/poster.png">
+
+    <source id="mp4"
       src="../../test/trailer.mp4"
-      type='video/mp4; codecs="avc1, mp4a"'> 
+      type="video/mp4; codecs='avc1, mp4a'">
 
-    <source id='ogv'
+    <source id="ogv"
       src="../../test/trailer.ogv"
-      type='video/ogg; codecs="theora, vorbis"'> 
+      type="video/ogg; codecs='theora, vorbis'">
 
-    <p>Your user agent does not support the HTML5 Video element.</p> 
+    <p>Your user agent does not support the HTML5 Video element.</p>
 
-  </video> 
-  <div id="feed" style="position:relative;float:left;width:400px;height:600px"></div> 
-  <div id="feed1" style="position:relative;float:left;width:600px;height:200px"></div>   
+  </video>
+  <div id="feed" style="position:relative;float:left;width:400px;height:600px"></div>
+  <div id="feed1" style="position:relative;float:left;width:600px;height:200px"></div>
 </body>
 </html>
index 06aff4af535769a68902e379533c8b15a7669c28..0ae1743693f82d8b729841b3de26658fa95fe2b0 100755 (executable)
@@ -1,71 +1,71 @@
 test("Popcorn Google Feed Plugin", function () {
-  
+
   var popped = Popcorn( "#video" ),
       expects = 13,
-      setupId, 
+      setupId,
       count = 0;
-  
-  expect(expects);
-  
+
+  expect( expects );
+
   function plus() {
     if ( ++count === expects) {
       start();
     }
   }
-  
+
   stop();
 
-    ok ( 'googlefeed' in popped, "googlefeed is a method of the popped instance" );
+    ok ( "googlefeed" in popped, "googlefeed is a method of the popped instance" );
     plus();
-    ok ( document.getElementById('feed').innerHTML === "", "initially, there is nothing inside the feed" );
+    ok ( document.getElementById( "feed" ).innerHTML === "", "initially, there is nothing inside the feed" );
     plus();
-    ok ( document.getElementById('feed1').innerHTML === "", "initially, there is nothing inside the feed1" );
+    ok ( document.getElementById( "feed1" ).innerHTML === "", "initially, there is nothing inside the feed1" );
     plus();
-  
+
   popped.googlefeed({
-    start: 1, // seconds
-    end: 2, // seconds
+    start: 1,
+    end: 2,
     target: "feed",
     url: "http://zenit.senecac.on.ca/~chris.tyler/planet/rss20.xml",
     title: "Planet Feed",
        })
        .googlefeed({
-    start: 2, // seconds
-    end: 3, // seconds
+    start: 2,
+    end: 3,
     target: "feed1",
     url: "http://blog.pikimal.com/geek/feed/",
     title: "pikiGeek",
     orientation: "Horizontal"
   })
-  .volume(0);
+  .volume( 0 );
 
   setupId = popped.getLastTrackEventId();
-  
+
   popped.exec( 1, function() {
-    ok( google.load, "Google Feed is available");
+    ok( google.load, "Google Feed is available" );
     plus();
-    ok( GFdynamicFeedControl, "Dynamic Feed Control Available");
+    ok( GFdynamicFeedControl, "Dynamic Feed Control Available" );
     plus();
-    ok ( document.getElementById('_feed1'), "First feed is on the page" );
+    ok ( document.getElementById( "_feed1" ), "First feed is on the page" );
     plus();
-    equals ( document.getElementById('_feed1').offsetParent.id, "feed", "First feed is inside the 'feed' div" );
+    equals ( document.getElementById( "_feed1" ).offsetParent.id, "feed", "First feed is inside the 'feed' div" );
     plus();
-    equals( popped.data.trackEvents.byStart[1].orientation, "vertical", "Defaulting to vertical orientation" );
+    equals( popped.data.trackEvents.byStart[ 1 ].orientation, "vertical", "Defaulting to vertical orientation" );
     plus();
   });
   popped.exec( 2, function() {
-    ok ( document.getElementById('_feed2'), "Second feed is on the page" );
+    ok ( document.getElementById( "_feed2" ), "Second feed is on the page" );
     plus();
-    equals ( document.getElementById('_feed2').offsetParent.id, "feed1", "Second feed is inside the 'feed2' div" );
+    equals ( document.getElementById( "_feed2" ).offsetParent.id, "feed1", "Second feed is inside the 'feed2' div" );
     plus();
   });
   popped.exec( 3, function() {
-    ok ( document.getElementById('_feed2').style.display === "none" && 
-        document.getElementById('_feed1').style.display === "none", "Both feeds are no lnger visible" );
+    ok ( document.getElementById( "_feed2" ).style.display === "none" &&
+        document.getElementById( "_feed1" ).style.display === "none", "Both feeds are no lnger visible" );
          plus();
 
     popped.pause().removeTrackEvent( setupId );
-    ok( !document.getElementById('feed1').children[0], "removed feed was properly destroyed"  );
+    ok( !document.getElementById( "feed1" ).children[ 0 ], "removed feed was properly destroyed"  );
     plus();
   });
 
@@ -77,10 +77,10 @@ test("Popcorn Google Feed Plugin", function () {
   try {
     popped.googlefeed({});
   } catch( e ) {
-    ok(true, 'empty event was caught by debug');
+    ok( true, "empty event was caught by debug" );
     plus();
-  }  
+  }
 
   popped.play();
-  
+
 });
index 7fb234f615cfbb1a793f402eb741b3c772a643b2..c3cb77468020064d860356c2f546e010045a7544 100755 (executable)
@@ -2,32 +2,30 @@
 <html>
 <head>
   <title>Popcorn Lower Third Plug-in Demo</title>
-  
+
   <script src="../../popcorn.js"></script>
 
   <script src="popcorn.lowerthird.js"></script>
   <script>
-    document.addEventListener('DOMContentLoaded', function () {
+    document.addEventListener("DOMContentLoaded", function () {
 
-      var p = Popcorn('#video')
+      var p = Popcorn("#video")
       .play()
       .lowerthird({
-        start: 5, // seconds
-        end: 15, // seconds
-        salutation: 'Mr',
-        name: 'Hyde',
-        role: 'Monster'
-      } )
+        start: 5,
+        end: 15,
+        salutation: "Mr",
+        name: "Hyde",
+        role: "Monster"
+      })
       .lowerthird({
-        start: 20, // seconds
-        end: 45, // seconds
-        salutation: 'Dr',
-        name: 'Jekyll',
-        role: 'Person'
-      } )
-
+        start: 20,
+        end: 45,
+        salutation: "Dr",
+        name: "Jekyll",
+        role: "Person"
+      })
     }, false);
-
   </script>
 </head>
 <body>
   <p> At 20 seconds info will appear in the lower third of the video and disappear at 45 seconds.</p>
   <div>
 
-    <video id='video'
+    <video id="video"
       controls height="480" width="854"
       poster="../../test/poster.png">
 
-      <source id='mp4'
+      <source id="mp4"
         src="../../test/trailer.mp4"
-        type='video/mp4; codecs="avc1, mp4a"'>
+        type="video/mp4; codecs='avc1, mp4a'">
 
-      <source id='ogv'
+      <source id="ogv"
         src="../../test/trailer.ogv"
-        type='video/ogg; codecs="theora, vorbis"'>
+        type="video/ogg; codecs='theora, vorbis'">
 
       <p>Your user agent does not support the HTML5 Video element.</p>
 
index 0e6277c1669e807f93a05c1bb7d71e98ed93745d..429a6dc036d46a76e1f6f551a41a12a0b9908714 100755 (executable)
@@ -1,9 +1,8 @@
 // PLUGIN: lowerthird
+(function ( Popcorn ) {
 
-(function (Popcorn) {
-  
   /**
-   * Lower Third popcorn plug-in 
+   * Lower Third popcorn plug-in
    * Displays information about a speaker over the video, or in the target div
    * Options parameter will need a start, and end.
    * Optional parameters are target, salutation, name and role.
@@ -14,9 +13,9 @@
    * salutation is the speaker's Mr. Ms. Dr. etc.
    * name is the speaker's name.
    * role is information about the speaker, example Engineer.
-   * 
+   *
    * @param {Object} options
-   * 
+   *
    * Example:
      var p = Popcorn('#video')
         .lowerthird({
@@ -31,7 +30,7 @@
    */
 
   Popcorn.plugin( "lowerthird" , {
-    
+
       manifest: {
         about:{
           name: "Popcorn lowerthird Plugin",
           website: "http://scottdowne.wordpress.com/"
         },
         options:{
-          start : {elem:'input', type:'text', label:'In'},
-          end : {elem:'input', type:'text', label:'Out'},
-          target : 'lowerthird-container',
-          salutation : {elem:'input', type:'text', label:'Text'},
-          name : {elem:'input', type:'text', label:'Text'},
-          role : {elem:'input', type:'text', label:'Text'}
+          start: {
+            elem: "input",
+            type: "text",
+            label: "In"
+          },
+          end: {
+            elem: "input",
+            type: "text",
+            label: "Out"
+          },
+          target: "lowerthird-container",
+          salutation : {
+            elem: "input",
+            type: "text",
+            label: "Text"
+          },
+          name: {
+            elem: "input",
+            type: "text",
+            label: "Text"
+          },
+          role : {
+            elem: "input",
+            type: "text",
+            label: "Text"
+          }
         }
       },
 
@@ -55,7 +74,7 @@
 
         // Creates a div for all Lower Thirds to use
         if ( !this.container ) {
-          this.container = document.createElement('div');
+          this.container = document.createElement( "div" );
 
           this.container.style.position = "absolute";
           this.container.style.color = "white";
         }
 
         // if a target is specified, use that
-        if ( options.target && options.target !== "lowerthird-container") {
+        if ( options.target && options.target !== "lowerthird-container" ) {
           options.container = document.createElement( "div" );
           if ( !target && Popcorn.plugin.debug ) {
             throw new Error( "target container doesn't exist" );
           }
           target && target.appendChild( options.container );
-        } else { // use shared default container
+        // use shared default container
+        } else {
           options.container = this.container;
         }
 
        * of the video reaches the end time provided by the
        * options variable
        */
-      end: function(event, options){
+      end: function(event, options) {
         options.container.innerHTML = "";
       }
-   
-  } );
 
+  } );
 })( Popcorn );
index c409b2b367551a3c859036ee3deef7563ddd0c5b..1d549003ba0da0bb40dfec74e29f21412e5f80a3 100755 (executable)
@@ -4,13 +4,13 @@
   <title>Popcorn Lower Third Plug-in Test</title>
   <link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
   <script src="../../test/qunit/qunit.js"></script>
-  <!-- 
-    do not move - this must be called immediately prior to 
+  <!--
+    do not move - this must be called immediately prior to
     popcorn-api-draft.js
   -->
-  
+
   <script src="../../popcorn.js"></script>
-  
+
   <script src="popcorn.lowerthird.js"></script>
   <script src="popcorn.lowerthird.unit.js"></script>
 </head>
   <h2 id="qunit-userAgent"></h2>
   <ol id="qunit-tests"></ol>
   <div id="qunit-fixture">  </div>
-  
-  <video id='video' 
-    controls preload='none' 
-    width= '250px'
-    poster="../../test/poster.png"> 
 
-    <source id='mp4'
+  <video id="video"
+    controls preload"none"
+    width= "250px"
+    poster="../../test/poster.png">
+
+    <source id="mp4"
       src="../../test/trailer.mp4"
-      type='video/mp4; codecs="avc1, mp4a"'> 
+      type="video/mp4; codecs='avc1, mp4a'">
 
-    <source id='ogv'
+    <source id="ogv"
       src="../../test/trailer.ogv"
-      type='video/ogg; codecs="theora, vorbis"'> 
+      type="video/ogg; codecs='theora, vorbis'">
 
-    <p>Your user agent does not support the HTML5 Video element.</p> 
+    <p>Your user agent does not support the HTML5 Video element.</p>
 
   </video>
   <div id="lowerthirddiv"></div>
index fc81db04bc0490a1ad6ade2433080bc793b9b3ca..29fa1c82a8c379388b810dfd6405c1656c92cb57 100755 (executable)
@@ -1,29 +1,29 @@
 test( "Popcorn lower third Plugin", function () {
-  
+
   var popped = Popcorn( "#video" ),
-      expects = 8, 
+      expects = 8,
       count = 0,
       lowerthirddiv = document.getElementById( "lowerthirddiv" );
 
-  expect(expects);
-  
+  expect( expects );
+
   function plus() {
     if ( ++count===expects ) {
       start();
     }
   }
-  
+
   stop();
-   
+
   ok ( "lowerthird" in popped, "lowerthird is a method of the popped instance" );
   plus();
-  
+
   equals ( lowerthirddiv.innerHTML, "", "initially, there is nothing inside the lowerthirddiv" );
   plus();
 
   ok( !popped.container, "initially, there is no default div" );
   plus();
-  
+
   // empty track events should be safe
   popped.lowerthird({});
 
@@ -34,44 +34,44 @@ test( "Popcorn lower third Plugin", function () {
       target: "does not exist"
     });
   } catch( e ) {
-    ok(true, 'invalid target event was caught by debug');
+    ok( true, "invalid target event was caught by debug" );
     plus();
   }
 
   popped.lowerthird({
-      start: 0, // seconds
-      end: 2, // seconds
+      start: 0,
+      end: 2,
       salutation: "Mr",
       name: "Hyde",
       role: "Monster"
-    } )
+    })
     .lowerthird({
-      start: 2, // seconds
-      end: 4, // seconds
+      start: 2,
+      end: 4,
       target: "lowerthirddiv",
       salutation: "Dr",
       name: "Jekyll",
       role: "Person"
-    } )
-    .volume(0);
-    
+    })
+    .volume( 0 );
+
   popped.exec( 1, function() {
     equals ( popped.container.innerHTML, "Mr Hyde<br>Monster", "first lowerthird is visible" );
     plus();
   });
-  
+
   popped.exec( 3, function() {
     equals ( lowerthirddiv.innerHTML, "<div>Dr Jekyll<br>Person</div>", "second lowerthird is visible" );
     plus();
   });
-  
+
   popped.exec( 5, function() {
     equals ( popped.container.innerHTML, "", "first lowerthird is empty" );
     plus();
     equals ( lowerthirddiv.innerHTML, "<div></div>", "second lowerthird is empty" );
     plus();
   });
-  
+
   popped.play();
 
 });
index 14a058316883b4624b9a5484edfe4bb26e4109f3..0eafa020ddf112c65e9c3f2003d1c8f121e136bd 100755 (executable)
@@ -6,11 +6,13 @@
   <script src="../../popcorn.js"></script>
   <script src="popcorn.pause.js"></script>
   <script>
-   var output;
+    var output;
 
-   document.addEventListener('DOMContentLoaded', function () {
-     var p = Popcorn( '#video' , { pauseOnLinkClicked : true } )
-         .play();
+    document.addEventListener( "DOMContentLoaded", function () {
+      var p = Popcorn( "#video" , {
+        pauseOnLinkClicked: true
+      })
+      .play();
     }, false);
   </script>
 </head>
   <p>The video pauses when links (anchor elements) are clicked</p>
   <div>
     <video id="video"
-      autobuffer="autobuffer"
+      autobuffer = "autobuffer"
       preload="auto"
       controls="controls"
-      width= '250px'
+      width="250px"
       poster="../../test/poster.png">
 
-      <source id='mp4'
+      <source id="mp4"
         src="../../test/trailer.mp4"
-        type='video/mp4; codecs="avc1, mp4a"' />
+        type="video/mp4; codecs='avc1, mp4a'" />
 
-      <source id='ogv'
+      <source id="ogv"
         src="../../test/trailer.ogv"
-        type='video/ogg; codecs="theora, vorbis"' />
+        type="video/ogg; codecs='theora, vorbis'" />
 
       <p>Your user agent does not support the HTML5 Video element.</p>
 
index 6362277cdf411b70cfeddb459a579063714588ae..90b30147650ff7c3aa4c7f79829ccfc9f7bc811f 100755 (executable)
   <ol id="qunit-tests"></ol>
   <div id="qunit-fixture">  </div>
 
-  <video id='video'
+  <video id="video"
     autobuffer="autobuffer"
     preload="auto"
     controls="controls"
-    width= '250px'
+    width= "250px"
     poster="../../test/poster.png">
 
-    <source id='mp4'
+    <source id="mp4"
       src="../../test/trailer.mp4"
-      type='video/mp4; codecs="avc1, mp4a"' />
+      type="video/mp4; codecs='avc1, mp4a'" />
 
-    <source id='ogv'
+    <source id="ogv"
       src="../../test/trailer.ogv"
-      type='video/ogg; codecs="theora, vorbis"' />
+      type="video/ogg; codecs='theora, vorbis'" />
 
     <p>Your user agent does not support the HTML5 Video element.</p>
   </video>
     autobuffer="autobuffer"
     preload="auto"
     controls="controls"
-    width= '250px'
+    width= "250px"
     poster="../../test/poster.png">
 
-    <source id='mp4'
+    <source id="mp4"
       src="../../test/trailer.mp4"
-      type='video/mp4; codecs="avc1, mp4a"'>
+      type="video/mp4; codecs='avc1, mp4a'">
 
-    <source id='ogv'
+    <source id="ogv"
       src="../../test/trailer.ogv"
-      type='video/ogg; codecs="theora, vorbis"'>
+      type="video/ogg; codecs='theora, vorbis'">
 
     <p>Your user agent does not support the HTML5 Video element.</p>
   </video>
index 0a9937ef0624d58ac4318c6231f58448c64245fc..8a5997c9aecb3c9883e5c8dcdce3fb362408fa7e 100755 (executable)
@@ -1,61 +1,66 @@
-test('Popcorn Pause Plugin', function () {
+test( "Popcorn Pause Plugin", function () {
 
   var expectedTests = 3 ,
-      anchorA = document.getElementById( 'anchorA' ),
-      anchorB = document.getElementById( 'anchorB' ),
-      tolerance = 0.250 ;
-      
+      anchorA = document.getElementById( "anchorA" ),
+      anchorB = document.getElementById( "anchorB" ),
+      tolerance = 0.250;
+
   var simulateClickOn = function ( paramElement ) {
-    
+
     if ( typeof paramElement.click == "Function" ) {
       paramElement.click() ;
       return ;
     }
-      
-    var evt = document.createEvent("MouseEvents");
-    
+
+    var evt = document.createEvent( "MouseEvents" );
+
     evt.initMouseEvent(
-      "click", true, true, window, 
+      "click", true, true, window,
       0, 0, 0, 0, 0, false, false,
       false, false, 0, null
-    ); 
-        
-    paramElement.dispatchEvent(evt);
+    );
+
+    paramElement.dispatchEvent( evt );
   };
-  
-  var otherVideo = Popcorn('#video2' , { pauseOnLinkClicked : true } )
-    .play() ;
-  
-  var popped = Popcorn('#video' , { pauseOnLinkClicked : true } )
-    .code ({
-      start: 2.000,
-      end: 4,
-      onStart: function ( options ) {
-        var currentTime = popped.currentTime() ;
-        simulateClickOn( anchorA ) ;
-        ok (
-          ( currentTime + tolerance >= 2 ) && ( currentTime - tolerance <= 2 ) ,
-          'Video successfully stopped with a click on an anchor at ' +
-          'second 2 approximately (' + currentTime + ')'
-        ) ;
-        //Continue playing
-        popped.play() ;
-      }
-    })
-    .code ({
-      start: 5.561,
-      end : 7,
-      onStart: function ( options ) {
-        var currentTime = popped.currentTime() ;
-        simulateClickOn( anchorB ) ;
-        ok (
-          ( currentTime + tolerance >= 5.561 ) && ( currentTime - tolerance <= 5.561 ) ,
-          'Video successfully stopped with a click on an anchor at ' +
-          'second 5.561 approximately (' + currentTime + ')'
-        ) ;
-        start() ;
-      }
-    });
+
+  var otherVideo = Popcorn( "#video2" , {
+        pauseOnLinkClicked: true
+      });
+  otherVideo.play() ;
+
+  var popped = Popcorn( "#video" , {
+        pauseOnLinkClicked: true
+      });
+
+  popped.code ({
+    start: 2.000,
+    end: 4,
+    onStart: function ( options ) {
+      var currentTime = popped.currentTime() ;
+      simulateClickOn( anchorA ) ;
+      ok (
+        ( currentTime + tolerance >= 2 ) && ( currentTime - tolerance <= 2 ) ,
+        "Video successfully stopped with a click on an anchor at " +
+        "second 2 approximately (" + currentTime + ")"
+      );
+      //Continue playing
+      popped.play() ;
+    }
+  })
+  .code ({
+    start: 5.561,
+    end : 7,
+    onStart: function ( options ) {
+      var currentTime = popped.currentTime() ;
+      simulateClickOn( anchorB ) ;
+      ok (
+        ( currentTime + tolerance >= 5.561 ) && ( currentTime - tolerance <= 5.561 ) ,
+        'Video successfully stopped with a click on an anchor at ' +
+        'second 5.561 approximately (' + currentTime + ')'
+      );
+    start() ;
+    }
+  });
 
   popped.volume(0);
   popped.play();
index bc5afee055df9fcf8ee4f97522c7bba5a4dced36..3b2ff517d327d433037bc4903d53c6e88ff243ba 100755 (executable)
@@ -2,35 +2,35 @@
 <html>
 <head>
   <title>Popcorn tagthisperson Plug-in Demo</title>
-  
+
   <script src="../../popcorn.js"></script>
   <script src="popcorn.tagthisperson.js"></script>
   <script>
-    document.addEventListener('DOMContentLoaded', function () {
-      var p = Popcorn('#video')
+    document.addEventListener( "DOMContentLoaded", function () {
+      var p = Popcorn( "#video" )
       .play() 
-      .volume(0)
+      .volume( 0 )
       .tagthisperson({
-        start: 0, // seconds
-        end: 10, // seconds
-        person: 'Anna Sob',
-        image: 'http://newshour.s3.amazonaws.com/photos%2Fspeeches%2Fguests%2FRichardNSmith_thumbnail.jpg',
-        href: 'http://annasob.wordpress.com',   
-        target: 'tagdiv'
-      } )
+        start: 0,
+        end: 10,
+        person: "Anna Sob",
+        image: "http://newshour.s3.amazonaws.com/photos%2Fspeeches%2Fguests%2FRichardNSmith_thumbnail.jpg",
+        href: "http://annasob.wordpress.com",
+        target: "tagdiv"
+      })
       .tagthisperson({
-        start: 5, // seconds
-        end: 15, // seconds
-        person: 'Scott',
-        href: 'http://scottdowne.wordpress.com/',
-        target: 'tagdiv'
-      } )
+        start: 5,
+        end: 15,
+        person: "Scott",
+        href: "http://scottdowne.wordpress.com/",
+        target: "tagdiv"
+      })
       .tagthisperson({
-        start: 0, // seconds
-        end: 15, // seconds
-        person: 'Mike',
-        target: 'tagdiv2'
-      } )
+        start: 0,
+        end: 15,
+        person: "Mike",
+        target: "tagdiv2"
+      })
     }, false);
 
   </script>
   <p> A separate tag displaying Anna Sob  with an image and a URL attached will appear at 0 seconds and disappear at 10 seconds.</p>
   <p> At 5 seconds Scott with a URL attached will be appended to this tag and disappear at 15 seconds.</p>
   <div>
-    <video id='video' 
-      controls preload='none' 
-      width= '250px'
-      poster="../../test/poster.png"> 
+    <video id="video"
+      controls preload="none"
+      width= "250px"
+      poster="../../test/poster.png">
 
-      <source id='mp4'
+      <source id="mp4"
         src="../../test/trailer.mp4"
-        type='video/mp4; codecs="avc1, mp4a"'> 
+        type="video/mp4; codecs='avc1, mp4a'">
 
-      <source id='ogv'
+      <source id="ogv"
         src="../../test/trailer.ogv"
-        type='video/ogg; codecs="theora, vorbis"'> 
+        type="video/ogg; codecs='theora, vorbis'">
 
       <p>Your user agent does not support the HTML5 Video element.</p> 
 
index c0db64a3c48d053fd17c1ff1e533ef37cbdaf604..d517466f5e546f0b71b6afaee20ac9ba9645a083 100755 (executable)
@@ -1,7 +1,7 @@
 // PLUGIN: tagthisperson
 
-(function (Popcorn) {
-    
+(function ( Popcorn ) {
+
   var peopleArray = [];
   // one People object per options.target
   var People = function() {
       return r.toString();
     };
   };
-  
+
   /**
-   * tagthisperson popcorn plug-in 
+   * tagthisperson popcorn plug-in
    * Adds people's names to an element on the page.
    * Options parameter will need a start, end, target, image and person.
    * Start is the time that you want this plug-in to execute
-   * End is the time that you want this plug-in to stop executing 
+   * End is the time that you want this plug-in to stop executing
    * Person is the name of the person who you want to tag
    * Image is the url to the image of the person - optional
-   * href is the url to the webpage of the person - optional   
-   * Target is the id of the document element that the text needs to be 
+   * href is the url to the webpage of the person - optional
+   * Target is the id of the document element that the text needs to be
    * attached to, this target element must exist on the DOM
-   * 
+   *
    * @param {Object} options
-   * 
+   *
    * Example:
      var p = Popcorn('#video')
         .tagthisperson({
@@ -45,9 +45,9 @@
    *
    */
   Popcorn.plugin( "tagthisperson" , ( function() {
-    
+
     return {
-    
+
       _setup: function( options ) {
         var exists = false,
             target = document.getElementById( options.target );
@@ -60,7 +60,7 @@
         // the idea here is to have one object per unique options.target
         for ( var i = 0; i < peopleArray.length; i++ ) {
           if ( peopleArray[ i ].name === options.target ) {
-            options._p = peopleArray[ i ];  
+            options._p = peopleArray[ i ];
             exists = true;
             break;
           }
@@ -72,9 +72,9 @@
         }
       },
       /**
-       * @member tagthisperson 
-       * The start function will be executed when the currentTime 
-       * of the video  reaches the start time provided by the 
+       * @member tagthisperson
+       * The start function will be executed when the currentTime
+       * of the video  reaches the start time provided by the
        * options variable
        */
       start: function( event, options ){
@@ -84,9 +84,9 @@
         document.getElementById( options.target ).innerHTML = options._p.toString();
       },
       /**
-       * @member tagthisperson 
-       * The end function will be executed when the currentTime 
-       * of the video  reaches the end time provided by the 
+       * @member tagthisperson
+       * The end function will be executed when the currentTime
+       * of the video  reaches the end time provided by the
        * options variable
        */
       end: function( event, options ){
       website: "annasob.wordpress.com"
     },
     options:{
-      start    : {elem:'input', type:'text', label:'In'},
-      end      : {elem:'input', type:'text', label:'Out'},
-      target   : 'tagthisperson-container',
-      person   : {elem:'input', type:'text', label:'Name'},
-      image    : {elem:'input', type:'text', label:'Image Src'},
-      href     : {elem:'input', type:'text', label:'URL'}   
+      start: {
+        elem: "input",
+        type: "text",
+        label: "In"
+      },
+      end: {
+        elem: "input",
+        type: "text",
+        label: "Out"
+      },
+      target : "tagthisperson-container",
+      person: {
+        elem: "input",
+        type: "text",
+        label: "Name"
+      },
+      image: {
+        elem: "input",
+        type: "text",
+        label: "Image Src"
+      },
+      href: {
+        elem: "input",
+        type: "text",
+        label: "URL"
+      }
     }
   });
 
index f5c181245ffb0c19aaf27100fbcecfcb9553351c..d18dae78da6ca9415ae94c70f424f48a5d18c8e6 100755 (executable)
@@ -4,14 +4,13 @@
   <title>Popcorn tagthisperson test</title>
   <link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
   <script src="../../test/qunit/qunit.js"></script>
-  <!-- 
-    do not move - this must be called immediately prior to 
+  <!--
+    do not move - this must be called immediately prior to
     popcorn-api-draft.js
   -->
-  
+
   <script src="../../popcorn.js"></script>
   <script src="popcorn.tagthisperson.js"></script>
-
   <script src="popcorn.tagthisperson.unit.js"></script>
 </head>
 <body>
   <h2 id="qunit-userAgent"></h2>
   <ol id="qunit-tests"></ol>
   <div id="qunit-fixture">  </div>
-  
-  <video id='video' 
-    controls preload='none' 
-    width= '250px'
-    poster="../../test/poster.png"> 
 
-    <source id='mp4'
+  <video id="video"
+    controls preload="none"
+    width= "250px"
+    poster="../../test/poster.png">
+
+    <source id="mp4"
       src="../../test/trailer.mp4"
-      type='video/mp4; codecs="avc1, mp4a"'> 
+      type="video/mp4; codecs='avc1, mp4a'">
 
-    <source id='ogv'
+    <source id="ogv"
       src="../../test/trailer.ogv"
-      type='video/ogg; codecs="theora, vorbis"'> 
+      type="video/ogg; codecs='theora, vorbis'">
 
-    <p>Your user agent does not support the HTML5 Video element.</p> 
+    <p>Your user agent does not support the HTML5 Video element.</p>
 
-  </video> 
-  <div id="tagdiv"></div>  
-  <div id="tagdiv2"></div>    
+  </video>
+  <div id="tagdiv"></div>
+  <div id="tagdiv2"></div>
 </body>
 </html>
index fad01cc8d0203a8409ba39c437d67390d4f082a5..da2f207010296a03d3f5495636c4e83e750fb888 100755 (executable)
@@ -1,55 +1,55 @@
-test("Popcorn tagthisperson Plugin", function () {
-  
+test( "Popcorn tagthisperson Plugin", function () {
+
   var popped = Popcorn( "#video" ),
-      expects = 8, 
+      expects = 8,
       count = 0,
-      tagdiv = document.getElementById( 'tagdiv' );
-      tagdiv2 = document.getElementById( 'tagdiv2' );
-  
-  expect(expects);
-  
+      tagdiv = document.getElementById( "tagdiv" );
+      tagdiv2 = document.getElementById( "tagdiv2" );
+
+  expect( expects );
+
   function plus() {
     if ( ++count === expects ) {
       start();
     }
   }
-  
+
   stop();
-   
-  ok( 'tagthisperson' in popped, "tagthisperson is a method of the popped instance" );
+
+  ok( "tagthisperson" in popped, "tagthisperson is a method of the popped instance" );
   plus();
-  
+
   equals( tagdiv.innerHTML, "", "initially, there is nothing inside the tagdiv" );
   plus();
-  
+
   popped.tagthisperson({
-    start: 0, // seconds
-    end: 1, // seconds
-    person: 'Anna Sob',
-    image: 'http://newshour.s3.amazonaws.com/photos%2Fspeeches%2Fguests%2FRichardNSmith_thumbnail.jpg',
-    href: 'http://annasob.wordpress.com',           
-    target: 'tagdiv'
+    start: 0,
+    end: 1,
+    person: "Anna Sob",
+    image: "http://newshour.s3.amazonaws.com/photos%2Fspeeches%2Fguests%2FRichardNSmith_thumbnail.jpg",
+    href: "http://annasob.wordpress.com",
+    target: "tagdiv"
   })
   .tagthisperson({
-    start: 1, // seconds
-    end: 2, // seconds
-    person: 'Scott',
-    href: 'http://scottdowne.wordpress.com/',
-    target: 'tagdiv'
+    start: 1,
+    end: 2,
+    person: "Scott",
+    href: "http://scottdowne.wordpress.com/",
+    target: "tagdiv"
   })
   .tagthisperson({
-    start: 1, // seconds
-    end: 2, // seconds
-    person: 'Mike',
-    target: 'tagdiv2'
-  })    
+    start: 1,
+    end: 2,
+    person: "Mike",
+    target: "tagdiv2"
+  })
   .tagthisperson({
-    start: 1, // seconds
-    end: 2, // seconds
-    person: 'Daniel',
-    target: 'tagdiv2'
-  })     
-  .volume(0);
+    start: 1,
+    end: 2,
+    person: "Daniel",
+    target: "tagdiv2"
+  })
+  .volume( 0 );
 
   popped.exec( 0, function() {
     equals( tagdiv.childElementCount, 2, "tagdiv now contains two child elements" );
index 563272cba5f7f880070b299539f61eaebc8362d0..5f0ce066322d9fe290bc90f166f95429968668d9 100644 (file)
@@ -2,28 +2,28 @@
 <html>
 <head>
   <title>Popcorn WebPage Plug-in Demo</title>
-  
+
   <script src="../../popcorn.js"></script>
   <script src="popcorn.webpage.js"></script>
   <script>
     document.addEventListener('DOMContentLoaded', function () {
       var p = Popcorn('#video')
-      .volume(0)
-      .play() 
+      .volume( 0 )
+      .play()
       .webpage({
-        id: "webpages-a", 
-        start: 0, // seconds
-        end: 5, // seconds
-        src: 'http://webmademovies.org/',
-        target: 'webpagediv'
-      } )
+        id: "webpages-a",
+        start: 0,
+        end: 5,
+        src: "http://webmademovies.org/",
+        target: "webpagediv"
+      })
       .webpage({
-        id: "webpages-b", 
-        start: 0, // seconds
-        end: 10, // seconds
-        src: 'http://zenit.senecac.on.ca/wiki/index.php/Processing.js',
-        target: 'webpagediv2'
-      } );
+        id: "webpages-b",
+        start: 0,
+        end: 10,
+        src: "http://zenit.senecac.on.ca/wiki/index.php/Processing.js",
+        target: "webpagediv2"
+      });
 
     }, false);
 
   <p> A Webpage displaying webmademovies.org will appear at 0 seconds and disappear at 5 seconds.</p>
   <p> A Webpage displaying zenit Processing.js wiki will appear at 0 seconds and disappear at 15 seconds.</p>
   <div>
-    <video id='video' 
-      controls preload='none' 
-      width= '250px'
-      poster="../../test/poster.png"> 
+    <video id="video"
+      controls preload="none"
+      width= "250px"
+      poster="../../test/poster.png">
 
-      <source id='mp4'
+      <source id="mp4"
         src="../../test/trailer.mp4"
-        type='video/mp4; codecs="avc1, mp4a"'> 
+        type="video/mp4; codecs='avc1, mp4a'">
 
-      <source id='ogv'
+      <source id="ogv"
         src="../../test/trailer.ogv"
-        type='video/ogg; codecs="theora, vorbis"'> 
+        type="video/ogg; codecs='theora, vorbis'">
 
-      <p>Your user agent does not support the HTML5 Video element.</p> 
+      <p>Your user agent does not support the HTML5 Video element.</p>
 
-    </video> 
+    </video>
   </div>
   <div id="webpagediv" width="50%" height="50%">
   <div id="webpagediv2">
index 1ac06a641b068530e7cff454d182b942fdd6bf91..7bd2feb5c75dba9c6fa37a7cb851bfc2bb78988c 100755 (executable)
@@ -1,24 +1,24 @@
 // PLUGIN: WEBPAGE
 
-(function (Popcorn) {
-  
+(function ( Popcorn ) {
+
   /**
-   * Webpages popcorn plug-in 
+   * Webpages popcorn plug-in
    * Creates an iframe showing a website specified by the user
    * Options parameter will need a start, end, id, target and src.
    * Start is the time that you want this plug-in to execute
-   * End is the time that you want this plug-in to stop executing 
+   * End is the time that you want this plug-in to stop executing
    * Id is the id that you want assigned to the iframe
-   * Target is the id of the document element that the iframe needs to be attached to, 
+   * Target is the id of the document element that the iframe needs to be attached to,
    * this target element must exist on the DOM
    * Src is the url of the website that you want the iframe to display
    *
    * @param {Object} options
-   * 
+   *
    * Example:
      var p = Popcorn('#video')
         .webpage({
-          id: "webpages-a", 
+          id: "webpages-a",
           start: 5, // seconds
           end: 15, // seconds
           src: 'http://www.webmademovies.org',