wiz
This commit is contained in:
parent
ca72dae919
commit
bb34e47e46
3 changed files with 8 additions and 3 deletions
|
|
@ -33,6 +33,7 @@
|
|||
-moz-user-select: text;
|
||||
-ms-user-select: text;
|
||||
user-select: text;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.qrcode-box { cursor: pointer; }
|
||||
.qrcode-box.revealed { cursor: default; }
|
||||
|
|
@ -66,6 +67,8 @@
|
|||
font-size: 12px;
|
||||
}
|
||||
.qrcode-box.revealed .qr-veil { display: none; }
|
||||
.qrcode-viewport.revealed .qr-veil { display: none; }
|
||||
.qrcode-box.revealed .qrcode-viewport { backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
|
||||
|
||||
/* hide helper text when revealed to avoid overlap */
|
||||
.qrcode-box.revealed #click-text { display: none; }
|
||||
|
|
|
|||
|
|
@ -156,13 +156,15 @@ $(() => {
|
|||
|
||||
// Reveal on click: show string below and remove veil/heading
|
||||
codebox.off('click').on('click', (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if (!codebox.hasClass('revealed')) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
cs.text(connectString);
|
||||
codebox.addClass('revealed');
|
||||
codebox.find('.qr-veil').hide();
|
||||
clickText.hide();
|
||||
// Unbind to allow text selection and normal behavior after reveal
|
||||
codebox.off('click');
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue