added double-click to expand codeblocks

This commit is contained in:
mDuo13
2014-05-21 22:14:34 -07:00
parent fdb130cb17
commit e41bb8b9b4
2 changed files with 9 additions and 2 deletions

6
js/expandcode.js Normal file
View File

@@ -0,0 +1,6 @@
$(document).on('flatdoc:ready', function() {
$('code').dblclick(function(eo) {
$(eo.target).toggleClass('expanded');
});
$('code').attr('title', 'Double-click to expand/collapse');
});