aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/code.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/code.js')
-rw-r--r--docs/code.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/code.js b/docs/code.js
index c07fa85..637a401 100644
--- a/docs/code.js
+++ b/docs/code.js
@@ -512,8 +512,13 @@ const becomeIntelligent = () => {
"code.language-bruijn span.definition",
);
definitions.forEach((definition) => {
- if (definition.innerText === decodeURI(hash).slice(1))
+ if (definition.innerText === decodeURI(hash).slice(1)) {
bruijnScroll(definition)();
+
+ // trigger hover/highlight effect
+ const hover = new Event("mouseenter");
+ definition.dispatchEvent(hover);
+ }
});
}
})