dark
This commit is contained in:
parent
ea61561a33
commit
859646835e
38 changed files with 0 additions and 0 deletions
30
themes/dark/static/js/autosidebar.js
Normal file
30
themes/dark/static/js/autosidebar.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
jQuery.fn.justtext = function() {
|
||||
return $(this).clone()
|
||||
.children()
|
||||
.remove()
|
||||
.end()
|
||||
.text();
|
||||
|
||||
};
|
||||
|
||||
$(document).ready(function(){
|
||||
$("h1").each(function(){
|
||||
$("#sidebar").append(
|
||||
"<li class=\"nav-header\"><h4>"+$(this).children()[0].justtext()+"</h4></li>"
|
||||
);
|
||||
ul = $("<ul>");
|
||||
$("h2",$(this).parent().parent()).each(function(){
|
||||
ul.append(
|
||||
"<li class=\"nav-header\"><h5>"+$(this).justtext()+"</h5></li>"
|
||||
);
|
||||
subul = $("<ul>");
|
||||
$("h3",$(this).parent()).each(function(){
|
||||
subul.append(
|
||||
"<li class=\"nav-header\"><h6>"+$(this).justtext()+"</h6></li>"
|
||||
);
|
||||
});
|
||||
ul.append(subul);
|
||||
});
|
||||
$("#sidebar").append(ul);
|
||||
});
|
||||
});
|
6
themes/dark/static/js/bootstrap.min.js
vendored
Normal file
6
themes/dark/static/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
themes/dark/static/js/jquery-1.7.2.min.js
vendored
Normal file
4
themes/dark/static/js/jquery-1.7.2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue