PageSourceSearch

https://www.claudearpi.net/wp-content/plugins/taqyeem/js/tie.js

js claudearpi.net collected 2026-10-02 10:26:11 UTC 2,415 bytes, 81 lines download raw bytes

1jQuery(document).ready(function() {
2
3
4jQuery(".review-percentage .review-item span").each(function() {
5	$g = jQuery(this).find('span').attr('data-width');
6   	progress($g,  jQuery(this) );
7});
8
9	jQuery(document).on('mousemove', '.taq-user-rate-active' , function (e) {
10		var rated = jQuery(this);
11		if( rated.hasClass('rated-done') ){
12			return false;
13		}
14		if (!e.offsetX){
15			e.offsetX = e.clientX - jQuery(e.target).offset().left;
16		}
17		var offset = e.offsetX + 4;
18		if (offset > 100) {
19			offset = 100;
20		}
21		rated.find('.user-rate-image span').css('width', offset + '%');
22		var score = Math.floor(((offset / 10) * 5)) / 10;
23		if (score > 5) {
24			score = 5;
25		}
26	});
27	
28	jQuery(document).on('click', '.taq-user-rate-active' , function () {
29		var rated = jQuery(this);
30		if( rated.hasClass('rated-done') ){
31			return false;
32		}
33		var userRatedValue = rated.find('.user-rate-image span').width();
34		rated.find('.user-rate-image').hide();
35		rated.append('<span class="taq-load"></span>');
36		if (userRatedValue >= 95) {
37			userRatedValue = 100;
38		}
39
40		userRatedValueCalc = (userRatedValue*5)/100;
41
42		var post_id = rated.attr('data-id');
43		var numVotes = rated.parent().find('.taq-count').text();
44		
45		jQuery.post(taqyeem.ajaxurl, { action:'taqyeem_rate_post' , post:post_id , value:userRatedValueCalc}, function(data) {
46			rated.addClass('rated-done').attr('data-rate',userRatedValue);
47			rated.find('.user-rate-image span').width(userRatedValue+'%');
48			
49			jQuery(".taq-load").fadeOut(function () {
50
51				rated.parent().find('.taq-score').html( userRatedValueCalc );
52				
53				if( (jQuery(rated.parent().find('.taq-count'))).length > 0 ){
54					numVotes =  parseInt(numVotes)+1;
55					rated.parent().find('.taq-count').html(numVotes);
56				}else{
57					rated.parent().find('small').hide();
58				}
59				rated.parent().find('strong').html(taqyeem.your_rating);
60				
61				rated.find('.user-rate-image').fadeIn();
62			});
63		}, 'html');
64		
65		return false;
66	});
67	
68	jQuery(document).on('mouseleave', '.taq-user-rate-active' , function () {
69		var rated = jQuery(this);
70		if( rated.hasClass('rated-done') ){
71			return false;
72		}
73		var post_rate = rated.attr('data-rate');
74		rated.find(".user-rate-image span").css('width', post_rate + '%');
75	});
76});
77
78
79function progress(percent, $element) {
80	$element.find('span').animate({ width: percent+'%' }, 700);
81}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.