2019-10-13 15:47:11 -05:00
|
|
|
// Add the mouse listeners for the above functions
|
|
|
|
function linkHover() {
|
2019-10-15 09:04:21 -05:00
|
|
|
window.onmouseover = function(event) {
|
2020-04-20 12:14:43 -05:00
|
|
|
var closestAnchor = event.target.closest('a')
|
|
|
|
if (closestAnchor) {
|
|
|
|
window.webkit.messageHandlers.mouseDidEnter.postMessage(closestAnchor.href);
|
2019-10-15 09:04:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
window.onmouseout = function(event) {
|
2020-04-20 12:14:43 -05:00
|
|
|
var closestAnchor = event.target.closest('a')
|
|
|
|
if (closestAnchor) {
|
|
|
|
window.webkit.messageHandlers.mouseDidExit.postMessage(closestAnchor.href);
|
2019-10-15 09:04:21 -05:00
|
|
|
}
|
|
|
|
}
|
2019-10-13 15:47:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function postRenderProcessing() {
|
|
|
|
linkHover()
|
|
|
|
}
|