aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/javascripts
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-07-15 15:50:48 -0400
committerBrandon Mathis <brandon@imathis.com>2011-07-15 15:50:48 -0400
commit8b6d83ae6052ee09879d30f2849716fa8e692bfe (patch)
treef00acca4b6691c96dc420d8a80f8b0b7fff8affa /.themes/classic/source/javascripts
parent4443fd442973bd7e8a2a14e6a2c8a6150cb80b7c (diff)
downloadmy_new_personal_website-8b6d83ae6052ee09879d30f2849716fa8e692bfe.tar.xz
my_new_personal_website-8b6d83ae6052ee09879d30f2849716fa8e692bfe.zip
1. Udated category layout
2. Improved scoping and styling for links 3. Sidebar collapse improvements
Diffstat (limited to '.themes/classic/source/javascripts')
-rw-r--r--.themes/classic/source/javascripts/octopress.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js
index 6a5ad2ea..bdc47683 100644
--- a/.themes/classic/source/javascripts/octopress.js
+++ b/.themes/classic/source/javascripts/octopress.js
@@ -9,15 +9,13 @@ function getNav(){
});
}
function addSidebarToggler() {
- $('#content').append('<a href="#" class="toggle-sidebar">&raquo;</a>');
+ $('#content').append('<span class="toggle-sidebar"></span>');
$('.toggle-sidebar').bind('click', function(e){
e.preventDefault();
if($('body').hasClass('collapse-sidebar')){
$('body').removeClass('collapse-sidebar');
- e.target.innerHTML = '&raquo;';
} else {
$('body').addClass('collapse-sidebar');
- e.target.innerHTML = '&laquo;';
}
});
sections = $('aside[role=sidebar] > section')