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

View file

@ -2,8 +2,9 @@ $(() => {
let backup; let manual_backup;
$("#backup").click(() => {
backup = $("#backup").prop("checked");
$('#manual-backup').prop("checked",false);
const nextButton = $("#next-button");
if (backup || manual_backup) {
if (backup) {
nextButton.removeClass("hidden-button");
} else {
nextButton.addClass("hidden-button");
@ -11,8 +12,9 @@ $(() => {
});
$("#manual-backup").click(()=>{
manual_backup = $('#manual-backup').prop("checked");
$("#backup").prop("checked",false);
const nextButton = $("#next-button");
if(backup || manual_backup) {
if(manual_backup) {
nextButton.removeClass("hidden-button");
} else {
nextButton.addClass("hidden-button");

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)'
});
};
});
});