I'm trying to implement "HoverCard" functionality on my e-learning website. The idea is to give definitions of terms if the user stumbles upon a word or a phrase. One of the scenarios could be following:

using 'ui.HoverCard' object from google that matches key words in an html page with a given list and shows the definitions if the user hovers over them. Any working example or tips would be extremely helpful.