How do I make my UI custom card clickable?

I have a sensor to fetch local public transport schedule and populate a sensor attributes. And I have a UI transport card placed on an entrance dashboard. the sensor update is scheduled for morning hours. This way the card displays quite fresh information in morning hours. For the rest of the day to get the sensor updated there is button on the dashboard to run the update script. Works pretty well. But I want to get rid this button and make the transport card clickable to run the sensor updating script.

Is the any javascript example processing clicking events and trigger the HA scripts I can embed into my card?