function createProgress(type, attributes) {
	    var progress = createElement('progress', extend(getAttributesFromSelector(this.config.selectors.display[type]), {
	      min: 0,
	      max: 100,
	      value: 0,
	      role: 'progressbar',
	      'aria-hidden': true
	    }, attributes)); // Create the label inside

	    if (type !== 'volume') {
	      progress.appendChild(createElement('span', null, '0'));
	      var suffixKey = {
	        played: 'played',
	        buffer: 'buffered'
	      }[type];
	      var suffix = suffixKey ? i18n.get(suffixKey, this.config) : '';
	      progress.innerText = "% ".concat(suffix.toLowerCase());
	    }

	    this.elements.display[type] = progress;
	    return progress;
	  }
function createProgress(type, attributes) {
	    var progress = createElement('progress', extend(getAttributesFromSelector(this.config.selectors.display[type]), {
	      min: 0,
	      max: 100,
	      value: 0,
	      role: 'progressbar',
	      'aria-hidden': true
	    }, attributes)); 

	    if (type !== 'volume') {
	      progress.appendChild(createElement('span', null, '0'));
	      var suffixKey = {
	        played: 'played',
	        buffer: 'buffered'
	      }[type];
	      var suffix = suffixKey ? i18n.get(suffixKey, this.config) : '';
	      progress.innerText = "% ".concat(suffix.toLowerCase());
	    }

	    this.elements.display[type] = progress;
	    return progress;
	  }
function createProgress ( type , attributes ) { var progress = createElement ( 'progress' , extend ( getAttributesFromSelector ( this . config . selectors . display [ type ] ) , { min : 0 , max : 100 , value : 0 , role : 'progressbar' , 'aria-hidden' : true } , attributes ) ) ; // Create the label inside if ( type !== 'volume' ) { progress . appendChild ( createElement ( 'span' , null , '0' ) ) ; var suffixKey = { played : 'played' , buffer : 'buffered' } [ type ] ; var suffix = suffixKey ? i18n . get ( suffixKey , this . config ) : '' ; progress . innerText = "% " . concat ( suffix . toLowerCase ( ) ) ; } this . elements . display [ type ] = progress ; return progress ; }
Create a <progress>
Create a <progress >