diff --git a/assets/webconfig/js/content_logging.js b/assets/webconfig/js/content_logging.js index 8ace208d..1e8ba516 100644 --- a/assets/webconfig/js/content_logging.js +++ b/assets/webconfig/js/content_logging.js @@ -93,11 +93,11 @@ $(document).ready(function() { if (sys.cpuRevision) info += 'CPU Revision: ' + sys.cpuRevision + '\n'; if (sys.cpuHardware) - info += 'CPU Hardware: ' + sys.cpuHardware + '\n'; + info += 'CPU Hardware: ' + sys.cpuHardware + '\n'; info += 'Kernel: ' + sys.kernelType+' ('+sys.kernelVersion+' (WS: '+sys.wordSize+'))' + '\n'; info += 'Qt Version: ' + sys.qtVersion + '\n'; - info += 'Python Version: ' + sys.pyVersion + '\n'; + info += 'Python Version: ' + sys.pyVersion + '\n'; info += 'Browser/OS: ' + navigator.userAgent + '\n\n'; //create prios @@ -169,12 +169,24 @@ $(document).ready(function() { messages = (event.response.result.messages); if(messages.length != 0 && !createdCont) { - $('#log_content').html('
'); + $('#log_content').html('\ +
\ + \ + '); createdCont = true; $('#btn_autoscroll').off().on('click',function() { toggleClass('#btn_autoscroll', "btn-success", "btn-danger"); }); + + $('#btn_clipboard').off().on('click',function() { + const temp = document.createElement('textarea'); + temp.textContent = document.getElementById("logmessages").textContent; + document.body.append(temp); + temp.select(); + document.execCommand("copy"); + temp.remove(); + }); } for(var idx = 0; idx < messages.length; idx++)