|
|
@@ -14,6 +14,26 @@ function ShowWaitDiv() { |
|
|
|
$DE('loaddiv').style.display = 'block'; |
|
|
|
return true; |
|
|
|
} |
|
|
|
function DedeCopyToClipboard(text) { |
|
|
|
if (navigator.clipboard) { |
|
|
|
navigator.clipboard.writeText(text); |
|
|
|
} else { |
|
|
|
var textarea = document.createElement('textarea'); |
|
|
|
document.body.appendChild(textarea); |
|
|
|
// 隐藏此输入框 |
|
|
|
textarea.style.position = 'fixed'; |
|
|
|
textarea.style.clip = 'rect(0 0 0 0)'; |
|
|
|
textarea.style.top = '10px'; |
|
|
|
textarea.style.display = 'none'; |
|
|
|
textarea.value = text; |
|
|
|
textarea.select(); |
|
|
|
document.execCommand('copy', true); |
|
|
|
document.body.removeChild(textarea); |
|
|
|
} |
|
|
|
} |
|
|
|
function CopySystemInfo(txt) { |
|
|
|
DedeCopyToClipboard(txt); |
|
|
|
} |
|
|
|
$(function () { |
|
|
|
$.get("index_testenv.php", function (data) { |
|
|
|
if (data !== '') { |
|
|
|