From dd1ed4d0d02843d268a3e313e003c22897d63592 Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Sun, 27 Aug 2023 17:03:59 +0530 Subject: [PATCH] inline script issues correction --- _includes/likes.html | 6 +++--- _includes/views.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_includes/likes.html b/_includes/likes.html index caeb6b2..d62bf67 100644 --- a/_includes/likes.html +++ b/_includes/likes.html @@ -34,12 +34,12 @@ const likesCount = document.getElementById("likes-count"); const likesLoader = document.getElementById("likes-loader"); - likesLoader.style.display = "none" + likesLoader.style.display = "none"; let likesAmount = likesCount.innerHTML; function onLoadAndClick() { - likesLoader.style.display = "inline-flex" + likesLoader.style.display = "inline-flex"; likesCount.style.display = "none"; heartIcon.style.pointerEvents = 'none'; } @@ -53,7 +53,7 @@ heartIcon.classList.toggle("liked"); } likesCount.innerHTML = result; - likesLoader.style.display = "none" + likesLoader.style.display = "none"; likesCount.style.display = "inline-flex"; heartIcon.style.pointerEvents = 'auto'; }) diff --git a/_includes/views.html b/_includes/views.html index fe42695..1dd75b6 100644 --- a/_includes/views.html +++ b/_includes/views.html @@ -9,7 +9,7 @@ const viewsLoader = document.getElementById("views-loader"); viewsCount.style.display = "none"; - viewsLoader.style.display = "inline-block" + viewsLoader.style.display = "inline-block"; ajax(serviceUrl + "/GetPostViews?siteId=" + siteId + "&postId=" + postId) .then(function (result) {