wiz
This commit is contained in:
parent
ca72dae919
commit
bb34e47e46
3 changed files with 8 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ log() {
|
||||||
echo -e "$(echo "$message" | sed 's/\\e\[[0-9;]*m//g')" >> "$TMP_LOG_FILE"
|
echo -e "$(echo "$message" | sed 's/\\e\[[0-9;]*m//g')" >> "$TMP_LOG_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
SCRIPT_VERSION="0.2.1"
|
SCRIPT_VERSION="0.2.2"
|
||||||
REPO="shocknet/Lightning.Pub"
|
REPO="shocknet/Lightning.Pub"
|
||||||
BRANCH="master"
|
BRANCH="master"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
-moz-user-select: text;
|
-moz-user-select: text;
|
||||||
-ms-user-select: text;
|
-ms-user-select: text;
|
||||||
user-select: text;
|
user-select: text;
|
||||||
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
.qrcode-box { cursor: pointer; }
|
.qrcode-box { cursor: pointer; }
|
||||||
.qrcode-box.revealed { cursor: default; }
|
.qrcode-box.revealed { cursor: default; }
|
||||||
|
|
@ -66,6 +67,8 @@
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.qrcode-box.revealed .qr-veil { display: none; }
|
.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 */
|
/* hide helper text when revealed to avoid overlap */
|
||||||
.qrcode-box.revealed #click-text { display: none; }
|
.qrcode-box.revealed #click-text { display: none; }
|
||||||
|
|
|
||||||
|
|
@ -156,13 +156,15 @@ $(() => {
|
||||||
|
|
||||||
// Reveal on click: show string below and remove veil/heading
|
// Reveal on click: show string below and remove veil/heading
|
||||||
codebox.off('click').on('click', (e) => {
|
codebox.off('click').on('click', (e) => {
|
||||||
e.preventDefault();
|
|
||||||
e.stopPropagation();
|
|
||||||
if (!codebox.hasClass('revealed')) {
|
if (!codebox.hasClass('revealed')) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
cs.text(connectString);
|
cs.text(connectString);
|
||||||
codebox.addClass('revealed');
|
codebox.addClass('revealed');
|
||||||
codebox.find('.qr-veil').hide();
|
codebox.find('.qr-veil').hide();
|
||||||
clickText.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