mcbingo icon indicating copy to clipboard operation
mcbingo copied to clipboard

Unify javascript method calls from html

Open EsBaTix opened this issue 3 months ago • 1 comments

Right now there are three ways in which a function is called.

  1. An HTML-Element has an onclick event linked
  2. A Link-Element has a "javascript:" target/url
  3. The $(document).ready(function() adds a listener to an HTML-Element

It would be easier for other maintainers to add to the project if we only used a single way to call javascript.


IMHO we should only use onclick events. It's the most transparent and well known way. I would be happy to implement this once a decision has been made.

EsBaTix avatar Sep 30 '25 20:09 EsBaTix

I think having everything as onclick is good, if it's possible. You're free to implement it as such!

WaterArcanum avatar Oct 01 '25 08:10 WaterArcanum