From ca72dae919eb15afbc2b65a73cfc38cfa91624c4 Mon Sep 17 00:00:00 2001 From: shocknet-justin Date: Thu, 9 Oct 2025 20:57:55 -0400 Subject: [PATCH] wiz --- static/css/connect.css | 7 +++++++ static/js/wizard.js | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/static/css/connect.css b/static/css/connect.css index d66aa14c..e122420a 100644 --- a/static/css/connect.css +++ b/static/css/connect.css @@ -28,7 +28,14 @@ /* prevent overlap: hide connect string until revealed; click surface on box */ .qrcode-box #connectString { display: none; margin-top: 6px; } .qrcode-box.revealed #connectString { display: block; } +.qrcode-box.revealed #connectString { + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; +} .qrcode-box { cursor: pointer; } +.qrcode-box.revealed { cursor: default; } /* QR viewport and veil overlay */ .qrcode-viewport { diff --git a/static/js/wizard.js b/static/js/wizard.js index 7d98b372..1a6ad75f 100644 --- a/static/js/wizard.js +++ b/static/js/wizard.js @@ -146,6 +146,8 @@ $(() => { // Reset visual state codebox.removeClass('revealed'); cs.text(''); + codebox.find('.qr-veil').show(); + clickText.show(); if (qrElement) { while (qrElement.firstChild) qrElement.removeChild(qrElement.firstChild); // Pre-generate QR behind veil to entice reveal @@ -159,6 +161,8 @@ $(() => { if (!codebox.hasClass('revealed')) { cs.text(connectString); codebox.addClass('revealed'); + codebox.find('.qr-veil').hide(); + clickText.hide(); } }); })();