init
This commit is contained in:
15
assets/js/tooltips.js
Normal file
15
assets/js/tooltips.js
Normal file
@@ -0,0 +1,15 @@
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
function attachHandlers(wordEl) {
|
||||
["mouseenter", "focus"].forEach(evt => {
|
||||
wordEl.addEventListener(evt, () => {
|
||||
});
|
||||
});
|
||||
wordEl.addEventListener(
|
||||
"touchstart",
|
||||
() => {
|
||||
},
|
||||
{ passive: true }
|
||||
);
|
||||
}
|
||||
document.querySelectorAll(".tooltip-word").forEach(attachHandlers);
|
||||
});
|
||||
Reference in New Issue
Block a user