Skip to content
Permalink
Browse files

t64 not fully complete v2

  • Loading branch information...
moussa1 committed Sep 30, 2011
1 parent 36bde09 commit 9d0e2ce155066579e6698e2ede89bebdcb9e43c2
Showing with 11 additions and 7 deletions.
  1. +5 −5 plugins/caption/popcorn.caption.html
  2. +6 −2 plugins/caption/popcorn.caption.js
@@ -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,
@@ -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,
} )
@@ -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'
@@ -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";

0 comments on commit 9d0e2ce

Please sign in to comment.
You can’t perform that action at this time.