mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 03:51:54 +02:00
Merge pull request #1443 from sakarie9/dev
🐛 Fix TOC scroll indicator with CJK characters
This commit is contained in:
commit
83b9670c7e
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
|||
h.each(function (i, e) {
|
||||
e = $(e);
|
||||
if (e.offset().top - $(window).height()/3 <= currentScroll) {
|
||||
id = e.attr('id');
|
||||
id = decodeURIComponent(e.attr('id'));
|
||||
}
|
||||
});
|
||||
var active = $toc.find('a.active');
|
||||
|
@ -62,4 +62,4 @@
|
|||
}
|
||||
})();
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue