pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1649667 - /pdfbox/cmssite/trunk/templates/skeleton.html
Date Mon, 05 Jan 2015 21:29:51 GMT
Author: jahewson
Date: Mon Jan  5 21:29:51 2015
New Revision: 1649667

URL: http://svn.apache.org/r1649667
Log:
Allow siedebar to support noscript

Modified:
    pdfbox/cmssite/trunk/templates/skeleton.html

Modified: pdfbox/cmssite/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/templates/skeleton.html?rev=1649667&r1=1649666&r2=1649667&view=diff
==============================================================================
--- pdfbox/cmssite/trunk/templates/skeleton.html (original)
+++ pdfbox/cmssite/trunk/templates/skeleton.html Mon Jan  5 21:29:51 2015
@@ -49,6 +49,11 @@
     <script src="/bootstrap/js/bootstrap.min.js"></script>
     <script type="text/javascript">
         $(function() {
+            // collapse tree nodes dynamically to support noscript
+            $('.sidebar-node').addClass('collapsed');
+            $('#stable').removeClass('collapsed');
+
+            // toggle expand/collapse
             $('.sidebar-node > a').click(function(e) {
                 $(this).parent().toggleClass('collapsed');
                 e.preventDefault();
@@ -84,18 +89,18 @@
                     <li><a href="/team.html">Project Team</a></li>
                     
                     <li class="sidebar-header">Documentation</li>
-                    <li class="sidebar-node collapsed">
+                    <li class="sidebar-node">
                         <a href="#">Trunk</a>
                         <ul>
                             <li><a href="/docs/2.0.0-SNAPSHOT/javadocs/">API
Docs</a></li>
                         </ul>
                     </li>
-                    <li class="sidebar-node">
+                    <li class="sidebar-node" id="stable">
                         <a href="#">1.8.8</a>
                         <ul>
                             <li><a href="/1.8/architecture.html">Architecture</a></li>
                             <li><a href="/1.8/dependencies.html">Dependencies</a></li>
-                            <li class="sidebar-node collapsed">
+                            <li class="sidebar-node">
                                 <a href="#">Cookbook</a>
                                 <ul>
                                     <li><a href="/1.8/cookbook/documentcreation.html">Document
Creation</a></li>



Mime
View raw message