add-copy-button

This commit is contained in:
Eason010212
2024-08-27 22:51:08 +08:00
parent ca6be61078
commit be786cb77b
2 changed files with 14 additions and 1 deletions

View File

@@ -10,6 +10,18 @@ $(function() {
scriptcordova.src = "https://injection/www/cordova.js";
document.head.appendChild(scriptcordova);
}
$("#copypass").click(function(){
projectPass = $("#prjpass").text()
var input = document.createElement('input');
document.body.appendChild(input);
input.setAttribute('value', projectPass);
input.select();
if (document.execCommand('copy')) {
document.execCommand('copy');
}
document.body.removeChild(input);
showtext("密钥信息已复制到剪贴板")
})
})
$(function() {
get_width();
@@ -3862,4 +3874,4 @@ var exportProjects = function() {
} else
showtext("Unknown Error")
})
}
}