MCPcopy Create free account
hub / github.com/IHA089/Drana-Infinity / handleCopyOutput

Function handleCopyOutput

static/js/script.js:906–915  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

904}
905
906function handleCopyOutput() {
907 navigator.clipboard.writeText(terminalOutput.textContent).then(() => {
908 copyOutputBtn.innerHTML = '<i class="fas fa-check"></i> Copied!';
909 setTimeout(() => {
910 copyOutputBtn.innerHTML = '<i class="fas fa-copy"></i> Copy';
911 }, 2000);
912 }).catch(err => {
913 console.error('Failed to copy text:', err);
914 });
915}
916
917function handleSaveOutput() {
918 const blob = new Blob([terminalOutput.textContent], { type: 'text/plain' });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected