PageSourceSearch

https://www.tulsahousing.org/wp-content/themes/b3-tha/js/rotator.js?ver=1791139365

js tulsahousing.org collected 2026-10-04 18:43:18 UTC 1,476 bytes, 70 lines download raw bytes

1// JavaScript Document
2
3(function ($) { 
4	
5$(document).ready(function() {
6	
7	if ($('#brand-window').length) {
8		
9		if ($('#brand-window > div').length > 1) {
10			window.timer = window.setInterval(function() {
11				tha_brandRotatorLoop('+');
12			}, 4500);	
13		}
14		
15		if ($('#photo-rotator > div').length > 1) {
16			window.timer2 = window.setInterval(function() {
17				tha_polaroidRotatorLoop('+');
18			}, 7000);
19		}
20	}
21	
22}); 
23
24function tha_polaroidRotatorLoop(direction) {
25    var count = $("#photo-rotator").children(".photo").length;
26	var active = $('#photo-rotator .active').index();
27	var next;
28	
29	if (direction == '+') {
30		if (active < count - 1) {
31			next = active + 1;
32		} else {
33			next = 0;
34		}
35	} else {
36		next = direction;
37	}
38	
39	$("#photo-rotator .active").fadeOut(1000, function () {
40		$(this).removeClass('active');
41	});
42    $("#photo-rotator").find(".photo").eq(next).fadeIn(1000, function () {
43		$(this).addClass('active');
44	});
45}
46	
47function tha_brandRotatorLoop(direction) {
48    var count = $("#brand-window").children(".brand-image").length;
49	var active = $('#brand-window .active').index();
50	var next;
51	
52	if (direction == '+') {
53		if (active < count - 1) {
54			next = active + 1;
55		} else {
56			next = 0;
57		}
58	} else {
59		next = direction;
60	}
61	
62	$("#brand-window .active").fadeOut(1000, function () {
63		$(this).removeClass('active');
64	});
65    $("#brand-window").find(".brand-image").eq(next).fadeIn(1000, function () {
66		$(this).addClass('active');
67	});
68}
69		
70})(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.