1- console . log ( "\n %c APlayer 1.5.8 %c http://aplayer.js.org \n\n" , "color: #fadfa3; background: #030307; padding:5px 0;" , "background: #fadfa3; padding:5px 0;" ) ;
1+ console . log ( "\n %c APlayer 1.5.9 %c http://aplayer.js.org \n\n" , "color: #fadfa3; background: #030307; padding:5px 0;" , "background: #fadfa3; padding:5px 0;" ) ;
22
33require ( './APlayer.scss' ) ;
44
@@ -156,7 +156,7 @@ class APlayer {
156156 let eleHTML = `
157157 <div class="aplayer-pic" ${ ( this . music . pic ? ( `style="background-image: url('${ this . music . pic } ');"` ) : `` ) } >
158158 <div class="aplayer-button aplayer-play">
159- <button class="aplayer-icon aplayer-icon-play">`
159+ <button type="button" class="aplayer-icon aplayer-icon-play">`
160160 + this . getSVG ( 'play' )
161161 + ` </button>
162162 </div>
@@ -183,7 +183,7 @@ class APlayer {
183183 - <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>
184184 </span>
185185 <div class="aplayer-volume-wrap">
186- <button class="aplayer-icon aplayer-icon-volume-down" ${ this . isMobile ? 'style="display: none;"' : '' } >`
186+ <button type="button" class="aplayer-icon aplayer-icon-volume-down" ${ this . isMobile ? 'style="display: none;"' : '' } >`
187187 + this . getSVG ( 'volume-down' )
188188 + ` </button>
189189 <div class="aplayer-volume-bar-wrap">
@@ -192,10 +192,10 @@ class APlayer {
192192 </div>
193193 </div>
194194 </div>
195- <button class="aplayer-icon aplayer-icon-mode">`
195+ <button type="button" class="aplayer-icon aplayer-icon-mode">`
196196 + this . getSVG ( this . mode )
197197 + ` </button>
198- ${ ( this . multiple ? `<button class="aplayer-icon aplayer-icon-menu">`
198+ ${ ( this . multiple ? `<button type="button" class="aplayer-icon aplayer-icon-menu">`
199199 + this . getSVG ( 'menu' )
200200 + ` </button>` : `` ) }
201201 </div>
@@ -485,7 +485,7 @@ class APlayer {
485485 this . button . innerHTML = '' ;
486486 setTimeout ( ( ) => {
487487 this . button . innerHTML = `
488- <button class="aplayer-icon aplayer-icon-pause">`
488+ <button type="button" class="aplayer-icon aplayer-icon-pause">`
489489 + this . getSVG ( 'pause' )
490490 + ` </button>` ;
491491 } , 100 ) ;
@@ -521,7 +521,7 @@ class APlayer {
521521 this . button . innerHTML = '' ;
522522 setTimeout ( ( ) => {
523523 this . button . innerHTML = `
524- <button class="aplayer-icon aplayer-icon-play">`
524+ <button type="button" class="aplayer-icon aplayer-icon-play">`
525525 + this . getSVG ( 'play' )
526526 + ` </button>` ;
527527 } , 100 ) ;
0 commit comments