summaryrefslogtreecommitdiffstats
path: root/source/javascripts/navigation.js
diff options
context:
space:
mode:
authorTommy Chen <tommy351@gmail.com>2012-06-03 04:20:50 +0200
committerTommy Chen <tommy351@gmail.com>2012-06-03 04:20:50 +0200
commite3cc2b2ff5d96ed69c982c100692a1745bc261ef (patch)
tree364196089ecf8031a73a00ba5cb4ce3652dbc72f /source/javascripts/navigation.js
parent5ba7052e5f584b5859ae3d9b00b1847391989ca1 (diff)
downloadoctopress-theme-jeyzu-e3cc2b2ff5d96ed69c982c100692a1745bc261ef.zip
octopress-theme-jeyzu-e3cc2b2ff5d96ed69c982c100692a1745bc261ef.tar.gz
rewrite navigation.js
Diffstat (limited to 'source/javascripts/navigation.js')
-rw-r--r--source/javascripts/navigation.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/source/javascripts/navigation.js b/source/javascripts/navigation.js
deleted file mode 100644
index 652aafa..0000000
--- a/source/javascripts/navigation.js
+++ /dev/null
@@ -1,16 +0,0 @@
-(function($){
- var appends = '<option>Menu</option>';
-
- $('.menu .main > li').each(function(){
- var link = $(this).children('a');
- appends += '<option value="'+link.attr('href')+'">'+link.html()+'</option>';
- $(this).find('li').each(function(){
- var link = $(this).children('a');
- appends += '<option value="'+link.attr('href')+'">- '+link.html()+'</option>';
- });
- });
-
- $('nav.menu').append('<select>'+appends+'</select>').on('change', 'select', function(){
- location.href = $(this).val();
- });
-})(jQuery); \ No newline at end of file