Skip to content

Commit

Permalink
trying on changing varible to affect the subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
keyanr committed Oct 3, 2011
1 parent 9a594c2 commit 8cb78f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions plugins/subtitle/popcorn.subtitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

(function ( Popcorn ) {

var fw = "bold";
var fcol = "red";
var i = 0,
createDefaultContainer = function( context ) {

Expand All @@ -14,17 +16,17 @@
// the video element must have height and width defined
style.fontSize = "18px";
style.width = media.offsetWidth + "px";
style.top = position.top + media.offsetHeight - ctxContainer.offsetHeight - 40 + "px";
style.top = position.top + "px";//+ media.offsetHeight - ctxContainer.offsetHeight - 40
style.left = position.left + "px";

setTimeout( updatePosition, 10 );
};

ctxContainer.id = Popcorn.guid();
style.position = "absolute";
style.color = "white";
style.textShadow = "black 2px 2px 6px";
style.fontWeight = "bold";
style.color = fcol;
style.textShadow = "black 12px 2px 6px";
style.fontWeight = fw;
style.textAlign = "center";

updatePosition();
Expand Down
2 changes: 1 addition & 1 deletion plugins/subtitle/popcorn.subtitle.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test( "Popcorn Subtitle Plugin", function() {
text: "this is the second subtitle of 2011"
})
.subtitle({
start: 5,
start: 4,
end: 7,
text: "this is the third subtitle of 2011"
} )
Expand Down

0 comments on commit 8cb78f7

Please sign in to comment.