updated ui
This commit is contained in:
parent
4c8fdee612
commit
b368a77300
12 changed files with 243 additions and 25 deletions
19
static/js/connect.js
Normal file
19
static/js/connect.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
$(() => {
|
||||
$("#codebox").click(() => {
|
||||
const divText = $("#click-text").text();
|
||||
if(divText == "Click to copy"){
|
||||
var copytext = $("#qrcode")[0].title;
|
||||
var $temp = $("<textarea>");
|
||||
$("body").append($temp);
|
||||
$temp.val(copytext).select();
|
||||
document.execCommand("copy");
|
||||
$temp.remove();
|
||||
} else {
|
||||
$("#click-text").text("Click to copy");
|
||||
$("#qrcode").css({
|
||||
'filter': 'blur(0px)'
|
||||
});
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue