mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
add ad
This commit is contained in:
1 parent
7688e770cd
commit
7eef8cd91e
4 files changed
+22
-6
No files matched your search
+17
-5
@@ -62,14 +62,26 @@
|
||||
});
|
||||
|
||||
player.layers.add({
|
||||
html: '23333',
|
||||
index: 999,
|
||||
name: 'test',
|
||||
index: 1,
|
||||
name: 'your-name',
|
||||
html: `
|
||||
<div>
|
||||
<img style="width: 100px" src="./img/yourName.webp">
|
||||
<p style="margin: 0;">点击关闭</p>
|
||||
</div>
|
||||
`,
|
||||
style: {
|
||||
'color': 'red'
|
||||
'font-size': '12px',
|
||||
'text-shadow': '0.5px 0.5px 0.5px rgba(0,0,0,.5)',
|
||||
'top': '20px',
|
||||
'right': '20px',
|
||||
'text-align': 'center',
|
||||
'opacity': '.9'
|
||||
}
|
||||
}, dom => {
|
||||
console.log(dom)
|
||||
dom.addEventListener('click', () => {
|
||||
dom.remove();
|
||||
});
|
||||
});
|
||||
|
||||
console.dir(Artplayer);
|
||||
|
||||
Reference in new issue
Block a user