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) {