From 30772e0dd8436062e325eda0f54e90f7e8696705 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 6 May 2020 22:58:45 +0800 Subject: Sass structure full rebuild --- layouts/partials/scripts.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'layouts/partials/scripts.html') 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 @@ {{ if in .Site.Params.mainSections .Type }}