PageSourceSearch

https://yudichakcpa.com/wp-content/themes/yudichak-cpa/js/functions.js?ver=1541487168

js yudichakcpa.com collected 2026-10-04 05:43:43 UTC 2,046 bytes, 89 lines download raw bytes

1 ;(function($, window, document, undefined) {
2	var $win = $(window);
3	var $doc = $(document);
4
5	$doc.ready(function() {
6		$('.is-external').change( function() {
7			var externalUrl = $(this).data('external-url');
8
9			if ( typeof externalUrl !== 'undefined' ) {
10				window.open( externalUrl );
11			}
12		});
13
14		$('.article-image, .post-image').each(function () {
15			var src = $(this).find('img').attr('src');
16 
17			$(this).css({
18				backgroundImage: 'url(' + src + ')'
19			});
20		});
21
22		$('.search-btn').on('click',function (e) {
23			e.preventDefault();
24
25			$(this)
26				.toggleClass('active')
27				.next('form')
28					.find('input:first')
29					.focus();
30		});
31
32		$('.callout .btn').magnificPopup({
33			type:'iframe'
34		});
35
36		$('.nav-trigger').on('click',function (e) {
37			e.preventDefault();
38
39			$(this).toggleClass('active');
40			$('.nav .menu').toggleClass('active');
41		});
42	});
43
44	$win.on('load',function () {
45		$('.slider .slides').slick({
46			arrows:false,
47			autoplay:true
48		});
49
50		$('.list-features li, .list-testimonials li, .section-columns .col').viewportChecker({
51			classToAdd:'fadeInUp animated',
52			offset: 100
53		})
54	});
55
56	$win.on('load resize',function () {
57		$('.post-body > *').equalizeHeight();
58
59		$('.post-body blockquote').each(function () {
60			var $this = $(this);
61			var shellOffset = $('.post-entry').offset().left;
62			var leftWidth = shellOffset;
63			var rightWidth = $this.parent().parent().width() - $this.parent().width();
64
65			$this.css({
66				marginLeft: -leftWidth,
67				marginRight: -rightWidth,
68				paddingLeft: leftWidth,
69				paddingRight: rightWidth
70			});
71		});
72	});
73
74	$.fn.equalizeHeight = function() {
75	    var maxHeight = 0, itemHeight;
76	 	
77	 	this.css({minHeight:1});
78
79	    for (var i = 0; i < this.length; i++) {
80	        itemHeight = $(this[i]).outerHeight();
81	        if (maxHeight < itemHeight) {
82	            maxHeight = itemHeight;
83	        }
84	    }
85	 
86	    return this.css({minHeight:maxHeight});
87	};
88
89})(jQuery, window, document);

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.