mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
[FIX] expandable code in compiled rippled-apis page; linebreaks in pre>code
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
$(document).on('flatdoc:ready', function() {
|
||||
function make_code_expandable() {
|
||||
$('code').dblclick(function(eo) {
|
||||
$(eo.target).toggleClass('expanded');
|
||||
});
|
||||
$('code').attr('title', 'Double-click to expand/collapse');
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('flatdoc:ready', make_code_expandable);
|
||||
|
||||
Reference in New Issue
Block a user