summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/hints.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scripts/hints.js b/src/scripts/hints.js
index 6efee48..fab48de 100644
--- a/src/scripts/hints.js
+++ b/src/scripts/hints.js
@@ -348,7 +348,7 @@ var hints = Object.freeze((function(){
idx = 0;
}
}
- focusHint(idx);
+ return focusHint(idx);
}
function fire() {
@@ -423,8 +423,11 @@ var hints = Object.freeze((function(){
}
/* get the new active hint */
if ((activeHint = validHints[newIdx])) {
+ var e = activeHint.e;
activeHint.focus();
- mouseEvent(activeHint.e, "mouseover");
+ mouseEvent(e, "mouseover");
+
+ return "OVER:" + (e instanceof HTMLImageElement ? "I:" : "A:") + getSrc(e);
}
}