auto add class aplayer
This commit is contained in:
parent
5cbc875993
commit
75b86a6beb
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue