diff options
author | Jiachen Yang <farseerfc@gmail.com> | 2012-03-12 07:17:06 +0900 |
---|---|---|
committer | Jiachen Yang <farseerfc@gmail.com> | 2012-03-12 07:17:06 +0900 |
commit | 8f363a24355aba06f54ea4615facf7c278b859d9 (patch) | |
tree | 12c25950888ff79f7d2c81f14fea54a98d5b92f2 /bootstrap2/static | |
parent | f567ee85739eb9c9732aea09339bd9b7825891ff (diff) | |
download | pelican-themes-8f363a24355aba06f54ea4615facf7c278b859d9.tar.gz |
minor changes, added license file
Diffstat (limited to 'bootstrap2/static')
-rw-r--r-- | bootstrap2/static/js/autosidebar.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap2/static/js/autosidebar.js b/bootstrap2/static/js/autosidebar.js index 2f4a6d2..b9cef7e 100644 --- a/bootstrap2/static/js/autosidebar.js +++ b/bootstrap2/static/js/autosidebar.js @@ -7,20 +7,20 @@ jQuery.fn.justtext = function() { }; -$(document).ready(function(){ +$(document).ready(function(){ $("h1").each(function(){ $("#sidebar").append( - "<h4><a href='#'>"+$(this).justtext()+"</a></h4>" + "<li class=\"nav-header\"><h4>"+$(this).children()[0].justtext()+"</h4></li>" ); ul = $("<ul>"); $("h2",$(this).parent().parent()).each(function(){ ul.append( - "<li><a href='#'>"+$(this).justtext()+"</a></li>" + "<li class=\"nav-header\"><h5>"+$(this).justtext()+"</h5></li>" ); subul = $("<ul>"); $("h3",$(this).parent()).each(function(){ subul.append( - "<li><a href='#'>"+$(this).justtext()+"</a></li>" + "<li class=\"nav-header\"><h6>"+$(this).justtext()+"</h6></li>" ); }); ul.append(subul); |