This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const itemJson = { | |
auction: '2020-01-02T04:27:51.501Z', | |
auctionprice: 62, | |
bound: false, | |
id: 7157356, | |
name: 'kickbuttowski', | |
rolls: [62, 76, 17, 11, 98, 80, 93, 75, 11, 67, 37, 49, 36, 47, 28, 71, 18, 83, 72, 37, 27], | |
slot: null, | |
stacks: null, | |
tier: 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getTooltipNode = async ($elementToHoverOver) => { | |
$elementToHoverOver.dispatchEvent(new Event('pointerenter')); | |
const closeTooltipPromise = new Promise(resolve => setTimeout(() => { | |
resolve($elementToHoverOver.querySelector('.slotdescription').cloneNode(true)); | |
$elementToHoverOver.dispatchEvent(new Event('pointerleave')); | |
}, 0)); | |
const $tooltip = await closeTooltipPromise; | |
return $tooltip; | |
} |