require(['gitbook', 'jQuery'], function(gitbook, $) { const TERMINAL_HOOK = '**[terminal]' var pluginConfig = {}; var timeouts = {}; function addCopyButton(wrapper) { wrapper.append( $('') .click(function() { copyCommand($(this)); }) ); } function addCopyTextarea() { /* Add also the text area that will allow to copy */ $('body').append('