mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
artplayer-plugin-ads@1.0.3
This commit is contained in:
1 parent
d81f9d4f65
commit
1d4b2d58ac
9 files changed
+16
-8
No files matched your search
@@ -124,6 +124,10 @@ export default function artplayerPluginAds(option) {
|
||||
$close = query('.artplayer-plugin-ads-close', $timer);
|
||||
$countdown = query('.artplayer-plugin-ads-countdown', $timer);
|
||||
|
||||
if (option.playDuration >= option.totalDuration) {
|
||||
setStyle($close, 'display', 'none');
|
||||
}
|
||||
|
||||
$control = append(
|
||||
art.template.$ads,
|
||||
`<div class="artplayer-plugin-ads-control">
|
||||
|
||||
Reference in new issue
Block a user