} );
};
-
-/*
- // Find element offset
- if (element.offsetParent) {
- do {
- offsetX += element.offsetLeft;
- offsetY += element.offsetTop;
- } while ((element = element.offsetParent));
- }
-*/
-
Popcorn.plugin( "subtitle" , {
manifest: {
this.container.style.top = offset( this.video ).top + this.video.offsetHeight - 65 + "px";
this.container.style.left = offset( this.video ).left + "px";
- this.video.parentNode.appendChild( this.container );
+ document.body.appendChild( this.container );
}
// if a target is specified, use that