PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/renownedsubscriptions.online/wp-content/plugins/taqyeem/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/renownedsubscriptions.online/wp-content/plugins/taqyeem/js/tie.js |
jQuery(document).ready(function() { jQuery(".review-percentage .review-item span").each(function() { $g = jQuery(this).find('span').attr('data-width'); progress($g, jQuery(this) ); }); jQuery(document).on('mousemove', '.taq-user-rate-active' , function (e) { var rated = jQuery(this); if( rated.hasClass('rated-done') ){ return false; } if (!e.offsetX){ e.offsetX = e.clientX - jQuery(e.target).offset().left; } var offset = e.offsetX + 4; if (offset > 100) { offset = 100; } rated.find('.user-rate-image span').css('width', offset + '%'); var score = Math.floor(((offset / 10) * 5)) / 10; if (score > 5) { score = 5; } }); jQuery(document).on('click', '.taq-user-rate-active' , function () { var rated = jQuery(this); if( rated.hasClass('rated-done') ){ return false; } var userRatedValue = rated.find('.user-rate-image span').width(); rated.find('.user-rate-image').hide(); rated.append('<span class="taq-load"></span>'); if (userRatedValue >= 95) { userRatedValue = 100; } userRatedValueCalc = (userRatedValue*5)/100; var post_id = rated.attr('data-id'); var numVotes = rated.parent().find('.taq-count').text(); jQuery.post(taqyeem.ajaxurl, { action:'taqyeem_rate_post' , post:post_id , value:userRatedValueCalc}, function(data) { rated.addClass('rated-done').attr('data-rate',userRatedValue); rated.find('.user-rate-image span').width(userRatedValue+'%'); jQuery(".taq-load").fadeOut(function () { rated.parent().find('.taq-score').html( userRatedValueCalc ); if( (jQuery(rated.parent().find('.taq-count'))).length > 0 ){ numVotes = parseInt(numVotes)+1; rated.parent().find('.taq-count').html(numVotes); }else{ rated.parent().find('small').hide(); } rated.parent().find('strong').html(taqyeem.your_rating); rated.find('.user-rate-image').fadeIn(); }); }, 'html'); return false; }); jQuery(document).on('mouseleave', '.taq-user-rate-active' , function () { var rated = jQuery(this); if( rated.hasClass('rated-done') ){ return false; } var post_rate = rated.attr('data-rate'); rated.find(".user-rate-image span").css('width', post_rate + '%'); }); }); function progress(percent, $element) { $element.find('span').animate({ width: percent+'%' }, 700); }