CC Logo

Code Module: MenuSys

JQuery Dynamic Menu System

In order to avoid having to repeat code, this site features a dynamic menu system using jQuery's .append() function and a blank div on each page with the id ";menusys". The js file for this module also handles the collapsable menu sections.

Due to the fact that jQuery does not, as far as I can see, allow linebreaks mid-parameter, here is a formatted version of the HTML block from the .js file, in order to ensure that it is present in a readable form.

<p><a href="index.html"><span class="large">H</span>ome</a> 
<br /> <a id="menusys_code"><span class="large">C</span>ode</a> 
<span id="menusys_code_lower">
	<br /><strong>&#45;<span class="large">C</span>ode Modules&#58;</strong>
	<br /><a href="code_convinfluence.html">&#45;<span class="large">C</span>onvInfluence</a>
	<br /><a href="code_menusys.html">&#45;<span class="large">M</span>enuSys</a>
</span> 
<br /> <a id="menusys_writing"><span class="large">W</span>riting</a> 
<span id="menusys_writing_lower">
	<br /><strong>&#45;<span class="large">P</span>osition Papers&#58;</strong>
	<br /><a href="writing_recursion.html">&#45;<span class="large">R</span>ecursion</a>
	<br /><a href="writing_abstractnet.html">&#45;<span class="large">A</span>bstract Networks</a>
</span></p>