mirror of
https://github.com/vladmandic/automatic
synced 2026-09-07 21:40:46 +02:00
Update setHints.js
This commit is contained in:
@@ -21,6 +21,11 @@ async function tooltipShow(e) {
|
||||
if (e.target.dataset.hint) {
|
||||
localeData.el.classList.add('tooltip-show');
|
||||
localeData.el.innerHTML = `<b>${e.target.textContent}</b><br>${e.target.dataset.hint}`;
|
||||
if (e.clientX > window.innerWidth / 2) {
|
||||
localeData.el.classList.add('tooltip-left');
|
||||
} else {
|
||||
localeData.el.classList.remove('tooltip-left');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user