mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-23 05:05:50 +00:00
added double-click to expand codeblocks
This commit is contained in:
6
js/expandcode.js
Normal file
6
js/expandcode.js
Normal 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');
|
||||
});
|
||||
Reference in New Issue
Block a user