Skip to content

Commit

Permalink
subtitle control panel done v2
Browse files Browse the repository at this point in the history
  • Loading branch information
keyanr committed Oct 28, 2011
1 parent 4168006 commit 5e19f84
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions plugins/subtitle/popcorn.subtitle.html
Expand Up @@ -6,7 +6,23 @@
<script src="popcorn.subtitle.js"></script> <script src="popcorn.subtitle.js"></script>
<script> <script>
var fw, fcol; var fw, fcol;
// document.addEventListener( "DOMContentLoaded", function() { document.addEventListener( "DOMContentLoaded", function() {
var p = Popcorn( "#video" )
.volume( 0 )
.play()
.subtitle({
start: 5,
end: 15,
text: "this is the first subtitle of 2011",
})
.subtitle({
start: 20,
end: 45,
text: "this is the second subtitle of 2011",
});
document.getElementById("txt1").value="";

}, false);
function play(){ function play(){
var p = Popcorn( "#video" ) var p = Popcorn( "#video" )
.volume( 0 ) .volume( 0 )
Expand All @@ -25,6 +41,7 @@


function changeColor(color){ function changeColor(color){
fcol=color; fcol=color;
document.getElementById("txt1").value=color;
}; };


function pause(){ function pause(){
Expand All @@ -35,7 +52,7 @@
}); });
}; };


// }, false);


</script> </script>
</head> </head>
Expand Down Expand Up @@ -82,6 +99,14 @@ <h1 id="qunit-header">Popcorn Subtitle Plug-in Demo</h1>
<input type="button" value="white" onClick="changeColor('white');"/> <input type="button" value="white" onClick="changeColor('white');"/>
</td> </td>
</tr> </tr>
<tr>
<td>
The color you select is:
</td>
<td colspan="3">
<input type="textbox" value="" id="txt1"/>
</td>
</tr>
</table> </table>
</div> </div>


Expand Down

0 comments on commit 5e19f84

Please sign in to comment.