WaldiPL / Timetable

Timetable app for Firefox OS and Firefox Mobile
GNU General Public License v2.0
1 stars 0 forks source link

Move onevent-handlers to JavaScript files #6

Open Ryuno-Ki opened 9 years ago

Ryuno-Ki commented 9 years ago

For better maintainability and clean code it's best to not mix and match HTML and JavaScript. Hence I'd recommend to move the JavaScript code into a separate file and Node.addEventsListener('eventtype',callback) to a Node (for example var Node = document.querySelector('#sectionFoo');.