PageSourceSearch

https://www.onpointcu.com/wp-content/themes/onpointcu-theme/js/lib/faqs.js?ver=1740433900

js onpointcu.com collected 2026-09-24 09:14:09 UTC 1,778 bytes, 54 lines download raw bytes

1(function($) {
2	$(document).ready(function() {
3		//
4		// Toggle FAQs
5		//
6		var $accordToggles = $('.js-accord_toggle')
7				accordsTogglesLength = $accordToggles.length,
8			openAccords = function($x, $accordsSiblings, callback) {
9				callback = callback || (function() {});
10				$x.removeClass('closed');
11				$accordsSiblings.removeClass('closed');
12				callback();
13			},
14			closedAccords = function($x, $accordsSiblings) {
15				$x.addClass('closed');
16				$accordsSiblings.addClass('closed');
17			},
18			accordsToggle = function(x) {
19				var $accordsSiblings = $(x).siblings('.js-accord_content'),
20						$x = $(x),
21						openCallback  = function() {},
22						$childFrame = $accordsSiblings.find('.js-calc_iframe');
23				if ( $x.hasClass('closed') ) {
24					if ($childFrame.length > 0) {
25						openCallback = function () {
26							initHiddenIframe($childFrame);
27						};
28					}
29					openAccords($x, $accordsSiblings, openCallback);
30				} else {
31					closedAccords($x, $accordsSiblings);
32				}
33			},
34			initAccords = function() {
35				var urlParams = new URLSearchParams(window.location.search);
36				var openAccordId = parseInt(DOMPurify.sanitize(urlParams.get('accordid')), 10);
37				for ( var i = 0; i < accordsTogglesLength; i++ ) {
38					var $curToggle = $($accordToggles[i]),
39						$curContent = $curToggle.siblings('.js-accord_content');
40					var curId = parseInt(DOMPurify.sanitize($curToggle.attr('data-accordid')), 10);
41					if ( curId === openAccordId ) {
42						$curToggle.removeClass('closed');
43						$curToggle[0].scrollIntoView({ behavior: 'smooth', block: 'start' });
44					} else if ( $curToggle.hasClass('closed') ) {
45						$curContent.addClass('closed');
46					}
47				}
48			};
49			$accordToggles.click(function() {
50				accordsToggle(this);
51			});
52		initAccords();
53	});
54})(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.