Skip to content

Commit 75b86a6

Browse files
committed
auto add class aplayer
1 parent 5cbc875 commit 75b86a6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2>Wow, such a beautiful html5 music player</h2>
5252
<p>Made by <a href="https://www.anotherhome.net/" target="_blank">DIYgod</a>. Available on <a href="https://github.com/DIYgod/APlayer" target="_blank">GitHub</a>. Licensed MIT.</p>
5353
<hr>
5454
<h3>Normal</h3>
55-
<div id="player1" class="aplayer"></div>
55+
<div id="player1"></div>
5656
<p></p>
5757
<button onclick="ap1.play()">ap.play()</button>
5858
<button onclick="ap1.seek(100)">ap.seek(100)</button>

src/js/player.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class APlayer {
3030

3131
this.randomOrder = utils.randomOrder(this.options.music.length);
3232

33+
this.container.classList.add('aplayer');
3334
if (this.options.lrc) {
3435
this.container.classList.add('aplayer-withlrc');
3536
}

0 commit comments

Comments
 (0)