Add layout localization

This commit is contained in:
Cotes Chung
2021-07-21 01:01:09 +08:00
parent 2e76300d04
commit 0b29c0321f
35 changed files with 394 additions and 193 deletions

View File

@@ -2,7 +2,7 @@
* Copy current page url to clipboard.
*/
function copyLink(url) {
function copyLink(url, msg) {
if (!url || 0 === url.length) {
url = window.location.href;
}
@@ -13,6 +13,10 @@ function copyLink(url) {
document.execCommand("copy");
$temp.remove();
alert("Link copied successfully!");
let feedback = "Link copied successfully!";
if (msg && msg.length > 0) {
feedback = msg;
}
alert(feedback);
}