Merge branch 'dev' of rajukottedi/chirpy-blogging into prod

This commit is contained in:
Bangara Raju Kottedi 2024-04-06 04:52:00 +05:30 committed by Gogs
commit 85554b9a65
2 changed files with 4 additions and 6 deletions

View File

@ -45,7 +45,7 @@
} }
likesCount.innerHTML = result; likesCount.innerHTML = result;
heartIcon.style.pointerEvents = 'auto'; heartIcon.style.pointerEvents = 'auto';
}) });
} }
var apiUrl = serviceUrl + "/GetPostLikes?siteId=" + siteId + "&postId=" + postId; var apiUrl = serviceUrl + "/GetPostLikes?siteId=" + siteId + "&postId=" + postId;
@ -62,5 +62,5 @@
} }
apiCall(apiUrl, "click"); apiCall(apiUrl, "click");
}); })
</script> </script>

View File

@ -26,14 +26,12 @@
</p> </p>
</blockquote> </blockquote>
<script type="text/javascript"> <script>
function handleDelayedClick() { function handleDelayedClick() {
setTimeout(function() { setTimeout(function() {
// Actual click event handler function
heartIcon.click(); heartIcon.click();
}, 1000); // Delay time in milliseconds }, 1000);
} }
const tyLike = document.getElementById("ty-like"); const tyLike = document.getElementById("ty-like");