PageSourceSearch

https://www.navatech.ai/wp-content/plugins/pixfort-likes/scripts/pixfort-likes.js?ver=1.0.5

js navatech.ai collected 2026-09-24 09:00:08 UTC 1,937 bytes, 79 lines download raw bytes

1jQuery(function ($) {
2		$('.pixfort-likes-count').each(function (i, elem) {
3				var count = $(elem).data('count');
4				if (!count) count = 0;
5				od = new Odometer({
6						el: elem,
7						duration: 500,
8				});
9				od.update(count);
10		});
11
12		$('body').on('click', '.pixfort-likes', function (e) {
13				var link = $(this);
14
15				if (link.hasClass('pix-waiting')) return false;
16				link.addClass('pix-waiting');
17
18				var id = $(this).attr('id'),
19						postfix = link.find('.pixfort-likes-postfix').text();
20
21				$.ajax({
22						type: 'POST',
23						url: pixfort_likes.ajaxurl,
24						data: {
25								action: 'pixfort-likes',
26								likes_id: id,
27								postfix: postfix,
28						},
29						xhrFields: {
30								withCredentials: true,
31						},
32						dataType: 'JSON',
33						success: function (data) {
34								link.find('.pixfort-likes-icon').html(data.icon);
35								if (data.action == 'like') {
36										link.find('.pixfort-likes-small').addClass(
37												'pixfort-likes-liked'
38										);
39								} else {
40										link.find('.pixfort-likes-small').removeClass(
41												'pixfort-likes-liked'
42										);
43								}
44								var el = link.find('.pixfort-likes-count')[0];
45								od = new Odometer({
46										el: el,
47										duration: 500,
48								});
49								od.update(data.count);
50								link.removeClass('pix-waiting');
51						},
52				});
53
54				return false;
55		});
56		
57		if ($('body.ajax-pixfort-likes').length) {
58				$('.pixfort-likes').each(function () {
59						let $this = $(this);
60						var id = $(this).attr('id');
61						$(this).load(
62								pixfort_likes.ajaxurl,
63								{
64										action: 'pixfort-likes',
65										post_id: id,
66								},
67								function () {
68										var el = $this.find('.pixfort-likes-count')[0];
69										let elCount = $(el).attr('data-count');
70										od = new Odometer({
71												el: el,
72												duration: 500,
73										});
74										od.update(elCount);
75								}
76						);
77				});
78		}
79});

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.