mcbingo
mcbingo copied to clipboard
Unify javascript method calls from html
Right now there are three ways in which a function is called.
- An HTML-Element has an onclick event linked
- A Link-Element has a "javascript:" target/url
- 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.
I think having everything as onclick is good, if it's possible. You're free to implement it as such!