mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
删除多余字符
This commit is contained in:
1 parent
2cf7905d58
commit
14701f2141
3 files changed
+7
-6
No files matched your search
@@ -3,7 +3,7 @@ import { errorHandle, query, addClass } from './utils';
|
||||
export default class Template {
|
||||
constructor(art) {
|
||||
this.art = art;
|
||||
|
||||
|
||||
if (art.option.container instanceof Element) {
|
||||
this.$container = art.option.container;
|
||||
} else {
|
||||
@@ -22,9 +22,9 @@ export default class Template {
|
||||
);
|
||||
|
||||
if (art.whitelist.state) {
|
||||
this.initDesktop();
|
||||
this.desktop();
|
||||
} else {
|
||||
this.initMobile();
|
||||
this.mobile();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ export default class Template {
|
||||
return query(className, this.$container);
|
||||
}
|
||||
|
||||
initDesktop() {
|
||||
desktop() {
|
||||
this.$container.innerHTML = `
|
||||
<div class="art-video-player art-subtitle-show art-layer-show" style="--theme: ${this.art.option.theme}">
|
||||
<video class="art-video">
|
||||
@@ -126,7 +126,7 @@ export default class Template {
|
||||
this.$contextmenu = this.query('.art-contextmenus');
|
||||
}
|
||||
|
||||
initMobile() {
|
||||
mobile() {
|
||||
this.$container.innerHTML = `
|
||||
<div class="art-video-player">
|
||||
<video class="art-video"></video>
|
||||
|
||||
Reference in new issue
Block a user