PageSourceSearch

https://visitpdp.org/js/slideshow.js

js visitpdp.org collected 2026-10-08 15:58:53 UTC 1,619 bytes, 87 lines download raw bytes

1/*
2 * Renovo Video Visitation 5.2
3 * Copyright(c) 2012, Renovo Software Inc.
4 * [email protected]
5 */
6var slideTask = undefined;
7var slideInterval = 10000; // 10 seconds
8
9Ext.onReady(function(){
10	startSlideshow();
11});
12
13function startSlideshow()
14{
15	Ext.each(getSlideLinks(), function(el) {
16		Ext.get(el).on('click', slideLinkClick);
17	});
18	
19	nextSlide();
20}
21
22function nextSlide(current)
23{
24	var slides = getSlides();
25	
26	if (slides.length < 2)
27	{
28		return;
29	}
30	
31	var next = 0;
32	
33	if (current !== undefined)
34	{
35		next = current+1;
36		if (next >= slides.length)
37		{
38			next = 0;
39		}
40	
41		showSlide(next);
42		hideSlide(current);
43	}
44	
45	slideTask = nextSlide.defer(slideInterval, this, [next]);
46}
47
48function slideLinkClick(evt, el)
49{
50	clearTimeout(slideTask);
51
52	var current = getCurrentSlide();
53	if (current === el) return;
54	
55	var slides = getSlideLinks();
56	hideSlide(slides.indexOf(current));
57	showSlide(slides.indexOf(el));
58}
59
60// we assume that links and corresponding divs 
61//  are in the same document order
62function showSlide(index)
63{
64	Ext.get(getSlides()[index]).slideIn('', {stopFx: true});
65	Ext.get(getSlideLinks()[index]).addClass('currentHighlander');
66}
67
68function hideSlide(index)
69{
70	Ext.get(getSlides()[index]).slideOut('b', {stopFx: true});
71	Ext.get(getSlideLinks()[index]).removeClass('currentHighlander');
72}
73
74function getSlides()
75{
76	return Ext.query('div.highlanderDiv');
77}
78
79function getSlideLinks()
80{
81	return Ext.query('a.highlanderDivLink');
82}
83
84function getCurrentSlide()
85{
86	return Ext.query('a.currentHighlander')[0];
87}

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.