mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-09-12 12:12:14 +08:00
first commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export function createElementAtPosition(x = 0, y = 0, zIndex = 2147483647) {
|
||||
const element = document.createElement('div')
|
||||
element.style.position = 'fixed'
|
||||
element.style.zIndex = zIndex
|
||||
element.style.left = x + 'px'
|
||||
element.style.top = y + 'px'
|
||||
document.documentElement.appendChild(element)
|
||||
return element
|
||||
}
|
||||
Reference in New Issue
Block a user