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 6 years ago

waldyrious commented 6 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 6 years ago

Fixed in #38 :)