Updates
This commit is contained in:
@@ -87,16 +87,30 @@
|
||||
<p><img src="/static/image/rustdesk/rd3.png"></p>
|
||||
<script type="text/javascript">
|
||||
/* сохраняем текстовое поле в переменную text */
|
||||
var TextKey = document.getElementById("inputTextKey");
|
||||
var TextKey = document.getElementById("inputS1");
|
||||
var TextS1 = document.getElementById("inputS2");
|
||||
var TextS2 = document.getElementById("inputTextKey");
|
||||
|
||||
/* сохраняем кнопку в переменную btn */
|
||||
var btnKey = document.getElementById("copyKey");
|
||||
var btnS1 = document.getElementById("copyS1");
|
||||
var btnS2 = document.getElementById("copyS2");
|
||||
|
||||
/* вызываем функцию при нажатии на кнопку */
|
||||
btnKey.onclick = function () {
|
||||
TextKey.select();
|
||||
document.execCommand("copy");
|
||||
}
|
||||
|
||||
btnS1.onclick = function () {
|
||||
TextS1.select();
|
||||
document.execCommand("copy");
|
||||
}
|
||||
|
||||
btnS2.onclick = function () {
|
||||
TextS2.select();
|
||||
document.execCommand("copy");
|
||||
}
|
||||
</script>
|
||||
{{UserBottom|safe}}
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user