The hacky soulution would be to put transparent buttons that fully cover the area you want to be clickable.
That being said, I’ve done onClick that worked in Safari before, so not sure if that’s the problem. I see in your code that you’ve got red underlines for code errors. You’re also using the $w.onReady slightly wrong. You should only call it once on the page, and have all the code that you want to run inside a single one instead of using on for each onClick.