]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#384] Few small changes, mostly code cleanup
authorDavid Seifried <david.c.seifried@gmail.com>
Mon, 20 Jun 2011 13:14:56 +0000 (09:14 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Mon, 20 Jun 2011 13:14:56 +0000 (09:14 -0400)
plugins/timeline/popcorn.timeline.html
plugins/timeline/popcorn.timeline.js

index 65076555df32641565874219558ca22232413835..0dfcc7e337db463689c56f6b1c74bf6e2fa8b225 100644 (file)
@@ -87,7 +87,7 @@
     </video>
   </div>
   <div style="width:1000px">
-    <div id="timeline" style="float:left;width:400px;height:200px;overflow:auto"></div>
+    <div id="timeline"></div>
   </div>
 </body>
 </html>
index 3830fd0591f1bc14a86819416caa19cf6dbd3682..dd693a2486d5f63ed2924f88c30084893ba545e5 100644 (file)
   Popcorn.plugin( "timeline" , function( options ) {
 
     var target = document.getElementById( options.target );
+    target.style.float = "left";
+    target.style.width = "400px";
+    target.style.height = "200px";
+    target.style.overflow = "auto";
 
     // create a new div and append it to the parent div so nothing
     // that already exists in the parent div gets overwritten