‘;
});
pollOptions.innerHTML = pollOptionsDom;
pollCount.innerHTML = totalVotes + ‘ votes’;
if (totalVotes > 10)
pollCount.classList.remove(“hidden”);
}
function trackBetsTodayPollImpression() {
var intersectionObserverForArticlePoll = new IntersectionObserver(
function(entries)
entries.forEach(function(entry) else
sendRating(index);
function sendRating()
var requestPayload =
“post_id”: 1744311,
“rating_value”: ratingValue
if (ratingValue > 3)
requestPayload.rating_feedback_type = null;
requestPayload.rating_feedback = null;
else
pureJSAjaxPost(addratingAPI, requestPayload, onsaveRatingSuccess, onsaveRatingFail, function() , true);
function resetRatingAndFeedbackForm()
var activeStars = Array.from($all(‘.rating span.rating-star.active’));
for (var i=0; i = 0)
return true;
else
return false;
(function() {
var callFired = false;
function lazyLoadPostRating() {
if (callFired) return;
callFired = true;
if (!isPostRatedByUser()) {
getRatingCountByPostId(1744311)
.then(function(ratingCount) {
if (ratingCount