PageSourceSearch

https://asociaciontonina.com/wp-content/themes/vernissage/js/jquery.preloader.js?ver=1.0

js asociaciontonina.com collected 2026-10-08 16:17:26 UTC 1,754 bytes, 65 lines download raw bytes

1(function($) {
2	$.fn.preloader = function(options) {
3		// Adding variable for centering images along width and height
4		var defaults = {
5			delay: 100,
6			preload_parent: "a",
7			check_timer: 150,
8			ondone: function() {},
9			oneachload: function(image) {},
10			fadein: 300
11		};
12		// variables declaration and precaching images and parent container
13		var options = $.extend(defaults, options),
14			root = $(this),
15			images = root.find("img").css({
16				"visibility": "hidden",
17				opacity: 0
18			}),
19			timer, counter = 0,
20			i = 0,
21			checkFlag = [],
22			delaySum = options.delay,
23			init = function() {
24				timer = setInterval(function() {
25					if (counter >= checkFlag.length) {
26						clearInterval(timer);
27						options.ondone();
28						return;
29					}
30					for (i = 0; i < images.length; i++) {
31						if (images[i].complete == true) {
32							if (checkFlag[i] == false) {
33								checkFlag[i] = true;
34								options.oneachload(images[i]);
35								counter++;
36								delaySum = delaySum + options.delay;
37							};
38							$(images[i]).css("visibility", "visible").delay(delaySum).animate({
39								opacity: 1
40							}, options.fadein, function() {
41								$(this).parent().removeClass("preloader");
42							});
43						}
44					}
45				}, options.check_timer)
46			};
47		images.each(function() {
48			$(this).parent().addClass("preloader");
49			checkFlag[i++] = false;
50		});
51		images = $.makeArray(images);
52		var icon = jQuery("<img />", {
53			id: 'loadingicon',
54			src: template_url + '/images/loader.gif'
55		}).hide().appendTo("body");
56		timer = setInterval(function() {
57			if (icon[0].complete == true) {
58				clearInterval(timer);
59				init();
60				icon.remove();
61				return;
62			}
63		}, 100);
64	};
65})(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.