diff --git a/edirom-audio-player.js b/edirom-audio-player.js index 79be830..f3b1aee 100644 --- a/edirom-audio-player.js +++ b/edirom-audio-player.js @@ -45,36 +45,9 @@ class EdiromAudioPlayer extends HTMLElement { getPlayerHTML() { let playerInnerHTML; - - switch(this.displaymode) { - case 'hidden': - playerInnerHTML = this.getControlsHTML(['replay', 'prev', 'play', 'next', 'tracksRemove']); - break; - case 'controls-sm': - playerInnerHTML = this.getControlsHTML(['replay', 'prev', 'play', 'next', 'tracksRemove']); - break; - case 'controls-md': - playerInnerHTML = this.getControlsHTML(['replay', 'prev', 'play', 'next', 'tracksRemove']); - playerInnerHTML += this.getTimeHTML(); - break; - case 'controls-lg': - playerInnerHTML = this.getControlsHTML(['replay', 'prev', 'play', 'next', 'tracksRemove']); - playerInnerHTML += this.getTimeHTML(); - playerInnerHTML += this.getTracksHTML(); - break; - case 'tracks-sm': - playerInnerHTML = this.getTracksHTML(); - break; - case 'tracks-md': - playerInnerHTML = this.getTracksHTML(); - break; - case 'tracks-lg': - playerInnerHTML = this.getTracksHTML(); - break; - default: - playerInnerHTML = '
Error: Invalid displaymode "'+this.displaymode+'"
'; - console.log("Invalid displaymode: '"+this.displaymode+"'"); - } + playerInnerHTML = this.getControlsHTML(['prev', 'play', 'next', 'tracksRemove']); + playerInnerHTML += this.getTimeHTML(); + playerInnerHTML += this.getTracksHTML(); return '