waldyrious / primerpedia

Simplified extracts of Wikipedia articles, showing just the basic information.
https://primerpedia.toolforge.org
Other
11 stars 7 forks source link

Move auxiliary functions to a separate utils.js file #36

Closed waldyrious closed 7 years ago

waldyrious commented 7 years ago

To avoid getting primerpedia.js too long, and to better separate primerpedia-specific functionality from generic DOM manipulation functions, I believe it could be a good idea to split the auxiliary functions (e.g. apiRequest, toggleVisibility, clearNode) to a separate file, say utils.js or somesuch.

The main goal is to keep the project's sources simple, concise, and easy to read (and thus welcoming to new contributors).

waldyrious commented 7 years ago

Fixed in #38 :)