Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let notReleasedCount = 0;
- $('.ratingColumn.imdbRating').each(function () {
- if (!$(this).text().trim()) {
- notReleasedCount++;
- }
- });
- $('.seen-size').text(100 - notReleasedCount);
- let precent = Math.round((100 - notReleasedCount) / 100 * $('.seen-count').text());
- $('.seen-pct').text('(' + precent + '%)');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement