|
@@ -52,12 +52,14 @@ t: 0; border: 0;" src="https://assets.github.com/img/bec6c51521dcc8148146135149f
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="menu">
|
|
<div id="menu">
|
|
- <ul>
|
|
|
|
- <li><a href="index.html">Overview</a></li> ·
|
|
|
|
- <li><a href="index.html#download">Download</a></li> ·
|
|
|
|
- <li><a href="documentation.html">Documentation</a></li> ·
|
|
|
|
- <li><a target="_blank" href="https://github.com/NicolasPetton/jtalk">Source</a></li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <div class="main">
|
|
|
|
+ <ul>
|
|
|
|
+ <li><a href="index.html">Overview</a></li> ·
|
|
|
|
+ <li><a href="index.html#download">Download</a></li> ·
|
|
|
|
+ <li><a id="doc_link" href="documentation.html">Documentation</a></li> ·
|
|
|
|
+ <li><a target="_blank" href="https://github.com/NicolasPetton/jtalk">Source</a></li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="content">
|
|
<div id="content">
|
|
@@ -164,15 +166,23 @@ t: 0; border: 0;" src="https://assets.github.com/img/bec6c51521dcc8148146135149f
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
-<!-- Add ids and anchors to doc titles -->
|
|
|
|
|
|
+<!-- Add anchors to doc titles and build the dropdown menu -->
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
|
+ jQuery('#menu .main').append("<ul id='dropdown'></ul>");
|
|
jQuery.each(jQuery('.doc h3'), function(i, heading) {
|
|
jQuery.each(jQuery('.doc h3'), function(i, heading) {
|
|
- jQuery(heading).attr({'id': jQuery(heading).text().replace(/ /g,"_")})
|
|
|
|
- jQuery(heading).html(
|
|
|
|
- i + ". " +
|
|
|
|
- jQuery(heading).html() +
|
|
|
|
- " <a href='#" + jQuery(heading).attr('id') + "'>¶</a>");
|
|
|
|
|
|
+ jQuery(heading).attr({'id': jQuery(heading).text().replace(/ /g,"_")});
|
|
|
|
+ jQuery(heading).html(i + ". " + jQuery(heading).html());
|
|
|
|
+ jQuery('#dropdown').append("<li><a href='#" + jQuery(heading).attr('id') + "'>" + jQuery(heading).text() + "</a></li>");
|
|
|
|
+ jQuery(heading).html(jQuery(heading).html() + " <a href='#" + jQuery(heading).attr('id') + "'>¶</a>");
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ jQuery('#doc_link')
|
|
|
|
+ .bind('mouseenter', function() {jQuery('#dropdown').show()})
|
|
|
|
+ .bind('mouseleave', function() {jQuery('#dropdown').hide()});
|
|
|
|
+ jQuery('#dropdown')
|
|
|
|
+ .bind('mouseenter', function() {jQuery('#dropdown').show()})
|
|
|
|
+ .bind('mouseleave', function() {jQuery('#dropdown').hide()})
|
|
|
|
+ .bind('click', function() {jQuery('#dropdown').hide()});
|
|
</script>
|
|
</script>
|
|
|
|
|
|
</div>
|
|
</div>
|