auto add class aplayer

This commit is contained in:
DIYgod 2018-03-08 00:52:42 +08:00
parent 5cbc875993
commit 75b86a6beb
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
2 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,7 @@
<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>
<hr>
<h3>Normal</h3>
<div id="player1" class="aplayer"></div>
<div id="player1"></div>
<p></p>
<button onclick="ap1.play()">ap.play()</button>
<button onclick="ap1.seek(100)">ap.seek(100)</button>

View File

@ -30,6 +30,7 @@ class APlayer {
this.randomOrder = utils.randomOrder(this.options.music.length);
this.container.classList.add('aplayer');
if (this.options.lrc) {
this.container.classList.add('aplayer-withlrc');
}