mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 11:40:13 +00:00
better events
This commit is contained in:
parent
c3079d81ff
commit
cd5e9a8c0a
@ -283,14 +283,14 @@ function processTitle(titleContainer) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
titleContainer.classList.add('title-container');
|
titleContainer.classList.add('title-container');
|
||||||
titleContainer.addEventListener('mouseover', () => {
|
titleContainer.addEventListener('mouseenter', () => {
|
||||||
const taButton = titleContainer.querySelector('.ta-button');
|
const taButton = titleContainer.querySelector('.ta-button');
|
||||||
if (!taButton) return;
|
if (!taButton) return;
|
||||||
if (!taButton.isChecked) checkVideoExists(taButton);
|
if (!taButton.isChecked) checkVideoExists(taButton);
|
||||||
taButton.style.opacity = 1;
|
taButton.style.opacity = 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
titleContainer.addEventListener('mouseout', () => {
|
titleContainer.addEventListener('mouseleave', () => {
|
||||||
const taButton = titleContainer.querySelector('.ta-button');
|
const taButton = titleContainer.querySelector('.ta-button');
|
||||||
if (!taButton) return;
|
if (!taButton) return;
|
||||||
taButton.style.opacity = 0;
|
taButton.style.opacity = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user