Skip to content

Commit

Permalink
t64 not fully complete v2
Browse files Browse the repository at this point in the history
  • Loading branch information
moussa1 committed Sep 30, 2011
1 parent 36bde09 commit 9d0e2ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions plugins/caption/popcorn.caption.html
Expand Up @@ -14,7 +14,7 @@
.caption({
start: 2, // seconds
end: 6, // seconds
text: 'this is a caption g money',
text: 'this is caption #1',
color: 'red',
size: 10,
posx: 100,
Expand All @@ -23,9 +23,9 @@
.caption({
start: 7, // seconds
end: 14, // seconds
text: 'this is a second caption g money power',
text: 'this is caption #2',
color: 'yellow',
size: 60,
size: 40,
posx: 0,
posy: 0,
} )
Expand All @@ -36,8 +36,8 @@
</head>
<body>
<h1 id="qunit-header">Popcorn Caption Plug-in Demo</h1>
<p> A subtitle displaying 'this is the first subtitle of 2011' will appear at 5 seconds and disappear at 15 seconds.</p>
<p> A subtitle displaying 'this is the second subtitle of 2011' will appear at 20 seconds and disappear at 45 seconds.</p>
<p> A caption displaying 'this is caption #1' will appear at 2 seconds and disappear at 6 seconds.</p>
<p> A caption displaying 'this is caption #2' will appear at 7 seconds and disappear at 14 seconds.</p>
<div>

<video id='video'
Expand Down
8 changes: 6 additions & 2 deletions plugins/caption/popcorn.caption.js
Expand Up @@ -122,8 +122,12 @@
//newdiv.style.top = "0px";
//newdiv.style.left = "0px";

newdiv.style.top = this.position().top + "px";
newdiv.style.left = "0px";
newdiv.style.top = this.position().top + 1 + "px";
newdiv.style.left = this.position().left + 1 + "px";

console.log( "position", this.position());

console.log( "newdiv position", newdiv.style.top );

//newdiv.style.border = "1px solid #0000ff";

Expand Down

0 comments on commit 9d0e2ce

Please sign in to comment.