mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41:20 -08:00
refactor(vast): [PKG-VAST-03] isolate lifecycle ownership checkpoint
This commit is contained in:
1 parent
d5e1feadf5
commit
4f324a8438
30 files changed
+1453
-383
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import type { Utilities } from './types'
|
||||
|
||||
let nextId = 0
|
||||
|
||||
export function createContainer(utils: Utilities): HTMLDivElement {
|
||||
const container = utils.createElement('div')
|
||||
container.id = `art-vast-${Date.now()}-${++nextId}`
|
||||
utils.setStyles(container, {
|
||||
position: 'absolute',
|
||||
inset: '0',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
zIndex: '150',
|
||||
backgroundColor: 'black',
|
||||
display: 'none',
|
||||
pointerEvents: 'auto',
|
||||
})
|
||||
return container
|
||||
}
|
||||
Reference in new issue
Block a user