User talk:The Transhumanist/ViewAnnotationToggler.js: Difference between revisions

Content deleted Content added
Line 35:
{{User:The Transhumanist/Workshop boilerplate/Install}}
 
=={{User:The Transhumanist/Workshop boilerplate/Explanatory notes}} (source<!--includes codeh2 walkheading-through) ==->
 
This section explains the source code, in detail.
 
You can only use so many comments in the source code before you start to choke or bury the programming itself. So, I've put short summaries in the source code, and have provided in-depth explanations here. My intention is twofold:
# to thoroughly document the script so that even relatively new JavaScript beginners can understand what it does.
# to refresh my memory of exactly how the script works, in case I don't look at the source code (or any JavaScript) for weeks or months.
 
The explanatory notes include examples, and links to relevant documentation pages, tutorials, etc.
 
In addition to some standard [[JavaScript]] code, this script also relies heavily on the [[jQuery]] library.
 
If you have any questions, feel free to ask me ''[[#Discussions|at the bottom of this page under '''Discussions''']]''. Trying to answer them will help me learn JavaScript better.
 
=== General approach ===