]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Removed dependencies, fixed naming conventions [#169 state:peer-review-requested]
authorstevenaw <sweerdenburg@gmail.com>
Thu, 20 Jan 2011 16:50:13 +0000 (11:50 -0500)
committerstevenaw <sweerdenburg@gmail.com>
Thu, 20 Jan 2011 16:50:13 +0000 (11:50 -0500)
plugins/lastfm/popcorn.lastfm.html
plugins/lastfm/popcorn.lastfm.js

index e5da20aec80bb41de288177b898d5b90a59b621c..72f79b372e0f32701bb0acae1d7877dbf403cc68 100644 (file)
@@ -9,7 +9,7 @@
   <script>
     document.addEventListener('DOMContentLoaded', function () {
       var p = Popcorn('#video')
-      .play() 
+      .play()
       .lastfm({
         start: 5, // seconds
         end: 15, // seconds
@@ -40,7 +40,9 @@
 <body>
   <h1 id="qunit-header">Popcorn LastFM Plug-in Demo</h1>
   <p> Artist information for 'yacht' will appear at 5 seconds and disappear at 15 seconds.</p>
+  <p> Artist information for 'The Beatles' will appear at 10 seconds and disappear at 20 seconds.</p>
   <p> Artist information for 'Coldplay' will appear at 20 seconds and disappear at 45 seconds.</p>
+  <p> Artist information for 'yacht' will appear at 25 seconds and disappear at 40 seconds.</p>
   <div>
     <video id='video' 
       controls preload='none' 
index 789fae78f99e87a2600099ed8d7782acfca74417..2b03be42fcbb093ea1efcb0e05e8f77f0889e0d2 100644 (file)
@@ -65,10 +65,10 @@ var lastFMcallback;
           script.type = "text/javascript";
           head.insertBefore( script, head.firstChild );
           
-          _artists[options.artist] = "Unknown information";
+          _artists[options.artist] = "Information unavailable";
         }
         
-        lastFMcallback = function(data){          
+        lastFMcallback = function(data){
           var htmlString = '<h3>'+data.artist.name+'</h3>';
           htmlString += '<a href="'+data.artist.url+'" target="_blank" style="float:left;margin:0 10px 0 0;"><img src="'+ data.artist.image[2]['#text'] +'" alt=""></a>';
           htmlString += '<p>'+ data.artist.bio.summary +'</p>';