wiz
This commit is contained in:
parent
a01e144987
commit
ca72dae919
2 changed files with 11 additions and 0 deletions
|
|
@ -28,7 +28,14 @@
|
||||||
/* prevent overlap: hide connect string until revealed; click surface on box */
|
/* prevent overlap: hide connect string until revealed; click surface on box */
|
||||||
.qrcode-box #connectString { display: none; margin-top: 6px; }
|
.qrcode-box #connectString { display: none; margin-top: 6px; }
|
||||||
.qrcode-box.revealed #connectString { display: block; }
|
.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 { cursor: pointer; }
|
||||||
|
.qrcode-box.revealed { cursor: default; }
|
||||||
|
|
||||||
/* QR viewport and veil overlay */
|
/* QR viewport and veil overlay */
|
||||||
.qrcode-viewport {
|
.qrcode-viewport {
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,8 @@ $(() => {
|
||||||
// Reset visual state
|
// Reset visual state
|
||||||
codebox.removeClass('revealed');
|
codebox.removeClass('revealed');
|
||||||
cs.text('');
|
cs.text('');
|
||||||
|
codebox.find('.qr-veil').show();
|
||||||
|
clickText.show();
|
||||||
if (qrElement) {
|
if (qrElement) {
|
||||||
while (qrElement.firstChild) qrElement.removeChild(qrElement.firstChild);
|
while (qrElement.firstChild) qrElement.removeChild(qrElement.firstChild);
|
||||||
// Pre-generate QR behind veil to entice reveal
|
// Pre-generate QR behind veil to entice reveal
|
||||||
|
|
@ -159,6 +161,8 @@ $(() => {
|
||||||
if (!codebox.hasClass('revealed')) {
|
if (!codebox.hasClass('revealed')) {
|
||||||
cs.text(connectString);
|
cs.text(connectString);
|
||||||
codebox.addClass('revealed');
|
codebox.addClass('revealed');
|
||||||
|
codebox.find('.qr-veil').hide();
|
||||||
|
clickText.hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue