updated ui

This commit is contained in:
polarDefender 2024-05-30 13:07:10 -07:00
parent 4c8fdee612
commit b368a77300
12 changed files with 243 additions and 25 deletions

19
static/js/connect.js Normal file
View 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)'
});
};
});
});