dist/js/le-player-full.js
/**
	   * Remove unnecessary attributes, and set some attrs from options (loop, poster etc...). Create main DOM objects
	   *
	   * @override
	   */
Remove unnecessary attributes, and set some attrs from options (loop, poster etc...). Create main DOM objects
@override
Remove unnecessary attributes and set some attrs from options ( loop poster etc ... ) . Create main DOM objects @override
function createElement() {
				var options = this.options;
				var element = this._element;
				this.element = (0, _utils.createEl)('div');
				this.element = this.element.addClass('leplayer').attr('tabindex', 0).css('width', options.width && '100%').css('max-width', options.width);
				this.errorDisplay = new _ErrorDisplay2.default(this);
				this.playButton = new _PlayButton2.default(this);
				this.loader = (0, _jquery2.default)('<div />').addClass('leplayer-loader-container').append(new _Icon2.default(this, {
					iconName: 'refresh',
					className: 'leplayer-loader-container__icon'
				}).element);
				this.splashIcon = new _SplashIcon2.default(this);
				this.videoContainer = (0, _utils.createEl)('div', {
					className: 'leplayer-video'
				}).append(this.errorDisplay.element).append(this.playButton.element).append(this.loader).append(this.splashIcon.element);
				this.poster = new _Poster2.default(this);
				this.videoContainer.append(this.poster.element);
				var lastTimer = new _Time2.default(this, {
					fn: function fn(player) {
						var video = player.video;
						return (0, _utils.secondsToTime)(video.duration - video.currentTime);
					}
				});
				if (this.options.videoInfo) {
					console.warn('options.videoInfo is deprecated, please use istead options.description');
				}
				this.infoElement = (0, _utils.createEl)('div', {
					className: 'leplayer__info'
				}).append((0, _utils.createEl)('div', {
					className: 'leplayer__title',
					html: this.options.title || ""
				})).append((0, _utils.createEl)('div', {
					className: 'leplayer__video-info',
					html: this.options.description || this.options.videoInfo || ""
				})).append((0, _utils.createEl)('div', {
					className: 'leplayer__last',
					html: '\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u0441\u044F \u0447\u0435\u0440\u0435\u0437 '
				}).append(lastTimer.element));
				this.innerElement = (0, _jquery2.default)('<div />').addClass('leplayer__inner').append(this.videoContainer).append(this.infoElement);
				this.element = this.element.append(this.innerElement);
				this.addClass('leplayer--paused');
				this.addClass('leplayer--virgin');
				if (_browser.IS_IPHONE) {
					this.addClass('leplayer--iphone');
				}
				if (_browser.IS_ANDROID) {
					this.addClass('leplayer--android');
				}
				if (_browser.IS_MOBILE) {
					this.addClass('leplayer--mobile');
				}
				if (options.sectionContainer) {
					this.sectionsContainer = (0, _jquery2.default)(options.sectionContainer);
				}
				element.before(this.element);
				this.videoContainer.append(element);
				return this.element;
			}
function createElement ( ) { var options = this . options ; var element = this . _element ; this . element = ( 0 , _utils . createEl ) ( 'div' ) ; this . element = this . element . addClass ( 'leplayer' ) . attr ( 'tabindex' , 0 ) . css ( 'width' , options . width && '100%' ) . css ( 'max-width' , options . width ) ; this . errorDisplay = new _ErrorDisplay2 . default ( this ) ; this . playButton = new _PlayButton2 . default ( this ) ; this . loader = ( 0 , _jquery2 . default ) ( '<div />' ) . addClass ( 'leplayer-loader-container' ) . append ( new _Icon2 . default ( this , { iconName : 'refresh' , className : 'leplayer-loader-container__icon' } ) . element ) ; this . splashIcon = new _SplashIcon2 . default ( this ) ; this . videoContainer = ( 0 , _utils . createEl ) ( 'div' , { className : 'leplayer-video' } ) . append ( this . errorDisplay . element ) . append ( this . playButton . element ) . append ( this . loader ) . append ( this . splashIcon . element ) ; this . poster = new _Poster2 . default ( this ) ; this . videoContainer . append ( this . poster . element ) ; var lastTimer = new _Time2 . default ( this , { fn : function fn ( player ) { var video = player . video ; return ( 0 , _utils . secondsToTime ) ( video . duration - video . currentTime ) ; } } ) ; if ( this . options . videoInfo ) { console . warn ( 'options.videoInfo is deprecated, please use istead options.description' ) ; } this . infoElement = ( 0 , _utils . createEl ) ( 'div' , { className : 'leplayer__info' } ) . append ( ( 0 , _utils . createEl ) ( 'div' , { className : 'leplayer__title' , html : this . options . title || "" } ) ) . append ( ( 0 , _utils . createEl ) ( 'div' , { className : 'leplayer__video-info' , html : this . options . description || this . options . videoInfo || "" } ) ) . append ( ( 0 , _utils . createEl ) ( 'div' , { className : 'leplayer__last' , html : '\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u0441\u044F \u0447\u0435\u0440\u0435\u0437 ' } ) . append ( lastTimer . element ) ) ; this . innerElement = ( 0 , _jquery2 . default ) ( '<div />' ) . addClass ( 'leplayer__inner' ) . append ( this . videoContainer ) . append ( this . infoElement ) ; this . element = this . element . append ( this . innerElement ) ; this . addClass ( 'leplayer--paused' ) ; this . addClass ( 'leplayer--virgin' ) ; if ( _browser . IS_IPHONE ) { this . addClass ( 'leplayer--iphone' ) ; } if ( _browser . IS_ANDROID ) { this . addClass ( 'leplayer--android' ) ; } if ( _browser . IS_MOBILE ) { this . addClass ( 'leplayer--mobile' ) ; } if ( options . sectionContainer ) { this . sectionsContainer = ( 0 , _jquery2 . default ) ( options . sectionContainer ) ; } element . before ( this . element ) ; this . videoContainer . append ( element ) ; return this . element ; }
Remove unnecessary attributes, and set some attrs from options (loop, poster etc...).
Remove unnecessary attributes and set some attrs from options ( loop poster etc ... ) .
/**
	    * Error display component.
	    *
	    * @type {ErrorDisplay}
	    * @memberof! Player#
	    */ /**
	    * Play button component.
	    *
	    * @type {PlayButton}
	    * @memberof! Player#
	    */ // TODO: Вынести это в отдельнеый компонент /**
	    * Splash icon component.
	    *
	    * @type {SplashIcon}
	    * @memberof! Player#
	    */