PageSourceSearch

https://yoraps.com/wp-content/themes/papr/assets/js/plugins.js?ver=7.1.2

js yoraps.com collected 2026-10-02 11:19:34 UTC 2,637 bytes, 112 lines download raw bytes

1// Avoid `console` errors in browsers that lack a console.
2'use strict';
3(function () {
4	var method;
5	var noop = function () {};
6	var methods = [
7		'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
8		'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
9		'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
10		'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn'
11	];
12	var length = methods.length;
13	var console = (window.console = window.console || {});
14
15	while (length--) {
16		method = methods[length];
17
18		// Only stub undefined methods.
19		if (!console[method]) {
20			console[method] = noop;
21		}
22	}
23}());
24
25// Place any jQuery/helper plugins in here.
26(function ($) {
27
28	// Equal Height
29	$.fn.equalHeight = function (options) {
30		var maxHeight = 0;
31		var defaults = {
32			selector: $('.equalHeight')
33		};
34		options = $.extend(defaults, options);
35
36		$(this).each(function () {
37			$(this).find(defaults.selector).each(function () {
38				if ($(this).height() > maxHeight) {
39					maxHeight = $(this).height();
40				}
41			});
42			$(this).find(defaults.selector).height(maxHeight);
43		});
44
45		return this;
46	}
47
48	// Equal Width
49	$.fn.equalWidth = function (options) {
50		var maxWidth = 0;
51		var defaults = {
52			selector: $('.equalWidth')
53		};
54		options = $.extend(defaults, options);
55
56		$(this).each(function () {
57			$(this).find(defaults.selector).each(function () {
58				if ($(this).width() > maxWidth) {
59					maxWidth = $(this).width();
60				}
61			});
62			$(this).find(defaults.selector).width(maxWidth);
63		});
64
65		return this;
66	}
67
68	if ($(window).width() > 767) {
69		$('.equalHeightWrapper').equalHeight({
70			selector: $('.equalHeight')
71		});
72	}
73
74	function Utils() {
75
76	}
77
78	Utils.prototype = {
79		constructor: Utils,
80		isElementInView: function (element, fullyInView) {
81			var pageTop = $(window).scrollTop();
82			var pageBottom = pageTop + $(window).height();
83			var elementTop = $(element).offset().top;
84			var elementBottom = elementTop + $(element).height();
85
86			if (fullyInView === true) {
87				return ((pageTop < elementTop) && (pageBottom > elementBottom));
88			} else {
89				return ((elementTop <= pageBottom) && (elementBottom >= pageTop));
90			}
91		}
92	};
93
94	var Utils = new Utils();
95
96	function isIE() {
97		var ua = navigator.userAgent;
98		var is_ie = ua.indexOf("MSIE ") > -1 || ua.indexOf("Trident/") > -1;
99		return is_ie;
100	}
101
102	isIE();
103
104	if (isIE()) {
105		cssVars({
106			onlyLegacy: false,
107			include: 'link[id=\'axil-style-css\'],style',
108			onComplete: function (cssText, styleNode) {}
109		});
110	}
111
112})(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.