PageSourceSearch

https://cloudinary.com/wp-content/themes/cld-2021/assets/js/search.js?ver=1.0.1

js cloudinary.com collected 2026-09-24 06:03:13 UTC 1,667 bytes, 55 lines download raw bytes

1/* manages google site search scripting */
2jQuery(function ($) {
3
4var searchOpener = document.querySelector('.search-opener');
5
6searchOpener.addEventListener('click', function(e) {
7	e.preventDefault();
8	var searchBlock = e.target.closest('.search-block');
9	var searchBox = searchBlock.querySelector('.search_box');
10	searchBox.classList.toggle('active');
11	searchScripts();
12});
13
14if (window.innerWidth > 767) {
15    searchCloser();
16}
17
18function searchCloser() {
19    document.addEventListener('click', function(event) {
20        if (!event.target.closest('.search-block')) {
21            if (document.querySelector('.search_box').classList.contains("active")) {
22                document.querySelector('.search_box').classList.remove("active");
23            }
24        }
25    });
26}
27function searchScripts() {
28	if (($('.search_box').length > 0) || ($('.search_page_holder').length > 0)) {
29		function resize() {
30			if (document.readyState == 'complete') {
31				$(window).trigger('resize');
32			} else {
33				google.setOnLoadCallback(function() {
34					$(window).trigger('resize');
35				});
36			}
37		}
38		window.__gcse = {
39			callback: resize
40		};
41		var cx = $('.search_page_holder').data('search-id') || '004254014380220631316:tyt40hhqlhs';
42		var gcse = document.createElement('script');
43		gcse.type = 'text/javascript';
44		gcse.async = true;
45		gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;
46		var s = document.getElementsByTagName('script')[0];
47		s.parentNode.insertBefore(gcse, s);
48	}
49}
50window.close_tfa_dialog = function() {
51	$('.overlay_dialog').hide();
52	$('.overlay_dialog iframe').attr('src', 'about:blank');
53}
54
55});

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.