PageSourceSearch

https://armeniaonline.ru/local/templates/armeniaonline/components/…/api/reviews.stat/.default/script.js

js armeniaonline.ru collected 2026-10-02 17:07:00 UTC 1,128 bytes, 50 lines download raw bytes

1/*!
2 * $.fn.apiReviewsStat
3 */
4(function ($) {
5
6	"use strict"; // Hide scope, no $ conflict
7
8	var defaults = {};
9	var options = {};
10	var methods = {
11		init: function (params) {
12
13			options = $.extend(true, {}, defaults, options, params);
14
15			if (!this.data('apiReviewsStat')) {
16				this.data('apiReviewsStat', options);
17			}
18			return this;
19		},
20		update: function () {
21			$.ajax({
22				type: 'POST',
23				async: false,
24				data: {
25					sessid: BX.bitrix_sessid(),
26					API_REVIEWS_STAT_AJAX: 'Y'
27				},
28				error: function (jqXHR, textStatus, errorThrown) {
29					console.log('textStatus: ' + textStatus);
30					console.log('errorThrown: ' + errorThrown);
31				},
32				success: function (data) {
33					$('#api-reviews-stat').replaceWith(data);
34				}
35			});
36		}
37	};
38
39	$.fn.apiReviewsStat = function (method) {
40
41		if (methods[method]) {
42			return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
43		} else if (typeof method === 'object' || !method) {
44			return methods.init.apply(this, arguments);
45		} else {
46			$.error('Error! Method "' + method + '" not found in plugin $.fn.apiReviewsStat');
47		}
48	};
49
50})(jQuery);

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.