mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 12:11:20 -08:00
add more files
This commit is contained in:
1 parent
5a59096f9b
commit
19a2636ea9
12 files changed
+350
-169
No files matched your search
@@ -0,0 +1,36 @@
|
||||
export default class Template {
|
||||
constructor(art) {
|
||||
this.art = art;
|
||||
this.init();
|
||||
}
|
||||
|
||||
init() {
|
||||
this.art.refs.$container.innerHTML = `
|
||||
<div class="artplayer-wrap">
|
||||
<video class="artplayer-video" webkit-playsinline playsinline></video>
|
||||
<div class="artplayer-controls"></div>
|
||||
<div class="artplayer-layers"></div>
|
||||
<div class="artplayer-loading"></div>
|
||||
<div class="artplayer-notice"></div>
|
||||
</div>
|
||||
`;
|
||||
this.art.refs.$wrap = this.art.refs.$container.querySelector(
|
||||
'.artplayer-wrap'
|
||||
);
|
||||
this.art.refs.$video = this.art.refs.$container.querySelector(
|
||||
'.artplayer-video'
|
||||
);
|
||||
this.art.refs.$controls = this.art.refs.$container.querySelector(
|
||||
'.artplayer-controls'
|
||||
);
|
||||
this.art.refs.$layers = this.art.refs.$container.querySelector(
|
||||
'.artplayer-layers'
|
||||
);
|
||||
this.art.refs.$loading = this.art.refs.$container.querySelector(
|
||||
'.artplayer-loading'
|
||||
);
|
||||
this.art.refs.$notice = this.art.refs.$container.querySelector(
|
||||
'.artplayer-notice'
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user