PageSourceSearch

https://www.dark-area.ru/wp-content/themes/Impreza/js/animated_bg.js

js dark-area.ru collected 2026-10-07 08:30:19 UTC 847 bytes, 39 lines download raw bytes

1;(function($, window, document, undefined) {
2
3	$.fn.animatedBG = function(options){
4		var defaults = {
5				colorSet: ['#ef008c', '#00be59', '#654b9e', '#ff5432', '#00d8e6'],
6				speed: 1000
7			},
8			settings = $.extend({}, defaults, options);
9
10		return this.each(function(){
11			var $this = $(this);
12
13			$this.each(function(){
14				var $el = $(this),
15					colors = settings.colorSet;
16				
17				function shiftColor() {
18					var color = colors.shift();
19					colors.push(color);
20					return color;
21				}
22
23				// initial color
24				var initColor = shiftColor();
25				$el.css('backgroundColor', initColor);
26				setInterval(function(){
27					var color = shiftColor();
28					$el.animate({backgroundColor: color}, 1000);
29				}, settings.speed);
30			});
31		});
32	};
33
34	// Initialize
35	$(function(){
36		$('.animated_bg').animatedBG();
37	});
38
39}(jQuery, window, document));

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.