Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zzossig/hugo-theme-zzo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzossig <zzossig@gmail.com>2020-12-11 19:19:44 +0300
committerzzossig <zzossig@gmail.com>2020-12-11 19:19:44 +0300
commit290800d19a793d00808910cfaa3d9ec5eeff39e5 (patch)
tree8801590a57dfbca8d470838e6e10213f68d285b0
parentdcd09019f6bcc74bac9d096123ac98e7801a0670 (diff)
Support CJK header link
-rw-r--r--layouts/partials/script/single-script.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html
index 456f2cf..4a23c59 100644
--- a/layouts/partials/script/single-script.html
+++ b/layouts/partials/script/single-script.html
@@ -373,7 +373,7 @@
var newElemOuter = document.createElement('span');
newElemOuter.classList.add('anchor');
newElemOuter.classList.add('hide');
- newElemOuter.setAttribute('data-clipboard-text', link);
+ newElemOuter.setAttribute('data-clipboard-text', decodeURI(link));
newElemOuter.style.position = 'relative';
var newElemInner = document.createElement('span');