PageSourceSearch

https://activ.ie/wp-content/plugins/peepso-photos/assets/js/widget.js

js activ.ie collected 2026-09-24 14:23:49 UTC 950 bytes, 53 lines download raw bytes

1jQuery(function ($) {
2	let itemSelector = '.ps-js-photo';
3
4	window.ps_widget = {
5		/**
6		 * Checks if navigation should be hidden.
7		 *
8		 * @param {Element} el
9		 * @returns {boolean}
10		 */
11		nonav(el) {
12			let $item = $(el).closest(itemSelector);
13
14			return $item.siblings(itemSelector).length < 1;
15		},
16
17		/**
18		 * Navigate to the previous item.
19		 *
20		 * @param {Element} el
21		 */
22		prev(el) {
23			let $item = $(el).closest(itemSelector),
24				$prev = $item.prev(itemSelector);
25
26			if (!$prev.length) {
27				$prev = $item.siblings(itemSelector).last();
28			}
29
30			if ($prev.length) {
31				$prev.children('a').click();
32			}
33		},
34
35		/**
36		 * Navigate to the next item.
37		 *
38		 * @param {Element} el
39		 */
40		next(el) {
41			let $item = $(el).closest(itemSelector),
42				$next = $item.next(itemSelector);
43
44			if (!$next.length) {
45				$next = $item.siblings(itemSelector).first();
46			}
47
48			if ($next.length) {
49				$next.children('a').click();
50			}
51		}
52	};
53});

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.