diff options
author | amzrk2 | 2020-05-06 22:58:45 +0800 |
---|---|---|
committer | amzrk2 | 2020-05-06 22:58:45 +0800 |
commit | 30772e0dd8436062e325eda0f54e90f7e8696705 (patch) | |
tree | 2ed1000408743f555ec9a409d986af55b87237c6 /layouts/partials/scripts.html | |
parent | 41ef0bdcde0534402d430185052f4c553144487c (diff) | |
download | hugo-theme-fuji-30772e0dd8436062e325eda0f54e90f7e8696705.tar.gz hugo-theme-fuji-30772e0dd8436062e325eda0f54e90f7e8696705.tar.bz2 hugo-theme-fuji-30772e0dd8436062e325eda0f54e90f7e8696705.zip |
Sass structure full rebuild
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r-- | layouts/partials/scripts.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 894d5c3..839a87a 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -7,19 +7,19 @@ var commentCheckInterval = self.setInterval(checkUtterances, 500); function checkUtterances() { - commentStatus = $('#post-comment .utterances').attr('style'); + commentStatus = $('.post-comment .utterances').attr('style'); if (commentStatus == undefined) { commentLoadingTime += 1; if (commentLoadingTime > 20) { clearInterval(commentCheckInterval); - $('#post-comment').hide(); - $('#post-loading p').text('{{ i18n "postCommentLoadingFailed" }}'); - $('#post-loading i').attr('class', 'far fa-times-circle'); + $('.post-comment').hide(); + $('.post-loading p').text('{{ i18n "postCommentLoadingFailed" }}'); + $('.post-loading i').attr('class', 'far fa-times-circle'); } return; } else { clearInterval(commentCheckInterval); - $('#post-loading').hide(); + $('.post-loading').hide(); } } }); @@ -29,7 +29,7 @@ <!-- toc smooth scroll & APlayer cjk html anchor fix --> {{ if in .Site.Params.mainSections .Type }} <script> - $('#widget-toc a').click(function () { + $('.widget-toc a').click(function () { $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top }); |