//On document ready
document.addEventListener( "DOMContentLoaded", function() {
var player = Popcorn( Popcorn.vimeo( "player_1", "http://player.vimeo.com/video/11127501", {
- width: 500,
- height: 281
+ css: {
+ width: "500px",
+ height: "281px"
+ }
}) )
.footnote({
start: 5, // seconds
this._target.appendChild( this._container );
options = options || {};
+
+ options.css && Popcorn.extend( this._target.style, options.css );
this.addEventFn;
this.evtHolder;
this.evtHolder = new EventManager( this );
// For calculating position relative to video (like subtitles)
- this.width = options.width || this._target.style.width || "504px";
- this.height = options.height || this._target.style.height || "340px";
+ this.width = this._target.style.width || "504px";
+ this.height = this._target.style.height || "340px";
if ( !/[\d]%/.test( this.width ) ) {
this.offsetWidth = parseInt( this.width, 10 );