mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-23 13:26:32 +00:00
feat: add more plausible events
This commit is contained in:
parent
a73aca8ed9
commit
11959de11c
5 changed files with 63 additions and 22 deletions
assets/js
|
@ -64,6 +64,11 @@ function initPopover(baseURL, useContextualBacklinks) {
|
|||
})
|
||||
|
||||
el.classList.add("visible")
|
||||
plausible("Popover Hover", {
|
||||
props: {
|
||||
href: li.dataset.src
|
||||
}
|
||||
})
|
||||
})
|
||||
li.addEventListener("mouseout", () => {
|
||||
el.classList.remove("visible")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue