mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
移除多余文件
This commit is contained in:
1 parent
c5c4cf73eb
commit
74bc297e8f
39 files changed
+76
-16934
No files matched your search
@@ -25,7 +25,6 @@ export default class Template {
|
||||
|
||||
static get html() {
|
||||
return `
|
||||
<div class="art-undercover"></div>
|
||||
<div class="art-video-player art-subtitle-show art-layer-show">
|
||||
<video class="art-video"></video>
|
||||
<div class="art-poster"></div>
|
||||
@@ -39,6 +38,7 @@ export default class Template {
|
||||
<div class="art-progress"></div>
|
||||
<div class="art-controls">
|
||||
<div class="art-controls-left"></div>
|
||||
<div class="art-controls-middle"></div>
|
||||
<div class="art-controls-right"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -102,7 +102,6 @@ export default class Template {
|
||||
this.$container.innerHTML = Template.html;
|
||||
}
|
||||
|
||||
this.$undercover = this.query('.art-undercover');
|
||||
this.$player = this.query('.art-video-player');
|
||||
this.$video = this.query('.art-video');
|
||||
this.$poster = this.query('.art-poster');
|
||||
@@ -112,6 +111,7 @@ export default class Template {
|
||||
this.$progress = this.query('.art-progress');
|
||||
this.$controls = this.query('.art-controls');
|
||||
this.$controlsLeft = this.query('.art-controls-left');
|
||||
this.$controlsMiddle = this.query('.art-controls-middle');
|
||||
this.$controlsRight = this.query('.art-controls-right');
|
||||
this.$layer = this.query('.art-layers');
|
||||
this.$loading = this.query('.art-loading');
|
||||
@@ -135,9 +135,7 @@ export default class Template {
|
||||
if (backdrop) {
|
||||
addClass(this.$settingInner, 'art-backdrop-filter');
|
||||
addClass(this.$contextmenu, 'art-backdrop-filter');
|
||||
if (this.$info) {
|
||||
addClass(this.$info, 'art-backdrop-filter');
|
||||
}
|
||||
addClass(this.$info, 'art-backdrop-filter');
|
||||
}
|
||||
|
||||
if (this.art.isMobile) {
|
||||
@@ -155,8 +153,8 @@ export default class Template {
|
||||
this.$video = this.query('.art-video');
|
||||
}
|
||||
|
||||
destroy(remove) {
|
||||
if (remove) {
|
||||
destroy(removeHtml) {
|
||||
if (removeHtml) {
|
||||
this.$container.innerHTML = '';
|
||||
} else {
|
||||
addClass(this.$player, 'art-destroy');
|
||||
|
||||
Reference in new issue
Block a user